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 TypeMethodDescriptionvoid
addRootNode
(Encodable 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
removeRootNode
(Encodable node) 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.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:
clear
in interfaceEncodable
- Overrides:
clear
in classBaseEncodable
-
encode
public void encode()Push the node contents to the ContentHandler- Specified by:
encode
in interfaceEncodable
- Overrides:
encode
in classBaseEncodable
-
setValue
-
setValue
Set the value of the named field.- Specified by:
setValue
in interfaceEncodable
- Overrides:
setValue
in 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
-