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 TypeMethodDescriptionvoidaddRootNode(CommonEncodable node) Add a root node.voidAdd a routevoidclear()Clear the node fields to their initial valuesvoidencode()Push the node contents to the ContentHandlerReturn the root nodes of the ScenevoidRemove a root node.voidSet the value of the named field.voidSet 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:
clearin interfaceEncodable- Overrides:
clearin classCommonEncodable
-
encode
public void encode()Push the node contents to the ContentHandler- Specified by:
encodein interfaceEncodable- Overrides:
encodein classCommonEncodable
-
setValue
-
setValue
Set the value of the named field.- Specified by:
setValuein interfaceEncodable- Overrides:
setValuein 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
-