Inheritance diagram for osgSim::BlinkSequence:
Public Member Functions | |
BlinkSequence () | |
BlinkSequence (const BlinkSequence &bs, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Object (osgSim, BlinkSequence) | |
void | addPulse (double length, const osg::Vec4 &color) |
int | getNumPulses () const |
void | getPulse (unsigned int i, double &length, osg::Vec4 &color) const |
double | getPulsePeriod () const |
void | setSequenceGroup (SequenceGroup *sg) |
SequenceGroup * | getSequenceGroup () |
const SequenceGroup * | getSequenceGroup () const |
void | setPhaseShift (double ps) |
double | getPhaseShift () const |
double | localTime (double time) const |
osg::Vec4 | color (double time, double length) const |
Protected Types | |
typedef std::pair< double, osg::Vec4 > | IntervalColor |
typedef std::vector< IntervalColor > | PulseData |
Protected Attributes | |
double | _pulsePeriod |
double | _phaseShift |
PulseData | _pulseData |
osg::ref_ptr< SequenceGroup > | _sequenceGroup |
|
|
|
|
|
|
|
|
|
add a pulse of specified color and duration to the BlinkSequence. |
|
compute the color for the time interval sepecifed. Averages the colors if the length is greater than the current pulse. |
|
return the number of pulses. |
|
get the pahse shift. |
|
return the pulse data at position i. |
|
get the total pulse period of the blink sequence, which is equal to the sum of all the pulse periods. |
|
get the const sequence group. |
|
get the non const sequence group. |
|
compute the local time clamped to this BlinkSequences period, and accounting for the phase shift and sequence group. |
|
|
|
set the phase shift of the blink sequence, this would be used to shift a sequence within a sequence group. |
|
set the sequence group which can be used to synchronize related blink sequences. |
|
|
|
|
|
|
|
|