Class SAIIndexedFaceSet
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.geometry3d.SAIIndexedFaceSet
- All Implemented Interfaces:
IndexedFaceSet
,X3DComposedGeometryNode
,X3DGeometryNode
,X3DNode
A concrete implementation of the IndexedFaceSet 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
ConstructorsConstructorDescriptionSAIIndexedFaceSet
(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.void
getColorIndex
(int[] val) Return the colorIndex value in the argument int[]boolean
Return the colorPerVertex boolean value.boolean
Return the convex boolean value.getCoord()
Return the coord X3DNode value.void
getCoordIndex
(int[] val) Return the coordIndex value in the argument int[]float
Return the creaseAngle float value.Return the fogCoord X3DNode value.Return the normal X3DNode value.void
getNormalIndex
(int[] val) Return the normalIndex value in the argument int[]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 colorIndex field.int
Return the number of MFInt32 items in the coordIndex field.int
Return the number of MFInt32 items in the normalIndex field.int
Return the number of MFInt32 items in the texCoordIndex field.boolean
getSolid()
Return the solid boolean value.Return the texCoord X3DNode value.void
getTexCoordIndex
(int[] val) Return the texCoordIndex value in the argument int[]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
setColorIndex
(int[] val) Set the colorIndex field.void
setColorPerVertex
(boolean val) Set the colorPerVertex field.void
setConvex
(boolean val) Set the convex field.void
Set the coord field.void
setCoord
(X3DProtoInstance val) Set the coord field.void
setCoordIndex
(int[] val) Set the coordIndex field.void
setCreaseAngle
(float val) Set the creaseAngle field.void
setFogCoord
(X3DNode val) Set the fogCoord field.void
setNormal
(X3DNormalNode val) Set the normal field.void
Set the normal field.void
setNormalIndex
(int[] val) Set the normalIndex 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.void
setTexCoordIndex
(int[] val) Set the texCoordIndex 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
-
SAIIndexedFaceSet
public SAIIndexedFaceSet(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf
-
-
-
Method Details
-
getNumColorIndex
public int getNumColorIndex()Return the number of MFInt32 items in the colorIndex field.- Specified by:
getNumColorIndex
in interfaceIndexedFaceSet
- Returns:
- the number of MFInt32 items in the colorIndex field.
-
getColorIndex
public void getColorIndex(int[] val) Return the colorIndex value in the argument int[]- Specified by:
getColorIndex
in interfaceIndexedFaceSet
- Parameters:
val
- The int[] to initialize.
-
setColorIndex
public void setColorIndex(int[] val) Set the colorIndex field.- Specified by:
setColorIndex
in interfaceIndexedFaceSet
- Parameters:
val
- The int[] to set.
-
getNumCoordIndex
public int getNumCoordIndex()Return the number of MFInt32 items in the coordIndex field.- Specified by:
getNumCoordIndex
in interfaceIndexedFaceSet
- Returns:
- the number of MFInt32 items in the coordIndex field.
-
getCoordIndex
public void getCoordIndex(int[] val) Return the coordIndex value in the argument int[]- Specified by:
getCoordIndex
in interfaceIndexedFaceSet
- Parameters:
val
- The int[] to initialize.
-
setCoordIndex
public void setCoordIndex(int[] val) Set the coordIndex field.- Specified by:
setCoordIndex
in interfaceIndexedFaceSet
- Parameters:
val
- The int[] to set.
-
getNumTexCoordIndex
public int getNumTexCoordIndex()Return the number of MFInt32 items in the texCoordIndex field.- Specified by:
getNumTexCoordIndex
in interfaceIndexedFaceSet
- Returns:
- the number of MFInt32 items in the texCoordIndex field.
-
getTexCoordIndex
public void getTexCoordIndex(int[] val) Return the texCoordIndex value in the argument int[]- Specified by:
getTexCoordIndex
in interfaceIndexedFaceSet
- Parameters:
val
- The int[] to initialize.
-
setTexCoordIndex
public void setTexCoordIndex(int[] val) Set the texCoordIndex field.- Specified by:
setTexCoordIndex
in interfaceIndexedFaceSet
- Parameters:
val
- The int[] to set.
-
getNumNormalIndex
public int getNumNormalIndex()Return the number of MFInt32 items in the normalIndex field.- Specified by:
getNumNormalIndex
in interfaceIndexedFaceSet
- Returns:
- the number of MFInt32 items in the normalIndex field.
-
getNormalIndex
public void getNormalIndex(int[] val) Return the normalIndex value in the argument int[]- Specified by:
getNormalIndex
in interfaceIndexedFaceSet
- Parameters:
val
- The int[] to initialize.
-
setNormalIndex
public void setNormalIndex(int[] val) Set the normalIndex field.- Specified by:
setNormalIndex
in interfaceIndexedFaceSet
- Parameters:
val
- The int[] to set.
-
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.
-
getCreaseAngle
public float getCreaseAngle()Return the creaseAngle float value.- Specified by:
getCreaseAngle
in interfaceIndexedFaceSet
- Returns:
- The creaseAngle float value.
-
setCreaseAngle
public void setCreaseAngle(float val) Set the creaseAngle field.- Specified by:
setCreaseAngle
in interfaceIndexedFaceSet
- Parameters:
val
- The float to set.
-
getConvex
public boolean getConvex()Return the convex boolean value.- Specified by:
getConvex
in interfaceIndexedFaceSet
- Returns:
- The convex boolean value.
-
setConvex
public void setConvex(boolean val) Set the convex field.- Specified by:
setConvex
in interfaceIndexedFaceSet
- Parameters:
val
- The boolean to set.
-