vrml.node

Base-class for scenegraph nodes
Requires Python 2.2.x, as it makes extensive use of properties

Functions

Classes

MFNode Field class
MFNode Event class
class Node( object ):
A generic scene graph node
Unlike earlier versions of the library, this implementation of the Node class is basically a regular python class. This is possible because it uses the python 2.2.x property/descriptor API extensively.
Technically this is a multiple-hierarchy DAG node, as there can be any number of node children attributes, and nodes may appear multiple times in the hierarchy.
Attributes of note: " DEF" field a simple string field which stores the DEF name of a node instance " scenegraph" attribute pointer to the node's implementation scenegraph (at the moment, this is not actually used for anything) " PROTO" attribute stores the PROTO name of the node externalURL attribute stores the MFString url for the node's externproto definition if appropriate toString method convenience access to the lineariser to give VRML97-formatted representation of the node
DEF
exposedField SFString DEF
externalURL
exposedField MFString externalURL []
rootSceneGraph
exposedField RootScenegraphNode SFNode NULL
(Restricted) SFNode type
This is the publically available SFNode type, a sub-class of _SFNode and field.Field
Weak-referenced SFNode field-type