Home | Download | Screen shots | Discussion | Documentation |
---|
Inheritance diagram for openvrml::vrml97_node::time_sensor_node:
Public Member Functions | |
time_sensor_node (const node_type &type, const scope_ptr &scope) | |
Construct. | |
virtual | ~time_sensor_node () throw () |
Destroy. | |
virtual time_sensor_node * | to_time_sensor () const |
Cast to a time_sensor_node. | |
void | update (double time) |
Private Member Functions | |
virtual void | do_initialize (double timestamp) throw (std::bad_alloc) |
Initialize. | |
virtual void | do_shutdown (double timestamp) throw () |
Shut down. | |
void | process_set_cycleInterval (const field_value &value, double timestamp) throw (std::bad_cast) |
set_cycleInterval eventIn handler. | |
void | process_set_enabled (const field_value &value, double timestamp) throw (std::bad_cast) |
set_enabled eventIn handler. | |
void | process_set_loop (const field_value &value, double timestamp) throw (std::bad_cast) |
set_loop eventIn handler. | |
void | process_set_startTime (const field_value &value, double timestamp) throw (std::bad_cast) |
set_startTime eventIn handler. | |
void | process_set_stopTime (const field_value &value, 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 | time_sensor_class |
Class object for TimeSensor instances. |
|
Construct.
|
|
Destroy.
|
|
Initialize.
Reimplemented from openvrml::node. |
|
Shut down.
Reimplemented from openvrml::node. |
|
set_cycleInterval eventIn handler.
|
|
set_enabled eventIn handler.
|
|
set_loop eventIn handler.
|
|
set_startTime eventIn handler.
|
|
set_stopTime eventIn handler.
|
|
Cast to a time_sensor_node.
Reimplemented from openvrml::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.
|