Package xj3d.filter.node
Class CommonScene
java.lang.Object
xj3d.filter.node.CommonEncodable
xj3d.filter.node.CommonScene
- All Implemented Interfaces:
Encodable
Wrapper for an X3D Scene.
- Version:
- $Revision: 1.0 $
- Author:
- Rex Melton
-
Field Summary
Fields inherited from class xj3d.filter.node.CommonEncodable
bch, defName, fieldReader, handler, HANDLER_BINARY, HANDLER_NULL, HANDLER_STRING, handlerType, sch, scriptHandler, useName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRootNode
(CommonEncodable node) Add a root node.void
Add a routevoid
clear()
Clear the node fields to their initial valuesvoid
encode()
Push the node contents to the ContentHandlerReturn the root nodes of the Scenevoid
Remove a root node.void
Set the value of the named field.void
Set the value of the named field.Methods inherited from class xj3d.filter.node.CommonEncodable
clone, deepEquals, encodeNode, encodeShallow, getAllFieldNames, getDefName, getFieldType, getNodeFieldNames, getNodeName, getNodeTypes, getParent, getUsedFieldNames, getUseName, getValue, isType, setContentHandler, setDefName, setFieldReader, setParent, setScriptHandler, setUseName, toString
-
Constructor Details
-
CommonScene
public CommonScene()Constructor
-
-
Method Details
-
clear
public void clear()Clear the node fields to their initial values- Specified by:
clear
in interfaceEncodable
- Overrides:
clear
in classCommonEncodable
-
encode
public void encode()Push the node contents to the ContentHandler- Specified by:
encode
in interfaceEncodable
- Overrides:
encode
in classCommonEncodable
-
setValue
-
setValue
Set the value of the named field.- Specified by:
setValue
in interfaceEncodable
- Overrides:
setValue
in classCommonEncodable
- Parameters:
name
- The name of the field to set.value
- The value of the field.len
- The number of values in the array.
-
removeRootNode
Remove a root node.- Parameters:
node
- The root node to remove
-
addRootNode
Add a root node.- Parameters:
node
- The root node to remove
-
getRootNodes
Return the root nodes of the Scene- Returns:
- the root nodes of the Scene
-
addRoute
-