Class Scene
java.lang.Object
org.web3d.vrml.scripting.ecmascript.builtin.AbstractScriptableObject
org.web3d.vrml.scripting.ecmascript.x3d.X3DExecutionContext
org.web3d.vrml.scripting.ecmascript.x3d.Scene
- All Implemented Interfaces:
org.mozilla.javascript.Scriptable
Representation of the ECMAscript Scene host object from 19777-2 7.4.
Due to the limitation of the locateFunction method, methods that are defined in the base execution context typically cannot be found here because it doesn't go searching base classes - just the top level class. That means we need to redeclare the methods in this class. All they do is call the super class methods of the same name.
- Version:
- $Revision: 1.6 $
- Author:
- Justin Couch
-
Field Summary
Fields inherited from class org.web3d.vrml.scripting.ecmascript.x3d.X3DExecutionContext
components, encoding, errorReporter, executionSpace, externprotos, functionNames, importMap, nodeWrapperList, nodeWrapperMap, profile, propertyNames, protos, rootNodes, routeManager, scene, sceneChanged, specVersion, stateManager, urlFields inherited from class org.web3d.vrml.scripting.ecmascript.builtin.AbstractScriptableObject
BAD_FORMAT_MSG, dataChanged, INVALID_TYPE_MSG, JS_FUNCTION_PREFIX, readOnly, READONLY_MSGFields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionScene(VRMLExecutionSpace space, RouteManager rm, FrameStateManager fsm, ProfileInfo profile) Default version of the constructor for when someone is creating a new instance of the Scene object. -
Method Summary
Modifier and TypeMethodDescriptionjsFunction_addRoute(org.mozilla.javascript.Scriptable fn, String fromField, org.mozilla.javascript.Scriptable tn, String toField) addRoute() function defined by From table 6.6.jsFunction_createNode(String name) createNode() function defined by From table 6.6.jsFunction_createProto(String name) createProto() function defined by From table 6.6.voidjsFunction_deleteRoute(org.mozilla.javascript.Scriptable route) deleteRoute() function defined by From table 6.6jsFunction_getImportedNode(String defName, String asName) getImportedNode() function defined by From table 7.8.jsFunction_getMetaData(String name) getNamedNode() function defined by From table 6.6.voidvoidgetImportedNode() function defined by From table 7.8.voidremoveNamedNode() function defined by From table 6.6.voidjsFunction_setMetaData(String name, String value) voidjsFunction_updateExportedNode(String name, org.mozilla.javascript.Scriptable n) voidjsFunction_updateImportedNode(String defName, String asName) updateImportedNode() function defined by From table 7.8.voidjsFunction_updateNamedNode(String name, org.mozilla.javascript.Scriptable node) updateNamedNode() function defined by From table 6.6.Methods inherited from class org.web3d.vrml.scripting.ecmascript.x3d.X3DExecutionContext
get, getChangedData, has, locateFunction, put, registerFunction, setErrorReporterMethods inherited from class org.web3d.vrml.scripting.ecmascript.builtin.AbstractScriptableObject
delete, delete, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, hasInstance, put, setParentScope, setPrototype, setReadOnly
-
Constructor Details
-
Scene
Default version of the constructor for when someone is creating a new instance of the Scene object.- Parameters:
space- The space to source information for this scenerm- A route manager for users creating/removing routesfsm- our FrameStateManagerprofile- The profile to use for this scene
-
-
Method Details
-
jsFunction_createNode
Description copied from class:X3DExecutionContextcreateNode() function defined by From table 6.6.- Overrides:
jsFunction_createNodein classX3DExecutionContext- Parameters:
name-- Returns:
-
jsFunction_getNamedNode
Description copied from class:X3DExecutionContextgetNamedNode() function defined by From table 6.6.- Overrides:
jsFunction_getNamedNodein classX3DExecutionContext- Parameters:
name-- Returns:
-
jsFunction_updateNamedNode
Description copied from class:X3DExecutionContextupdateNamedNode() function defined by From table 6.6.- Overrides:
jsFunction_updateNamedNodein classX3DExecutionContext- Parameters:
name-node-
-
jsFunction_removeNamedNode
Description copied from class:X3DExecutionContextremoveNamedNode() function defined by From table 6.6.- Overrides:
jsFunction_removeNamedNodein classX3DExecutionContext- Parameters:
name-
-
jsFunction_getImportedNode
Description copied from class:X3DExecutionContextgetImportedNode() function defined by From table 7.8.- Overrides:
jsFunction_getImportedNodein classX3DExecutionContext- Parameters:
defName-asName-- Returns:
-
jsFunction_updateImportedNode
Description copied from class:X3DExecutionContextupdateImportedNode() function defined by From table 7.8.- Overrides:
jsFunction_updateImportedNodein classX3DExecutionContext- Parameters:
defName-asName-
-
jsFunction_removeImportedNode
Description copied from class:X3DExecutionContextgetImportedNode() function defined by From table 7.8.- Overrides:
jsFunction_removeImportedNodein classX3DExecutionContext- Parameters:
name-
-
jsFunction_addRoute
public Route jsFunction_addRoute(org.mozilla.javascript.Scriptable fn, String fromField, org.mozilla.javascript.Scriptable tn, String toField) Description copied from class:X3DExecutionContextaddRoute() function defined by From table 6.6.- Overrides:
jsFunction_addRoutein classX3DExecutionContext- Parameters:
fn-fromField-tn-toField-- Returns:
-
jsFunction_deleteRoute
public void jsFunction_deleteRoute(org.mozilla.javascript.Scriptable route) Description copied from class:X3DExecutionContextdeleteRoute() function defined by From table 6.6- Overrides:
jsFunction_deleteRoutein classX3DExecutionContext- Parameters:
route-
-
jsFunction_createProto
Description copied from class:X3DExecutionContextcreateProto() function defined by From table 6.6.- Overrides:
jsFunction_createProtoin classX3DExecutionContext- Parameters:
name-- Returns:
-
jsFunction_setMetaData
-
jsFunction_getMetaData
-
jsFunction_getExportedNode
-
jsFunction_updateExportedNode
-
jsFunction_removeExportedNode
-