| |
- Method resolution order:
- ParseProcessor
- DispatchProcessor
- Processor
- MethodSource
Methods defined here:
- Attr(self, (tag, start, stop, (name, value)), buffer)
- An attribute of a node or script
- EOF = header(self, (tag, left, right, children), buffer)
- ExtProtoURL(self, (tag, start, stop, sublist), buffer)
- add the url to the external prototype
- ExternProto(self, (tag, left, right, children), buffer)
- Process an external Prototype declaration
- Field(self, (tag, start, stop, sublist), buffer)
- A field value (of any type)
- IS(self, (tag, start, stop, (nametuple,)), buffer)
- Create a field reference
- MFColor = MFFloat(self, tuples, buffer)
- MFFloat(self, tuples, buffer)
- MFFloat32 = MFFloat(self, tuples, buffer)
- MFInt32(self, tuples, buffer)
- MFRotation = MFFloat(self, tuples, buffer)
- MFString(self, tuples, buffer)
- MFTime = MFFloat(self, tuples, buffer)
- MFUInt32(self, tuples, buffer)
- MFVec2f = MFFloat(self, tuples, buffer)
- MFVec3f = MFFloat(self, tuples, buffer)
- Node(self, (tag, start, stop, sublist), buffer)
- Create new node, returning the value to the caller
- Proto(self, (tag, left, right, children), buffer)
- Process a regular Prototype declaration
- ROUTE(self, (tag, start, stop, sublist), buffer)
- Create a new route object/node, add the current sceneGraph
- SFArray(self, values, buffer, final=True)
- Process a vector-of-values data-set
- SFBool(self, (tup,), buffer)
- Boolean, in Python tradition is either 0 or 1
- SFColor = SFVec3f(self, (x, y, z), buffer)
- SFFloat(self, (tup,), buffer)
- SFImage = MFInt32(self, tuples, buffer)
- SFInt32(self, (tup,), buffer)
- SFNull(self, tup, buffer)
- Create a reference to the SFNull node
- SFRotation(self, (x, y, z, a), buffer)
- SFString(self, ((tag, start, stop, sublist),), buffer)
- Return the (escaped) string as a simple Python string
- SFTime = SFFloat(self, (tup,), buffer)
- SFVec2f(self, (x, y), buffer)
- SFVec3f(self, (x, y, z), buffer)
- Script(self, (tag, start, stop, sublist), buffer)
- A script node (can be a root node)
- ScriptEventDecl(self, (tag, left, right, sublist), buffer)
- ScriptFieldDecl(self, (tag, left, right, (exposure, datatype, name, value)), buffer)
- Field declaration for a script node
- USE(self, tup, buffer)
- Create a reference to an existing named node
- __init__(self, basePrototypes=None, baseURI='')
- Initialise the ParseProcessor
basePrototypes -- name: constructor mapping for all
prototypes to be built by the processor. Should
include at least:
* Script
* PROTO
* NULL
* sceneGraph
* ROUTE
as those "node" types are used during the
building process. You must also include any
built-in node types which you want recognised
without needing a prototype declaration.
If None, will use:
vrml.vrml97.basenamespaces.basePrototypes
- eventDecl(self, (tag, left, right, (direction, datatype, name)), buffer)
- extFieldDecl(self, (tag, start, stop, (exposure, datatype, name)), buffer)
- An external field declaration, no default value
- fieldDecl(self, (tag, left, right, (exposure, datatype, name, value)), buffer)
- ### Field and event declarations
- header(self, (tag, left, right, children), buffer)
- We ignore the header for now
- rootItem(self, (tag, left, right, children), buffer)
- A scenegraph root-item
- vrmlScene(self, (tag, left, right, children), buffer)
- Instantiate a VRML scene object
Methods inherited from DispatchProcessor:
- __call__(self, value, buffer)
- Process the results of the parsing run over buffer
Value can either be: (success, tags, next) for a top-level
production, or (tag, left, right, children) for a non-top
production.
Methods inherited from Processor:
- __repr__(self)
- Return a representation of the class
|