Package xj3d.filter.node
Class IndexedLineSet
java.lang.Object
xj3d.filter.node.BaseEncodable
xj3d.filter.node.BaseGeometry
xj3d.filter.node.IndexedLineSet
Wrapper for an X3D IndexedLineSet node.
- Version:
- $Revision: 1.2 $
- Author:
- Rex Melton
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]
Field valueboolean
Field valueint[]
Field valueint
Number of indices in the colorIndex arrayint
Number of indices in the coordIndex arrayFields 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
Methods inherited from class xj3d.filter.node.BaseGeometry
copy, getColor, getCoordinate, setColor, setCoordinate
Methods inherited from class xj3d.filter.node.BaseEncodable
deepEquals, getDefName, getMetadata, getNodeName, getUseName, setContentHandler, setDefName, setFieldReader, setMetadata, setUseName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface xj3d.filter.node.Encodable
deepEquals, getDefName, getNodeName, getUseName, setContentHandler, setDefName, setFieldReader, setUseName
-
Field Details
-
colorPerVertex
public boolean colorPerVertexField value -
coordIndex
public int[] coordIndexField value -
num_coordIndex
public int num_coordIndexNumber of indices in the coordIndex array -
colorIndex
public int[] colorIndexField value -
num_colorIndex
public int num_colorIndexNumber of indices in the colorIndex array
-
-
Constructor Details
-
IndexedLineSet
public IndexedLineSet()Constructor -
IndexedLineSet
-
-
Method Details
-
clear
public void clear()Clear the node fields to their initial values- Specified by:
clear
in interfaceEncodable
- Overrides:
clear
in classBaseGeometry
-
encode
public void encode()Push the node contents to the ContentHandler.- Specified by:
encode
in interfaceEncodable
- Overrides:
encode
in classBaseGeometry
-
setValue
-
setValue
Set the value of the named field.- Specified by:
setValue
in interfaceEncodable
- Overrides:
setValue
in classBaseGeometry
- Parameters:
name
- The name of the field to set.value
- The value of the field.len
- The number of values in the array.
-
clone
Create and return a copy of this object.- Specified by:
clone
in interfaceEncodable
- Overrides:
clone
in classBaseEncodable
- Parameters:
full
- true if the clone should contain a copy of the complete contents of this node and it's children, false returns a new instance of this node type.- Returns:
- a copy of this.
-