instantreality 1.0

ExecutionContext

The execution context.

Properties

TypePropertyDescriptionStandard
StringspecificationVersion

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
Stringencoding

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
ProfileInfoprofile

Returns as singe ProfileInfo object for the current executionContext.

X3D3.0
ComponentInfoArraycomponents

Returns an array of ComponentInfo objects. One for every referenced Component.

X3D3.0
StringworldURL

Retuns the url of the execution context.

X3D3.0
SFNoderefNode

Returns the single reference node for the current executionContext. Can be e.g. a Scene, ProtoInstance or Inline node.

Avalon
MFNoderootNodes

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
ProtoDeclarationArrayprotos

Returns an array of all local proto declarations as ProtoDeclaration objects.

X3D3.0
ExternProtoDeclarationArrayexternprotos

Returns an array of all extern proto declarations as ProtoDeclaration objects.

X3D3.0
RouteArrayroutes

Returns an static array of Route objects.

X3D3.0

Functions

Return typeFunctionDescriptionStandard
RouteaddRoute(SFNode fromNode, String fromReadableField, SFNode toNode, String toWritableField)

Adds the route from fromNode.fromReadableField to toNode.toWritableField.

X3D3.0
voiddeleteRoute(Route route)

Removes the given route.

X3D3.0
SFNodecreateNode(String nodetype)

Creates and returns a new node of the given nodetype. E.g. Browser.currentScene.createNode("Shape"); will create and return a Shape node.

X3D3.0
SFNodecreateProto(String type)

Creates and returns the new proto of the given type.

X3D3.0
SFNodegetImportedNode(String nodename)

Returns the imported node named nodename.

X3D3.0
voidupdateImportedNode(String s, SFNode node)

to be described... spec says nothing.

Bugnot implemented yet

X3D3.0
voidremoveImportedNode(String s)

to be described... spec says nothing

Bugnot implemented yet

X3D3.0
SFNodegetNamedNode(String nodeName)

Returns the named node identified by the given name.

X3D3.0
voidupdateNamedNode(String nodeName, SFNode newNode)

Updates the node named nodeName by the given newNode.

X3D3.0
voidremoveNamedNode(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