Class SAIPolyline2D
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.geometry2d.SAIPolyline2D
- All Implemented Interfaces:
Polyline2D,X3DGeometryNode,X3DNode
A concrete implementation of the Polyline2D 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
ConstructorsConstructorDescriptionSAIPolyline2D(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidgetLineSegments(float[] val) Return the lineSegments value in the argument float[]intReturn the number of MFVec2f items in the lineSegments field.voidsetLineSegments(float[] val) Set the lineSegments field.Methods inherited from class org.web3d.vrml.scripting.sai.BaseNode
checkAccess, dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIPolyline2D
public SAIPolyline2D(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
node-refQueue-fac-fal-bnf-
-
-
Method Details
-
getNumLineSegments
public int getNumLineSegments()Return the number of MFVec2f items in the lineSegments field.- Specified by:
getNumLineSegmentsin interfacePolyline2D- Returns:
- the number of MFVec2f items in the lineSegments field.
-
getLineSegments
public void getLineSegments(float[] val) Return the lineSegments value in the argument float[]- Specified by:
getLineSegmentsin interfacePolyline2D- Parameters:
val- The float[] to initialize.
-
setLineSegments
public void setLineSegments(float[] val) Set the lineSegments field.- Specified by:
setLineSegmentsin interfacePolyline2D- Parameters:
val- The float[] to set.
-