Class SAITriangleSet2D
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.geometry2d.SAITriangleSet2D
- All Implemented Interfaces:
TriangleSet2D
,X3DGeometryNode
,X3DNode
A concrete implementation of the TriangleSet2D node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAITriangleSet2D
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionint
Return the number of MFVec2f items in the vertices field.boolean
getSolid()
Return the solid boolean value.void
getVertices
(float[] val) Return the vertices value in the argument float[]void
setSolid
(boolean val) Set the solid field.void
setVertices
(float[] val) Set the vertices field.Methods inherited from class org.web3d.vrml.scripting.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAITriangleSet2D
public SAITriangleSet2D(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
fieldFactory
-queue
-
-
-
Method Details
-
getSolid
public boolean getSolid()Return the solid boolean value.- Specified by:
getSolid
in interfaceTriangleSet2D
- Returns:
- The solid boolean value.
-
setSolid
public void setSolid(boolean val) Set the solid field.- Specified by:
setSolid
in interfaceTriangleSet2D
- Parameters:
val
- The boolean to set.
-
getNumVertices
public int getNumVertices()Return the number of MFVec2f items in the vertices field.- Specified by:
getNumVertices
in interfaceTriangleSet2D
- Returns:
- the number of MFVec2f items in the vertices field.
-
getVertices
public void getVertices(float[] val) Return the vertices value in the argument float[]- Specified by:
getVertices
in interfaceTriangleSet2D
- Parameters:
val
- The float[] to initialize.
-
setVertices
public void setVertices(float[] val) Set the vertices field.- Specified by:
setVertices
in interfaceTriangleSet2D
- Parameters:
val
- The float[] to set.
-