Package mgui.geometry
Class PointSet2D
java.lang.Object
mgui.geometry.Shape2D
mgui.geometry.PointSet2D
- Direct Known Subclasses:
Graph2D
public class PointSet2D extends Shape2D
Represents a set of 2D points.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PointSet2D()
PointSet2D(float[] nodes)
-
Method Summary
Modifier and Type Method Description void
addNode(org.jogamp.vecmath.Point2f p)
void
finalize()
org.jogamp.vecmath.Point2f
getVertex(int i)
java.util.ArrayList<org.jogamp.vecmath.Point2f>
getVertices()
protected void
resizeArray()
void
setVertices(java.util.ArrayList<org.jogamp.vecmath.Point2f> vertices)
Methods inherited from class mgui.geometry.Shape2D
clone, contains, getBounds, getCenterPt, getCoords, getDTD, getLocalName, getProximity, getProximityPoint, getShortXML, getSize, getVertices, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLElementStart, handleXMLString, setCoords, setVertices, transform, transform, writeXML, writeXML, writeXML
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
n
public int n -
nodes
public float[] nodes
-
-
Constructor Details
-
PointSet2D
public PointSet2D() -
PointSet2D
public PointSet2D(float[] nodes)
-
-
Method Details
-
getVertex
public org.jogamp.vecmath.Point2f getVertex(int i) -
addNode
public void addNode(org.jogamp.vecmath.Point2f p) -
resizeArray
protected void resizeArray() -
finalize
public void finalize()- Overrides:
finalize
in classjava.lang.Object
-
getVertices
public java.util.ArrayList<org.jogamp.vecmath.Point2f> getVertices()- Specified by:
getVertices
in classShape2D
-
setVertices
public void setVertices(java.util.ArrayList<org.jogamp.vecmath.Point2f> vertices)- Specified by:
setVertices
in classShape2D
-