Class SAIIndexedTriangleSet
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.rendering.SAIIndexedTriangleSet
- All Implemented Interfaces:
IndexedTriangleSet
,X3DComposedGeometryNode
,X3DGeometryNode
,X3DNode
A concrete implementation of the IndexedTriangleSet node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Field Summary
Fields inherited from class org.web3d.vrml.scripting.sai.BaseNode
accessPermitted, fieldQueue, fieldRefMap, realNode
-
Constructor Summary
ConstructorsConstructorDescriptionSAIIndexedTriangleSet
(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
Return the attrib value in the argument X3DNode[]boolean
getCcw()
Return the ccw boolean value.getColor()
Return the color X3DNode value.boolean
Return the colorPerVertex boolean value.getCoord()
Return the coord X3DNode value.Return the fogCoord X3DNode value.void
getIndex
(int[] val) Return the index value in the argument int[]Return the normal X3DNode value.boolean
Return the normalPerVertex boolean value.int
Return the number of MFNode items in the attrib field.int
Return the number of MFInt32 items in the index field.boolean
getSolid()
Return the solid boolean value.Return the texCoord X3DNode value.void
Set the attrib field.void
setCcw
(boolean val) Set the ccw field.void
setColor
(X3DColorNode val) Set the color field.void
setColor
(X3DProtoInstance val) Set the color field.void
setColorPerVertex
(boolean val) Set the colorPerVertex field.void
Set the coord field.void
setCoord
(X3DProtoInstance val) Set the coord field.void
setFogCoord
(X3DNode val) Set the fogCoord field.void
setIndex
(int[] val) Set the index field.void
setNormal
(X3DNormalNode val) Set the normal field.void
Set the normal field.void
setNormalPerVertex
(boolean val) Set the normalPerVertex field.void
setSolid
(boolean val) Set the solid field.void
Set the texCoord field.void
Set the texCoord field.Methods inherited from class org.web3d.vrml.scripting.sai.BaseNode
checkAccess, dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIIndexedTriangleSet
public SAIIndexedTriangleSet(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf
-
-
-
Method Details
-
getNumAttrib
public int getNumAttrib()Return the number of MFNode items in the attrib field.- Specified by:
getNumAttrib
in interfaceX3DComposedGeometryNode
- Returns:
- the number of MFNode items in the attrib field.
-
getAttrib
Return the attrib value in the argument X3DNode[]- Specified by:
getAttrib
in interfaceX3DComposedGeometryNode
- Parameters:
val
- The X3DNode[] to initialize.
-
setAttrib
Set the attrib field.- Specified by:
setAttrib
in interfaceX3DComposedGeometryNode
- Parameters:
val
- The X3DNode[] to set.
-
getFogCoord
Return the fogCoord X3DNode value.- Specified by:
getFogCoord
in interfaceX3DComposedGeometryNode
- Returns:
- The fogCoord X3DNode value.
-
setFogCoord
Set the fogCoord field.- Specified by:
setFogCoord
in interfaceX3DComposedGeometryNode
- Parameters:
val
- The X3DNode to set.
-
getCoord
Return the coord X3DNode value.- Specified by:
getCoord
in interfaceX3DComposedGeometryNode
- Returns:
- The coord X3DNode value.
-
setCoord
Set the coord field.- Specified by:
setCoord
in interfaceX3DComposedGeometryNode
- Parameters:
val
- The X3DCoordinateNode to set.
-
setCoord
Set the coord field.- Specified by:
setCoord
in interfaceX3DComposedGeometryNode
- Parameters:
val
- The X3DProtoInstance to set.
-
getColor
Return the color X3DNode value.- Specified by:
getColor
in interfaceX3DComposedGeometryNode
- Returns:
- The color X3DNode value.
-
setColor
Set the color field.- Specified by:
setColor
in interfaceX3DComposedGeometryNode
- Parameters:
val
- The X3DColorNode to set.
-
setColor
Set the color field.- Specified by:
setColor
in interfaceX3DComposedGeometryNode
- Parameters:
val
- The X3DProtoInstance to set.
-
getNormal
Return the normal X3DNode value.- Specified by:
getNormal
in interfaceX3DComposedGeometryNode
- Returns:
- The normal X3DNode value.
-
setNormal
Set the normal field.- Specified by:
setNormal
in interfaceX3DComposedGeometryNode
- Parameters:
val
- The X3DNormalNode to set.
-
setNormal
Set the normal field.- Specified by:
setNormal
in interfaceX3DComposedGeometryNode
- Parameters:
val
- The X3DProtoInstance to set.
-
getTexCoord
Return the texCoord X3DNode value.- Specified by:
getTexCoord
in interfaceX3DComposedGeometryNode
- Returns:
- The texCoord X3DNode value.
-
setTexCoord
Set the texCoord field.- Specified by:
setTexCoord
in interfaceX3DComposedGeometryNode
- Parameters:
val
- The X3DTextureCoordinateNode to set.
-
setTexCoord
Set the texCoord field.- Specified by:
setTexCoord
in interfaceX3DComposedGeometryNode
- Parameters:
val
- The X3DProtoInstance to set.
-
getSolid
public boolean getSolid()Return the solid boolean value.- Specified by:
getSolid
in interfaceX3DComposedGeometryNode
- Returns:
- The solid boolean value.
-
setSolid
public void setSolid(boolean val) Set the solid field.- Specified by:
setSolid
in interfaceX3DComposedGeometryNode
- Parameters:
val
- The boolean to set.
-
getCcw
public boolean getCcw()Return the ccw boolean value.- Specified by:
getCcw
in interfaceX3DComposedGeometryNode
- Returns:
- The ccw boolean value.
-
setCcw
public void setCcw(boolean val) Set the ccw field.- Specified by:
setCcw
in interfaceX3DComposedGeometryNode
- Parameters:
val
- The boolean to set.
-
getColorPerVertex
public boolean getColorPerVertex()Return the colorPerVertex boolean value.- Specified by:
getColorPerVertex
in interfaceX3DComposedGeometryNode
- Returns:
- The colorPerVertex boolean value.
-
setColorPerVertex
public void setColorPerVertex(boolean val) Set the colorPerVertex field.- Specified by:
setColorPerVertex
in interfaceX3DComposedGeometryNode
- Parameters:
val
- The boolean to set.
-
getNormalPerVertex
public boolean getNormalPerVertex()Return the normalPerVertex boolean value.- Specified by:
getNormalPerVertex
in interfaceX3DComposedGeometryNode
- Returns:
- The normalPerVertex boolean value.
-
setNormalPerVertex
public void setNormalPerVertex(boolean val) Set the normalPerVertex field.- Specified by:
setNormalPerVertex
in interfaceX3DComposedGeometryNode
- Parameters:
val
- The boolean to set.
-
getNumIndex
public int getNumIndex()Return the number of MFInt32 items in the index field.- Specified by:
getNumIndex
in interfaceIndexedTriangleSet
- Returns:
- the number of MFInt32 items in the index field.
-
getIndex
public void getIndex(int[] val) Return the index value in the argument int[]- Specified by:
getIndex
in interfaceIndexedTriangleSet
- Parameters:
val
- The int[] to initialize.
-
setIndex
public void setIndex(int[] val) Set the index field.- Specified by:
setIndex
in interfaceIndexedTriangleSet
- Parameters:
val
- The int[] to set.
-