| |
- TimeSensor(Sensor, Children, TimeDependent, Node)
-
- TimeSensor
class TimeSensor(TimeSensor) |
|
TimeSensor node based on VRML 97 TimeSensor
Reference:
http://www.web3d.org/x3d/specifications/vrml/ISO-IEC-14772-IS-VRML97WithAmendment1/part1/nodesRef.html#TimeSensor
TimeSensor is the VRML97 node which generated time-based
events. These are normally used to run animations or,
with scripts, to provide higher-level interactivity. |
|
- Method resolution order:
- TimeSensor
- TimeSensor
- Sensor
- Children
- TimeDependent
- Node
- object
Methods defined here:
- bind(self, context)
- Bind this time-sensor to a particular context
- getTimer(self, context)
- Retrieve the timer for this time-sensor
- onCycle(self, event)
- Handle a cycle event from our Timer
- onFraction(self, event)
- Handle a fractional event from our Timer
Data descriptors inherited from TimeSensor:
- cycleInterval
- exposedField SFTime cycleInterval 1.0
- cycleTime
- SFTime Event class
- enabled
- exposedField SFBool enabled 1
- fraction_changed
- SFFloat Event class
- isActive
- SFBool Event class
- loop
- exposedField SFBool loop 0
- startTime
- exposedField SFTime startTime 0.0
- stopTime
- exposedField SFTime stopTime 0.0
- time
- SFTime Event class
Data and other attributes inherited from TimeSensor:
- PROTO = 'TimeSensor'
Data descriptors inherited from Sensor:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from Children:
- sensitive = 0
Methods inherited from Node:
- __init__(self, **namedarguments)
- Initialise the node with appropriate named args
All properties/attributes must be specified with
named arguments, and the property/attribute must
exist within the Node's class/prototype.
This will raise AttributeError/ValueError/TypeError
if the values or the property names are inappropriate.
Note that all Node objects have the attribute/property
exposedField SFString DEF ""
defined. You may therefore specify a DEF name by
passing it as a named argument.
- __repr__(self)
- Get a code-like representation of the Node
Basically every attribute except for sub-nodes values
are returned as a full representation.
- __str__(self)
- Get a friendly representation of the Node
- copy(self, copier=None)
- Copy this node for copier
- toString(self, **namedargs)
- Generate a VRML 97-syntax string representing this Prototype
**namedargs -- key:value
passed arguments for the linearisation object
see lineariser4.Lineariser
Data descriptors inherited from Node:
- DEF
- exposedField SFString DEF
- externalURL
- exposedField MFString externalURL []
- rootSceneGraph
- exposedField RootScenegraphNode SFNode NULL
| |