Home | Download | Screen shots | Discussion | Documentation | Links |
---|
Inheritance diagram for TimeSensor:
Public Methods | |
TimeSensor (const NodeType &nodeType, const ScopePtr &scope) | |
Constructor. | |
virtual | ~TimeSensor () throw () |
Destructor. | |
virtual TimeSensor * | toTimeSensor () const |
Cast to a TimeSensor. | |
virtual const BVolume * | getBVolume () const |
Get the bounding volume. | |
void | update (double time) |
Private Methods | |
virtual void | initializeImpl (double timestamp) throw () |
Initialize. | |
void | processSet_cycleInterval (const FieldValue &sftime, double timestamp) throw (std::bad_cast) |
set_cycleInterval eventIn handler. | |
void | processSet_enabled (const FieldValue &sfbool, double timestamp) throw (std::bad_cast) |
set_enabled eventIn handler. | |
void | processSet_loop (const FieldValue &sfbool, double timestamp) throw (std::bad_cast) |
set_loop eventIn handler. | |
void | processSet_startTime (const FieldValue &sftime, double timestamp) throw (std::bad_cast) |
set_startTime eventIn handler. | |
void | processSet_stopTime (const FieldValue &sftime, double timestamp) throw (std::bad_cast) |
set_stopTime eventIn handler. | |
Private Attributes | |
SFTime | cycleInterval |
cycleInterval exposedField. | |
SFBool | enabled |
enabled exposedField. | |
SFBool | loop |
loop exposedField. | |
SFTime | startTime |
startTime exposedField. | |
SFTime | stopTime |
stopTime exposedField. | |
SFTime | cycleTime |
cycleTime eventOut. | |
SFFloat | fraction |
fraction_changed eventOut. | |
SFBool | active |
isActive eventOut. | |
SFTime | time |
time eventOut. | |
double | lastTime |
The timestamp previously received. | |
Friends | |
class | TimeSensorClass |
Class object for TimeSensor instances. |
|
Constructor.
|
|
Destructor.
|
|
Get the bounding volume.
Reimplemented from Node. |
|
Initialize.
Reimplemented from Node. |
|
set_cycleInterval eventIn handler.
|
|
set_enabled eventIn handler.
|
|
set_loop eventIn handler.
|
|
set_startTime eventIn handler.
|
|
set_stopTime eventIn handler.
|
|
Cast to a TimeSensor.
Reimplemented from Node. |
|
Generate timer events. If necessary, events prior to the timestamp (inTime) are generated to respect stopTimes and cycleIntervals. The timestamp should never be increased. This assumes the event loop delivers pending events in order (ascending time stamps). Should inTime be modified? Should ensure continuous events are delivered before discrete ones (such as cycleTime, isActive). |
|
Class object for TimeSensor instances.
|
|
isActive eventOut.
|
|
cycleInterval exposedField.
|
|
cycleTime eventOut.
|
|
enabled exposedField.
|
|
fraction_changed eventOut.
|
|
The timestamp previously received.
|
|
loop exposedField.
|
|
startTime exposedField.
|
|
stopTime exposedField.
|
|
time eventOut.
|