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 voidaddNode(org.jogamp.vecmath.Point2f p)voidfinalize()org.jogamp.vecmath.Point2fgetVertex(int i)java.util.ArrayList<org.jogamp.vecmath.Point2f>getVertices()protected voidresizeArray()voidsetVertices(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, writeXMLMethods 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:
finalizein classjava.lang.Object
-
getVertices
public java.util.ArrayList<org.jogamp.vecmath.Point2f> getVertices()- Specified by:
getVerticesin classShape2D
-
setVertices
public void setVertices(java.util.ArrayList<org.jogamp.vecmath.Point2f> vertices)- Specified by:
setVerticesin classShape2D
-