29 #ifndef __TIMESENSOR_H__
30 #define __TIMESENSOR_H__
145 virtual void update();
147 virtual void activate(
H3DTime time );
161 Inst< SFBool > _loop = 0,
162 Inst< SFTime > _pauseTime = 0,
163 Inst< SFTime > _resumeTime = 0,
164 Inst< StartTime > _startTime = 0,
165 Inst< StopTime > _stopTime = 0,
166 Inst< SFTime > _elapsedTime = 0,
167 Inst< SFBool > _isActive = 0,
168 Inst< SFBool > _isPaused = 0,
169 Inst< TimeHandler > _timeHandler = 0,
170 Inst< CycleInterval > _cycleInterval = 0,
171 Inst< SFTime > _cycleTime = 0,
172 Inst< SFBool > _enabled = 0,
173 Inst< SFFloat > _fraction_changed = 0,
174 Inst< SFTime > _time = 0 );
210 bool activate_through_enabled;
211 bool previous_enabled;
Contains the SFFloat field class.
Header file for X3DTimeDependentNode, X3D scene-graph node.
The TimeHandler field is specialized to include the handling of the TimeSensor specific fields.
Definition: TimeSensor.h:139
H3DTime elapsed_cycle_time
The time that have elapsed in the current cycle.
Definition: TimeSensor.h:149
TimeSensor nodes generate events as time passes.
Definition: TimeSensor.h:134
H3DUniquePtr< CycleInterval > cycleInterval
The cycleInterval field defines how long a cycle lasts in seconds.
Definition: TimeSensor.h:180
H3DUniquePtr< SFBool > enabled
If the enabled field is TRUE, the TimeSensor node is enabled and may be running, otherwise no field u...
Definition: TimeSensor.h:193
H3DUniquePtr< SFFloat > fraction_changed
The fraction_changed field is the completed fraction of the current cycle, i.e.
Definition: TimeSensor.h:199
StartTime CycleInterval
The CycleInterval has the same conditions for update as the StartTime so use that field class definit...
Definition: TimeSensor.h:157
H3DUniquePtr< SFTime > cycleTime
The cycleTime field sends a time event at startTime and at the beginning of each new cycle with the c...
Definition: TimeSensor.h:186
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: TimeSensor.h:208
H3DUniquePtr< SFTime > time
The time field sends the absolute time for a given simulation tick( i.e.
Definition: TimeSensor.h:205
The StartTime field is a specialization of the SFTime field so that the value cannot be changed when ...
Definition: X3DTimeDependentNode.h:75
The TimeHandler field updates once per scene-graph loop to monitor the current time and updates the f...
Definition: X3DTimeDependentNode.h:50
This abstract node type is the base node type from which all time-dependent nodes are derived.
Definition: X3DTimeDependentNode.h:41
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194