OpenSceneGraph/doc/doc++/osgSim/BlinkSequence.html

189 lines
9.5 KiB
HTML
Raw Normal View History

2003-04-18 00:22:51 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class OSGSIM_EXPORT osgSim::BlinkSequence</TITLE>
2004-08-06 14:53:36 +08:00
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.6">
2003-04-18 00:22:51 +08:00
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class OSGSIM_EXPORT <A HREF="#DOC.DOCU">osgSim::BlinkSequence</A></H2></H2><HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65>
2003-07-23 19:27:31 +08:00
<param name=classes value="Mosg::Object,M,CBlinkSequence,MBlinkSequence.html">
2003-04-18 00:22:51 +08:00
<param name=before value="M,M">
<param name=after value="Md_,M">
<param name=indent value="0,1">
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.2.1">BlinkSequence</A></B>()
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.2.2">BlinkSequence</A></B>(const <!1><A HREF="BlinkSequence.html#DOC.2.2.2">BlinkSequence</A>&amp; bs, const osg::CopyOp&amp; copyop = osg::CopyOp::SHALLOW_COPY)
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.2.3">META_Object</A></B>(<!1><A HREF="osgSim.html">osgSim</A>, <!1><A HREF="BlinkSequence.html">BlinkSequence</A>)
2003-07-23 19:27:31 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline int <B><A HREF="#DOC.2.2.4">getNumPulses</A></B>() const
<DD><I>return the number of pulses.</I>
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline double <B><A HREF="#DOC.2.2.5">getPulsePeriod</A></B>() const
2003-04-18 00:22:51 +08:00
<DD><I>get the total pulse period of the blink sequence, which is equal to the sum of all the pulse periods</I>
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.2.6">setSequenceGroup</A></B>(<!1><A HREF="SequenceGroup.html">SequenceGroup</A>* sg)
2003-04-18 00:22:51 +08:00
<DD><I>set the sequence group which can be used to synchronize related blink sequences</I>
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="SequenceGroup.html">SequenceGroup</A>* <B><A HREF="#DOC.2.2.7">getSequenceGroup</A></B>()
2003-04-18 00:22:51 +08:00
<DD><I>get the non const sequence group</I>
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="SequenceGroup.html">SequenceGroup</A>* <B><A HREF="#DOC.2.2.8">getSequenceGroup</A></B>() const
2003-04-18 00:22:51 +08:00
<DD><I>get the const sequence group</I>
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.2.9">setPhaseShift</A></B>(double ps)
2003-04-18 00:22:51 +08:00
<DD><I>set the phase shift of the blink sequence, this would be used to shift a sequence within a sequence group</I>
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline double <B><A HREF="#DOC.2.2.10">getPhaseShift</A></B>() const
2003-04-18 00:22:51 +08:00
<DD><I>get the pahse shift</I>
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline double <B><A HREF="#DOC.2.2.17">localTime</A></B>(double time) const
2003-04-18 00:22:51 +08:00
<DD><I>compute the local time clamped to this BlinkSequences period, and accounting for the phase shift and sequence group</I>
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.2.18">addPulse</A></B>(double length, const osg::Vec4&amp; <!1><A HREF="BlinkSequence.html#DOC.2.2.20">color</A>)
2003-04-18 00:22:51 +08:00
<DD><I>add a pulse of specified color and duration to the BlinkSequence</I>
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.2.19">getPulse</A></B>(unsigned int i, double&amp; length, osg::Vec4&amp; <!1><A HREF="BlinkSequence.html#DOC.2.2.20">color</A>) const
<DD><I>return the pulse data at position i.</I>
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline osg::Vec4 <B><A HREF="#DOC.2.2.20">color</A></B>(double time, double length) const
2003-04-18 00:22:51 +08:00
<DD><I>compute the color for the time interval sepecifed.</I>
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>double <B><A HREF="#DOC.2.2.13">_pulsePeriod</A></B>
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>double <B><A HREF="#DOC.2.2.14">_phaseShift</A></B>
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="BlinkSequence.html#DOC.2.2.12">PulseData</A> <B><A HREF="#DOC.2.2.15">_pulseData</A></B>
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr&lt;<!1><A HREF="SequenceGroup.html">SequenceGroup</A>&gt; <B><A HREF="#DOC.2.2.16">_sequenceGroup</A></B>
2003-04-18 00:22:51 +08:00
</DL></P>
<P><DL>
2004-08-06 14:53:36 +08:00
<DT><H3>Protected</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::pair&lt;double,osg::Vec4&gt; <B><A HREF="#DOC.2.2.11">IntervalColor</A></B>
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::vector&lt;<!1><A HREF="BlinkSequence.html#DOC.2.2.11">IntervalColor</A>&gt; <B><A HREF="#DOC.2.2.12">PulseData</A></B>
2003-04-18 00:22:51 +08:00
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<DL>
<A NAME="BlinkSequence"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.1"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> BlinkSequence()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="BlinkSequence"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> BlinkSequence(const <!1><A HREF="BlinkSequence.html#DOC.2.2.2">BlinkSequence</A>&amp; bs, const osg::CopyOp&amp; copyop = osg::CopyOp::SHALLOW_COPY)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
2003-07-23 19:27:31 +08:00
<A NAME="META_Object"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.3"></A>
2003-07-23 19:27:31 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> META_Object(<!1><A HREF="osgSim.html">osgSim</A>, <!1><A HREF="BlinkSequence.html">BlinkSequence</A>)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getNumPulses"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline int getNumPulses() const </B></TT>
<DD>return the number of pulses.
<DL><DT><DD></DL><P>
<A NAME="getPulsePeriod"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.5"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline double getPulsePeriod() const </B></TT>
<DD>get the total pulse period of the blink sequence, which is equal to the sum of all the pulse periods
<DL><DT><DD></DL><P>
<A NAME="setSequenceGroup"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.6"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setSequenceGroup(<!1><A HREF="SequenceGroup.html">SequenceGroup</A>* sg)</B></TT>
<DD>set the sequence group which can be used to synchronize related blink sequences
<DL><DT><DD></DL><P>
<A NAME="getSequenceGroup"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.7"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="SequenceGroup.html">SequenceGroup</A>* getSequenceGroup()</B></TT>
<DD>get the non const sequence group
<DL><DT><DD></DL><P>
<A NAME="getSequenceGroup"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.8"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="SequenceGroup.html">SequenceGroup</A>* getSequenceGroup() const </B></TT>
<DD>get the const sequence group
<DL><DT><DD></DL><P>
<A NAME="setPhaseShift"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.9"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setPhaseShift(double ps)</B></TT>
<DD>set the phase shift of the blink sequence, this would be used to shift a sequence within a sequence group
<DL><DT><DD></DL><P>
<A NAME="getPhaseShift"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.10"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline double getPhaseShift() const </B></TT>
<DD>get the pahse shift
<DL><DT><DD></DL><P>
<A NAME="IntervalColor"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::pair&lt;double,osg::Vec4&gt; IntervalColor</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="PulseData"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.12"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::vector&lt;<!1><A HREF="BlinkSequence.html#DOC.2.2.11">IntervalColor</A>&gt; PulseData</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="_pulsePeriod"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.13"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>double _pulsePeriod</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_phaseShift"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.14"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>double _phaseShift</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_pulseData"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.15"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="BlinkSequence.html#DOC.2.2.12">PulseData</A> _pulseData</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="_sequenceGroup"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.16"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr&lt;<!1><A HREF="SequenceGroup.html">SequenceGroup</A>&gt; _sequenceGroup</B></TT>
<DL><DT><DD></DL><P>
<A NAME="localTime"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.17"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline double localTime(double time) const </B></TT>
<DD>compute the local time clamped to this BlinkSequences period, and accounting for the phase shift and sequence group
<DL><DT><DD></DL><P>
<A NAME="addPulse"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.18"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void addPulse(double length, const osg::Vec4&amp; <!1><A HREF="BlinkSequence.html#DOC.2.2.20">color</A>)</B></TT>
2003-04-18 00:22:51 +08:00
<DD>add a pulse of specified color and duration to the BlinkSequence
<DL><DT><DD></DL><P>
<A NAME="getPulse"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.19"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void getPulse(unsigned int i, double&amp; length, osg::Vec4&amp; <!1><A HREF="BlinkSequence.html#DOC.2.2.20">color</A>) const </B></TT>
<DD>return the pulse data at position i.
<DL><DT><DD></DL><P>
2003-04-18 00:22:51 +08:00
<A NAME="color"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.2.20"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline osg::Vec4 color(double time, double length) const </B></TT>
<DD>compute the color for the time interval sepecifed. Averages the colors if the length is greater than the current pulse.
<DL><DT><DD></DL><P></DL>
<HR><DL><DT><B>This class has no child classes.</B></DL>
<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
<BR>
2004-08-06 14:53:36 +08:00
This page was generated with the help of <A HREF="http://www.linuxsupportline.com/~doc++">DOC++</A>.
2003-04-18 00:22:51 +08:00
</BODY>
</HTML>