class OSGSIM_EXPORT osgSim::BlinkSequence


Inheritance:


Public Methods

[more] BlinkSequence()
[more] BlinkSequence(const BlinkSequence& bs, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY)
[more] META_Object(osgSim, BlinkSequence)
[more]inline int getNumPulses() const
return the number of pulses.
[more]inline double getPulsePeriod() const
get the total pulse period of the blink sequence, which is equal to the sum of all the pulse periods
[more]inline void setSequenceGroup(SequenceGroup* sg)
set the sequence group which can be used to synchronize related blink sequences
[more]inline SequenceGroup* getSequenceGroup()
get the non const sequence group
[more]inline const SequenceGroup* getSequenceGroup() const
get the const sequence group
[more]inline void setPhaseShift(double ps)
set the phase shift of the blink sequence, this would be used to shift a sequence within a sequence group
[more]inline double getPhaseShift() const
get the pahse shift
[more]inline double localTime(double time) const
compute the local time clamped to this BlinkSequences period, and accounting for the phase shift and sequence group
[more]inline void addPulse(double length, const osg::Vec4& color)
add a pulse of specified color and duration to the BlinkSequence
[more]inline void getPulse(unsigned int i, double& length, osg::Vec4& color) const
return the pulse data at position i.
[more]inline osg::Vec4 color(double time, double length) const
compute the color for the time interval sepecifed.

Protected Fields

[more]double _pulsePeriod
[more]double _phaseShift
[more]PulseData _pulseData
[more]osg::ref_ptr<SequenceGroup> _sequenceGroup

Protected

[more]typedef std::pair<double,osg::Vec4> IntervalColor
[more]typedef std::vector<IntervalColor> PulseData


Documentation

o BlinkSequence()

o BlinkSequence(const BlinkSequence& bs, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY)

o META_Object(osgSim, BlinkSequence)

oinline int getNumPulses() const
return the number of pulses.

oinline double getPulsePeriod() const
get the total pulse period of the blink sequence, which is equal to the sum of all the pulse periods

oinline void setSequenceGroup(SequenceGroup* sg)
set the sequence group which can be used to synchronize related blink sequences

oinline SequenceGroup* getSequenceGroup()
get the non const sequence group

oinline const SequenceGroup* getSequenceGroup() const
get the const sequence group

oinline void setPhaseShift(double ps)
set the phase shift of the blink sequence, this would be used to shift a sequence within a sequence group

oinline double getPhaseShift() const
get the pahse shift

otypedef std::pair<double,osg::Vec4> IntervalColor

otypedef std::vector<IntervalColor> PulseData

odouble _pulsePeriod

odouble _phaseShift

oPulseData _pulseData

oosg::ref_ptr<SequenceGroup> _sequenceGroup

oinline double localTime(double time) const
compute the local time clamped to this BlinkSequences period, and accounting for the phase shift and sequence group

oinline void addPulse(double length, const osg::Vec4& color)
add a pulse of specified color and duration to the BlinkSequence

oinline void getPulse(unsigned int i, double& length, osg::Vec4& color) const
return the pulse data at position i.

oinline osg::Vec4 color(double time, double length) const
compute the color for the time interval sepecifed. Averages the colors if the length is greater than the current pulse.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.