189 lines
9.5 KiB
HTML
189 lines
9.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>class OSGSIM_EXPORT osgSim::BlinkSequence</TITLE>
|
|
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.6">
|
|
</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>
|
|
<param name=classes value="Mosg::Object,M,CBlinkSequence,MBlinkSequence.html">
|
|
<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>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.2.1">BlinkSequence</A></B>()
|
|
<DT>
|
|
<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>& bs, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY)
|
|
<DT>
|
|
<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>)
|
|
<DT>
|
|
<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>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline double <B><A HREF="#DOC.2.2.5">getPulsePeriod</A></B>() const
|
|
<DD><I>get the total pulse period of the blink sequence, which is equal to the sum of all the pulse periods</I>
|
|
<DT>
|
|
<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)
|
|
<DD><I>set the sequence group which can be used to synchronize related blink sequences</I>
|
|
<DT>
|
|
<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>()
|
|
<DD><I>get the non const sequence group</I>
|
|
<DT>
|
|
<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
|
|
<DD><I>get the const sequence group</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.2.9">setPhaseShift</A></B>(double ps)
|
|
<DD><I>set the phase shift of the blink sequence, this would be used to shift a sequence within a sequence group</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline double <B><A HREF="#DOC.2.2.10">getPhaseShift</A></B>() const
|
|
<DD><I>get the pahse shift</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline double <B><A HREF="#DOC.2.2.17">localTime</A></B>(double time) const
|
|
<DD><I>compute the local time clamped to this BlinkSequences period, and accounting for the phase shift and sequence group</I>
|
|
<DT>
|
|
<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& <!1><A HREF="BlinkSequence.html#DOC.2.2.20">color</A>)
|
|
<DD><I>add a pulse of specified color and duration to the BlinkSequence</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.2.19">getPulse</A></B>(unsigned int i, double& length, osg::Vec4& <!1><A HREF="BlinkSequence.html#DOC.2.2.20">color</A>) const
|
|
<DD><I>return the pulse data at position i.</I>
|
|
<DT>
|
|
<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
|
|
<DD><I>compute the color for the time interval sepecifed.</I>
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Fields</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>double <B><A HREF="#DOC.2.2.13">_pulsePeriod</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>double <B><A HREF="#DOC.2.2.14">_phaseShift</A></B>
|
|
<DT>
|
|
<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>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>osg::ref_ptr<<!1><A HREF="SequenceGroup.html">SequenceGroup</A>> <B><A HREF="#DOC.2.2.16">_sequenceGroup</A></B>
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::pair<double,osg::Vec4> <B><A HREF="#DOC.2.2.11">IntervalColor</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::vector<<!1><A HREF="BlinkSequence.html#DOC.2.2.11">IntervalColor</A>> <B><A HREF="#DOC.2.2.12">PulseData</A></B>
|
|
</DL></P>
|
|
|
|
</DL>
|
|
|
|
<A NAME="DOC.DOCU"></A>
|
|
<HR>
|
|
<H2>Documentation</H2>
|
|
<DL>
|
|
|
|
<A NAME="BlinkSequence"></A>
|
|
<A NAME="DOC.2.2.1"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> BlinkSequence()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="BlinkSequence"></A>
|
|
<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>& bs, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="META_Object"></A>
|
|
<A NAME="DOC.2.2.3"></A>
|
|
<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>
|
|
<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>
|
|
<A NAME="DOC.2.2.5"></A>
|
|
<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>
|
|
<A NAME="DOC.2.2.6"></A>
|
|
<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>
|
|
<A NAME="DOC.2.2.7"></A>
|
|
<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>
|
|
<A NAME="DOC.2.2.8"></A>
|
|
<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>
|
|
<A NAME="DOC.2.2.9"></A>
|
|
<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>
|
|
<A NAME="DOC.2.2.10"></A>
|
|
<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>
|
|
<A NAME="DOC.2.2.11"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::pair<double,osg::Vec4> IntervalColor</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="PulseData"></A>
|
|
<A NAME="DOC.2.2.12"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::vector<<!1><A HREF="BlinkSequence.html#DOC.2.2.11">IntervalColor</A>> PulseData</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_pulsePeriod"></A>
|
|
<A NAME="DOC.2.2.13"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>double _pulsePeriod</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_phaseShift"></A>
|
|
<A NAME="DOC.2.2.14"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>double _phaseShift</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_pulseData"></A>
|
|
<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>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_sequenceGroup"></A>
|
|
<A NAME="DOC.2.2.16"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>osg::ref_ptr<<!1><A HREF="SequenceGroup.html">SequenceGroup</A>> _sequenceGroup</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="localTime"></A>
|
|
<A NAME="DOC.2.2.17"></A>
|
|
<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>
|
|
<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& <!1><A HREF="BlinkSequence.html#DOC.2.2.20">color</A>)</B></TT>
|
|
<DD>add a pulse of specified color and duration to the BlinkSequence
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getPulse"></A>
|
|
<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& length, osg::Vec4& <!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>
|
|
<A NAME="color"></A>
|
|
<A NAME="DOC.2.2.20"></A>
|
|
<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>
|
|
This page was generated with the help of <A HREF="http://www.linuxsupportline.com/~doc++">DOC++</A>.
|
|
</BODY>
|
|
</HTML>
|