vrml.route
ROUTE and ISRoute Implementations (event-processing)
Classes
An is-mapping for a field/event
Functionally, an instantiated IS is just a
multi-directional ROUTE (that is, it's a route
to and from a given field on the base node to
the sub-nodes.
Multiple-value-field ROUTEs
baseSFNode
exposedField SFRoute SFNode <bound method SFRout
Representation and implementation of a VRML97 ROUTE
This implementation uses the dispatcher module to create
an approximation of the VRML97 event model. It allows nodes
to forward events via the ROUTE objects, and watches for
event cycles.
destination
exposedField SFNode SFNode <bound method SFNode
destinationField
exposedField SFString destinationField
source
exposedField SFNode SFNode <bound method SFNode
sourceField
exposedField SFString sourceField
__init__(
self
,
*
arguments
,
**
named
)
Initialize the route object
Calls self.bind() after normal node.Node
argument processing.
_bind(
self
,
source
,
field
)
Low-level binding of the source,field key
This method allows sub-classes to do multiple
bindings when bind() is called.
_forward(
self
,
sender
,
signal
,
destination
,
destinationField
,
event
= None
,
value
= None
,
**
arguments
)
Do the low-level forwarding of the value to a target field