ExecutionContext
The execution context.
Properties
Type | Property | Description | Standard |
---|---|---|---|
String | specificationVersion | The string shall represent the basic specification version used by the parsed file in decimal format. For example, a scene conforming to this specification will return the value "3.0".
| X3D3.0 |
String | encoding | The encoding is represented as a string that describes the data encoding used. Valid values are "ASCII", "VRML", "XML", "BINARY", "SCRIPTED", "BIFS", "NONE".
| X3D3.0 |
ProfileInfo | profile | Returns as singe ProfileInfo object for the current executionContext.
| X3D3.0 |
ComponentInfoArray | components | Returns an array of ComponentInfo objects. One for every referenced Component.
| X3D3.0 |
String | worldURL | Retuns the url of the execution context.
| X3D3.0 |
SFNode | refNode | Returns the single reference node for the current executionContext. Can be e.g. a Scene, ProtoInstance or Inline node.
| Avalon |
MFNode | rootNodes | Returns all root nodes for the current executionContext. When used inside a prototype instance, this property is not writable. When used anywhere else, this is writeable.
| X3D3.0 |
ProtoDeclarationArray | protos | Returns an array of all local proto declarations as ProtoDeclaration objects.
| X3D3.0 |
ExternProtoDeclarationArray | externprotos | Returns an array of all extern proto declarations as ProtoDeclaration objects.
| X3D3.0 |
RouteArray | routes | Returns an static array of Route objects.
| X3D3.0 |
Functions
Return type | Function | Description | Standard |
---|---|---|---|
Route | addRoute(SFNode fromNode, String fromReadableField, SFNode toNode, String toWritableField) | Adds the route from fromNode.fromReadableField to toNode.toWritableField.
| X3D3.0 |
void | deleteRoute(Route route) | Removes the given route.
| X3D3.0 |
SFNode | createNode(String nodetype) |
Creates and returns a new node of the given nodetype. E.g.
| X3D3.0 |
SFNode | createProto(String type) | Creates and returns the new proto of the given type.
| X3D3.0 |
SFNode | getImportedNode(String nodename) |
Returns the imported node named
| X3D3.0 |
void | updateImportedNode(String s, SFNode node) | to be described... spec says nothing. Bugnot implemented yet | X3D3.0 |
void | removeImportedNode(String s) | to be described... spec says nothing Bugnot implemented yet | X3D3.0 |
SFNode | getNamedNode(String nodeName) | Returns the named node identified by the given name.
| X3D3.0 |
void | updateNamedNode(String nodeName, SFNode newNode) | Updates the node named nodeName by the given newNode.
| X3D3.0 |
void | removeNamedNode(String nodeName) | Removes the name of the node identified by the given name (i.e., only removes name but does not delete node).
| X3D3.0 |