Package xj3d.filter.node
Class BaseComposedGeometry
java.lang.Object
xj3d.filter.node.BaseEncodable
xj3d.filter.node.BaseGeometry
xj3d.filter.node.BaseComposedGeometry
- All Implemented Interfaces:
Encodable
,IComposedGeometry
,IGeometry
- Direct Known Subclasses:
IndexedFaceSet
,IndexedTriangleFanSet
,IndexedTriangleSet
,IndexedTriangleStripSet
,TriangleFanSet
,TriangleSet
,TriangleStripSet
Base abstract impl wrapper for X3DComposedGeometry nodes.
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
Field valueboolean
Field valueboolean
Field valueboolean
Field valueFields inherited from class xj3d.filter.node.BaseEncodable
bch, defName, fieldReader, handler, HANDLER_BINARY, HANDLER_NULL, HANDLER_STRING, handlerType, nodeName, sch, useName
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BaseComposedGeometry
(String name, String defName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear the node fields to their initial valuesprotected void
copy
(BaseEncodable enc, boolean deep) Copy the working objects of this into the argument.void
encode()
Push the node contents to the ContentHandler.Get the Normal node wrapperGet the TextureCoordinate node wrappervoid
Set the Normal node wrappervoid
setTextureCoordinate
(Encodable texCoord) Set the TextureCoordinate node wrappervoid
Set the value of the named field.void
Set the value of the named field.Methods inherited from class xj3d.filter.node.BaseGeometry
getColor, getCoordinate, setColor, setCoordinate
Methods inherited from class xj3d.filter.node.BaseEncodable
clone, 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
clone, deepEquals, getDefName, getNodeName, getUseName, setContentHandler, setDefName, setFieldReader, setUseName
Methods inherited from interface xj3d.filter.node.IComposedGeometry
getColor, getCoordinate, setColor, setCoordinate
-
Field Details
-
ccw
public boolean ccwField value -
colorPerVertex
public boolean colorPerVertexField value -
normalPerVertex
public boolean normalPerVertexField value -
solid
public boolean solidField value
-
-
Constructor Details
-
BaseComposedGeometry
-
-
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.
-
copy
Copy the working objects of this into the argument. Used by subclasses to initialize a clone.- Overrides:
copy
in classBaseGeometry
- Parameters:
enc
- The encodable to initialize.deep
- true to initialize this nodes fields, false otherwise.
-
setNormal
Set the Normal node wrapper- Specified by:
setNormal
in interfaceIComposedGeometry
- Parameters:
normal
- The Normal node wrapper
-
getNormal
Get the Normal node wrapper- Specified by:
getNormal
in interfaceIComposedGeometry
- Returns:
- The Normal node wrapper
-
setTextureCoordinate
Set the TextureCoordinate node wrapper- Specified by:
setTextureCoordinate
in interfaceIComposedGeometry
- Parameters:
texCoord
- The TextureCoordinate node wrapper
-
getTextureCoordinate
Get the TextureCoordinate node wrapper- Specified by:
getTextureCoordinate
in interfaceIComposedGeometry
- Returns:
- The TextureCoordinate node wrapper
-