Interface TimeSensor
- All Superinterfaces:
- X3DChildNode,- X3DNode,- X3DSensorNode,- X3DTimeDependentNode
- All Known Implementing Classes:
- TimeSensor
TimeSensor continuously generates events as time passes.
 
 
TimeSensor node tooltip: [X3DTimeDependentNode,X3DSensorNode] TimeSensor continuously generates events as time passes. Typical use: ROUTE thisTimeSensorDEF.fraction_changed TO someInterpolatorDEF.set_fraction. Interchange profile
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
TimeSensor node tooltip: [X3DTimeDependentNode,X3DSensorNode] TimeSensor continuously generates events as time passes. Typical use: ROUTE thisTimeSensorDEF.fraction_changed TO someInterpolatorDEF.set_fraction. Interchange profile
- Hint: TimeSensor may be ignored if cycleInterval < 0.01 second.
- Hint: event timing details are explained in X3D Specification 4.4.8.3 Execution model https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/concepts.html#ExecutionModel
- Hint: X3D Architecture 8 Time component https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/time.html
- Hint: example scenes and authoring assets at https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptiondoubleProvide double value in seconds within allowed range of [0,infinity) from inputOutput SFTime field named cycleInterval.doubleProvide double value in seconds within allowed range of [0,infinity) from outputOnly SFTime field named cycleTime.Provide String value from inputOutput SFString field named description.doubleProvide double value in seconds within allowed range of [0,infinity) from outputOnly SFTime field named elapsedTime.booleanProvide boolean value from inputOutput SFBool field named enabled.floatProvide float value from outputOnly SFFloat field named fraction_changed.booleanProvide boolean value from outputOnly SFBool field named isActive.booleanProvide boolean value from outputOnly SFBool field named isPaused.booleangetLoop()Provide boolean value from inputOutput SFBool field named loop.Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.doubleProvide double value in seconds from inputOutput SFTime field named pauseTime.doubleProvide double value in seconds from inputOutput SFTime field named resumeTime.doubleProvide double value in seconds from inputOutput SFTime field named startTime.doubleProvide double value in seconds from inputOutput SFTime field named stopTime.doublegetTime()Provide double value in seconds within allowed range of [0,infinity) from outputOnly SFTime field named time.setCycleInterval(double newValue) Accessor method to assign double value in seconds to inputOutput SFTime field named cycleInterval.setDescription(String newValue) Accessor method to assign String value to inputOutput SFString field named description.setEnabled(boolean newValue) Accessor method to assign boolean value to inputOutput SFBool field named enabled.setLoop(boolean newValue) Accessor method to assign boolean value to inputOutput SFBool field named loop.setMetadata(X3DMetadataObject newValue) Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.setPauseTime(double newValue) Accessor method to assign double value in seconds to inputOutput SFTime field named pauseTime.setResumeTime(double newValue) Accessor method to assign double value in seconds to inputOutput SFTime field named resumeTime.setStartTime(double newValue) Accessor method to assign double value in seconds to inputOutput SFTime field named startTime.setStopTime(double newValue) Accessor method to assign double value in seconds to inputOutput SFTime field named stopTime.
- 
Method Details- 
getCycleIntervaldouble getCycleInterval()Provide double value in seconds within allowed range of [0,infinity) from inputOutput SFTime field named cycleInterval.
 Tooltip: [0,+infinity) cycleInterval is loop duration in seconds. Interchange profile- Hint: TimeSensor may be ignored if cycleInterval < 0.01 second.
- Warning: An active TimeSensor node ignores set_cycleInterval and set_startTime events.
- Hint: cycleInterval is a nonnegative SFTime duration interval, not an absolute clock time.
 - Returns:
- value of cycleInterval field
 
- 
setCycleIntervalAccessor method to assign double value in seconds to inputOutput SFTime field named cycleInterval.
 Tooltip: [0,+infinity) cycleInterval is loop duration in seconds. Interchange profile- Hint: TimeSensor may be ignored if cycleInterval < 0.01 second.
- Warning: An active TimeSensor node ignores set_cycleInterval and set_startTime events.
- Hint: cycleInterval is a nonnegative SFTime duration interval, not an absolute clock time.
 - Parameters:
- newValue- is new value for the cycleInterval field.
- Returns:
- TimeSensor- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
 
- 
getCycleTimedouble getCycleTime()Provide double value in seconds within allowed range of [0,infinity) from outputOnly SFTime field named cycleTime.
 Tooltip: cycleTime sends a time outputOnly at startTime, and also at the beginning of each new cycle (useful for synchronization with other time-based objects).- Hint: the first cycleTime event for a TimeSensor node can be used as an alarm (single pulse at a specified time).
- Hint: cycleTime is a nonnegative SFTime duration interval, not an absolute clock time.
- Warning: it is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
 - Returns:
- value of cycleTime field
 
