Class SAITriangleSet2D
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.geometry2d.SAITriangleSet2D
- All Implemented Interfaces:
TriangleSet2D
,X3DGeometryNode
,X3DNode
A concrete implementation of the TriangleSet2D 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
ConstructorsConstructorDescriptionSAITriangleSet2D
(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) 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.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
-
SAITriangleSet2D
public SAITriangleSet2D(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf
-
-
-
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.
-