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, url
Fields inherited from class org.web3d.vrml.scripting.ecmascript.builtin.AbstractScriptableObject
BAD_FORMAT_MSG, dataChanged, INVALID_TYPE_MSG, JS_FUNCTION_PREFIX, readOnly, READONLY_MSG
Fields 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.void
jsFunction_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.void
void
getImportedNode() function defined by From table 7.8.void
removeNamedNode() function defined by From table 6.6.void
jsFunction_setMetaData
(String name, String value) void
jsFunction_updateExportedNode
(String name, org.mozilla.javascript.Scriptable n) void
jsFunction_updateImportedNode
(String defName, String asName) updateImportedNode() function defined by From table 7.8.void
jsFunction_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, setErrorReporter
Methods 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:X3DExecutionContext
createNode() function defined by From table 6.6.- Overrides:
jsFunction_createNode
in classX3DExecutionContext
- Parameters:
name
-- Returns:
-
jsFunction_getNamedNode
Description copied from class:X3DExecutionContext
getNamedNode() function defined by From table 6.6.- Overrides:
jsFunction_getNamedNode
in classX3DExecutionContext
- Parameters:
name
-- Returns:
-
jsFunction_updateNamedNode
Description copied from class:X3DExecutionContext
updateNamedNode() function defined by From table 6.6.- Overrides:
jsFunction_updateNamedNode
in classX3DExecutionContext
- Parameters:
name
-node
-
-
jsFunction_removeNamedNode
Description copied from class:X3DExecutionContext
removeNamedNode() function defined by From table 6.6.- Overrides:
jsFunction_removeNamedNode
in classX3DExecutionContext
- Parameters:
name
-
-
jsFunction_getImportedNode
Description copied from class:X3DExecutionContext
getImportedNode() function defined by From table 7.8.- Overrides:
jsFunction_getImportedNode
in classX3DExecutionContext
- Parameters:
defName
-asName
-- Returns:
-
jsFunction_updateImportedNode
Description copied from class:X3DExecutionContext
updateImportedNode() function defined by From table 7.8.- Overrides:
jsFunction_updateImportedNode
in classX3DExecutionContext
- Parameters:
defName
-asName
-
-
jsFunction_removeImportedNode
Description copied from class:X3DExecutionContext
getImportedNode() function defined by From table 7.8.- Overrides:
jsFunction_removeImportedNode
in 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:X3DExecutionContext
addRoute() function defined by From table 6.6.- Overrides:
jsFunction_addRoute
in classX3DExecutionContext
- Parameters:
fn
-fromField
-tn
-toField
-- Returns:
-
jsFunction_deleteRoute
public void jsFunction_deleteRoute(org.mozilla.javascript.Scriptable route) Description copied from class:X3DExecutionContext
deleteRoute() function defined by From table 6.6- Overrides:
jsFunction_deleteRoute
in classX3DExecutionContext
- Parameters:
route
-
-
jsFunction_createProto
Description copied from class:X3DExecutionContext
createProto() function defined by From table 6.6.- Overrides:
jsFunction_createProto
in classX3DExecutionContext
- Parameters:
name
-- Returns:
-
jsFunction_setMetaData
-
jsFunction_getMetaData
-
jsFunction_getExportedNode
-
jsFunction_updateExportedNode
-
jsFunction_removeExportedNode
-