- 
getDescriptionString getDescription()Provide String value from inputOutput SFString field named description.
 Tooltip: Author-provided prose that describes intended purpose of this node.- Hint: many XML tools substitute XML character references for special characters automatically if needed within an attribute value (such as & for & ampersand character, or " for " quotation-mark character).
 - Specified by:
- getDescriptionin interface- X3DSensorNode
- Specified by:
- getDescriptionin interface- X3DTimeDependentNode
- Returns:
- value of description field
 
- 
setDescriptionAccessor method to assign String value to inputOutput SFString field named description.
 Tooltip: Author-provided prose that describes intended purpose of this node.- Hint: many XML tools substitute XML character references for special characters automatically if needed within an attribute value (such as & for & ampersand character, or " for " quotation-mark character).
 - Specified by:
- setDescriptionin interface- X3DSensorNode
- Specified by:
- setDescriptionin interface- X3DTimeDependentNode
- Parameters:
- newValue- is new value for the description field.
- Returns:
- TimeSensor- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
 
- 
getElapsedTimedouble getElapsedTime()Provide double value in seconds within allowed range of [0,infinity) from outputOnly SFTime field named elapsedTime.
 Tooltip: [0,+infinity) Current elapsed time since TimeSensor activated/running, cumulative in seconds, and not counting any paused time.- Warning: not supported in VRML97.
- Warning: it is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
- Hint: elapsedTime is a nonnegative SFTime duration interval, not an absolute clock time.
 - Specified by:
- getElapsedTimein interface- X3DTimeDependentNode
- Returns:
- value of elapsedTime field
 
- 
getEnabledboolean getEnabled()Provide boolean value from inputOutput SFBool field named enabled.
 Tooltip: Enables/disables node operation. *- Specified by:
- getEnabledin interface- X3DSensorNode
- Returns:
- value of enabled field
 
- 
setEnabledAccessor method to assign boolean value to inputOutput SFBool field named enabled.
 Tooltip: Enables/disables node operation. *- Specified by:
- setEnabledin interface- X3DSensorNode
- Parameters:
- newValue- is new value for the enabled field.
- Returns:
- TimeSensor- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
 
- 
getFractionfloat getFraction()Provide float value from outputOnly SFFloat field named fraction_changed.
 Tooltip: fraction_changed continuously sends value in range [0,1] showing time progress in the current cycle.- Warning: it is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
 - Returns:
- value of fraction_changed field
 
- 
getIsActiveboolean getIsActive()Provide boolean value from outputOnly SFBool field named isActive.
 Tooltip: isActive true/false events are sent when TimeSensor starts/stops running.- Warning: it is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
 - Specified by:
- getIsActivein interface- X3DSensorNode
- Specified by:
- getIsActivein interface- X3DTimeDependentNode
- Returns:
- value of isActive field
 
- 
getIsPausedboolean getIsPaused()Provide boolean value from outputOnly SFBool field named isPaused.
 Tooltip: isPaused true/false events are sent when TimeSensor is paused/resumed.- Warning: not supported in VRML97.
- Warning: it is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
 - Specified by:
- getIsPausedin interface- X3DTimeDependentNode
- Returns:
- value of isPaused field
 
- 
getLoopboolean getLoop()Provide boolean value from inputOutput SFBool field named loop.
 Tooltip: Repeat indefinitely when loop=true, repeat only once when loop=false. *- Returns:
- value of loop field
 
- 
setLoopAccessor method to assign boolean value to inputOutput SFBool field named loop.
 Tooltip: Repeat indefinitely when loop=true, repeat only once when loop=false. *- Parameters:
- newValue- is new value for the loop field.
- Returns:
- TimeSensor- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
 
- 
getMetadataX3DMetadataObject getMetadata()Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
 Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.- Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/core.html#Metadata
 - Specified by:
- getMetadatain interface- X3DChildNode
- Specified by:
- getMetadatain interface- X3DNode
- Specified by:
- getMetadatain interface- X3DSensorNode
- Specified by:
- getMetadatain interface- X3DTimeDependentNode
- Returns:
- value of metadata field
- See Also:
 
- 
setMetadataAccessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
 Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.- Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/core.html#Metadata
 - Specified by:
- setMetadatain interface- X3DChildNode
- Specified by:
- setMetadatain interface- X3DNode
- Specified by:
- setMetadatain interface- X3DSensorNode
- Specified by:
- setMetadatain interface- X3DTimeDependentNode
- Parameters:
- newValue- is new value for the metadata field.
- Returns:
- TimeSensor- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
- See Also:
 
- 
getPauseTimedouble getPauseTime()Provide double value in seconds from inputOutput SFTime field named pauseTime.
 Tooltip: When time now >= pauseTime, isPaused becomes true and TimeSensor becomes paused. Absolute time: number of seconds since January 1, 1970, 00:00:00 GMT.- Hint: ROUTE a time value matching system clock to this field, such as output event from TouchSensor touchTime or TimeTrigger triggerTime.
- Warning: not supported in VRML97.
 - Specified by:
