Package xj3d.filter.node
Class Scene
java.lang.Object
xj3d.filter.node.BaseEncodable
xj3d.filter.node.Scene
- All Implemented Interfaces:
Encodable
Wrapper for an X3D Scene.
- Version:
- $Revision: 1.2 $
- Author:
- Rex Melton
-
Field Summary
FieldsFields inherited from class xj3d.filter.node.BaseEncodable
bch, defName, fieldReader, handler, HANDLER_BINARY, HANDLER_NULL, HANDLER_STRING, handlerType, nodeName, sch, useName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRootNode(Encodable 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 ScenevoidremoveRootNode(Encodable node) Remove a root node.voidSet the value of the named field.voidSet the value of the named field.Methods inherited from class xj3d.filter.node.BaseEncodable
clone, copy, deepEquals, getDefName, getMetadata, getNodeName, getUseName, setContentHandler, setDefName, setFieldReader, setMetadata, setUseName
-
Field Details
-
nodeList
-
-
Constructor Details
-
Scene
-
-
Method Details
-
clear
public void clear()Clear the node fields to their initial values- Specified by:
clearin interfaceEncodable- Overrides:
clearin classBaseEncodable
-
encode
public void encode()Push the node contents to the ContentHandler- Specified by:
encodein interfaceEncodable- Overrides:
encodein classBaseEncodable
-
setValue
-
setValue
Set the value of the named field.- Specified by:
setValuein interfaceEncodable- Overrides:
setValuein classBaseEncodable- Parameters:
name- The name of the field to set.value- The value of the field.len- The number of values in the array.
-
getRootNodes
Return the root nodes of the Scene- Returns:
- the root nodes of the Scene
-
removeRootNode
Remove a root node.- Parameters:
node- The root node to remove
-
addRootNode
-
addRoute
-