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 TypeMethodDescriptionintReturn the number of MFVec2f items in the vertices field.booleangetSolid()Return the solid boolean value.voidgetVertices(float[] val) Return the vertices value in the argument float[]voidsetSolid(boolean val) Set the solid field.voidsetVertices(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, setMetadataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
getSolidin interfaceTriangleSet2D- Returns:
- The solid boolean value.
-
setSolid
public void setSolid(boolean val) Set the solid field.- Specified by:
setSolidin interfaceTriangleSet2D- Parameters:
val- The boolean to set.
-
getNumVertices
public int getNumVertices()Return the number of MFVec2f items in the vertices field.- Specified by:
getNumVerticesin 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:
getVerticesin interfaceTriangleSet2D- Parameters:
val- The float[] to initialize.
-
setVertices
public void setVertices(float[] val) Set the vertices field.- Specified by:
setVerticesin interfaceTriangleSet2D- Parameters:
val- The float[] to set.
-