- getPauseTimein interface- X3DTimeDependentNode
- Returns:
- value of pauseTime field
 
- 
setPauseTimeAccessor method to assign double value in seconds to inputOutput SFTime field named pauseTime.
 Tooltip: When time now >= pauseTime, isPaused becomes true and TimeSensor becomes paused. Absolute time: number of seconds since January 1, 1970, 00:00:00 GMT.- Hint: ROUTE a time value matching system clock to this field, such as output event from TouchSensor touchTime or TimeTrigger triggerTime.
- Warning: not supported in VRML97.
 - Specified by:
- setPauseTimein interface- X3DTimeDependentNode
- Parameters:
- newValue- is new value for the pauseTime field.
- Returns:
- TimeSensor- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
 
- 
getResumeTimedouble getResumeTime()Provide double value in seconds from inputOutput SFTime field named resumeTime.
 Tooltip: When resumeTime becomes <= time now, isPaused becomes false and TimeSensor becomes inactive. Absolute time: number of seconds since January 1, 1970, 00:00:00 GMT.- Hint: ROUTE a time value matching system clock to this field, such as output event from TouchSensor touchTime or TimeTrigger triggerTime.
- Warning: not supported in VRML97.
 - Specified by:
- getResumeTimein interface- X3DTimeDependentNode
- Returns:
- value of resumeTime field
 
- 
setResumeTimeAccessor method to assign double value in seconds to inputOutput SFTime field named resumeTime.
 Tooltip: When resumeTime becomes <= time now, isPaused becomes false and TimeSensor becomes inactive. Absolute time: number of seconds since January 1, 1970, 00:00:00 GMT.- Hint: ROUTE a time value matching system clock to this field, such as output event from TouchSensor touchTime or TimeTrigger triggerTime.
- Warning: not supported in VRML97.
 - Specified by:
- setResumeTimein interface- X3DTimeDependentNode
- Parameters:
- newValue- is new value for the resumeTime field.
- Returns:
- TimeSensor- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
 
- 
getStartTimedouble getStartTime()Provide double value in seconds from inputOutput SFTime field named startTime.
 Tooltip: When time now >= startTime, isActive becomes true and TimeSensor becomes active. Absolute time: number of seconds since January 1, 1970, 00:00:00 GMT.- Hint: ROUTE a time value matching system clock to this field, such as output event from TouchSensor touchTime or TimeTrigger triggerTime.
 - Specified by:
- getStartTimein interface- X3DTimeDependentNode
- Returns:
- value of startTime field
 
- 
setStartTimeAccessor method to assign double value in seconds to inputOutput SFTime field named startTime.
 Tooltip: When time now >= startTime, isActive becomes true and TimeSensor becomes active. Absolute time: number of seconds since January 1, 1970, 00:00:00 GMT.- Hint: ROUTE a time value matching system clock to this field, such as output event from TouchSensor touchTime or TimeTrigger triggerTime.
 - Specified by:
- setStartTimein interface- X3DTimeDependentNode
- Parameters:
- newValue- is new value for the startTime field.
- Returns:
- TimeSensor- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
 
- 
getStopTimedouble getStopTime()Provide double value in seconds from inputOutput SFTime field named stopTime.
 Tooltip: When stopTime becomes <= time now, isActive becomes false and TimeSensor becomes inactive. Absolute time: number of seconds since January 1, 1970, 00:00:00 GMT.- Hint: ROUTE a time value matching system clock to this field, such as output event from TouchSensor touchTime or TimeTrigger triggerTime.
- Warning: An active TimeSensor node ignores set_cycleInterval and set_startTime events.
- Warning: An active TimeSensor node ignores set_stopTime event values less than or equal to startTime.
 - Specified by:
- getStopTimein interface- X3DTimeDependentNode
- Returns:
- value of stopTime field
 
- 
setStopTimeAccessor method to assign double value in seconds to inputOutput SFTime field named stopTime.
 Tooltip: When stopTime becomes <= time now, isActive becomes false and TimeSensor becomes inactive. Absolute time: number of seconds since January 1, 1970, 00:00:00 GMT.- Hint: ROUTE a time value matching system clock to this field, such as output event from TouchSensor touchTime or TimeTrigger triggerTime.
- Warning: An active TimeSensor node ignores set_cycleInterval and set_startTime events.
- Warning: An active TimeSensor node ignores set_stopTime event values less than or equal to startTime.
 - Specified by:
- setStopTimein interface- X3DTimeDependentNode
- Parameters:
- newValue- is new value for the stopTime field.
- Returns:
- TimeSensor- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
 
- 
getTimedouble getTime()Provide double value in seconds within allowed range of [0,infinity) from outputOnly SFTime field named time.
 Tooltip: [0,+infinity) Time continuously sends the absolute time (value 0.0 matches 1 January 1970) in seconds for a given simulation tick.- Warning: it is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
 - Returns:
- value of time field
 
 
-