|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umd.cfar.lamp.viper.geometry.PolyList edu.umd.cfar.lamp.viper.geometry.PolyLine
This class represents a series of line segments.
Field Summary | |
protected BoundingBox |
bbox
A BoundingBox that surrounds the set of lines. |
Fields inherited from class edu.umd.cfar.lamp.viper.geometry.PolyList |
area, CARVE_POLYS, composed, originals, polys |
Constructor Summary | |
PolyLine()
Creates an empty polyline |
|
PolyLine(PolyLine old)
Constructs a PolyLine copy. |
|
PolyLine(java.lang.String S)
Constructs the polyline from the string list of points. |
Method Summary | |
boolean |
addVertex(Pnt v)
Adds the given vertex to the end of the polyline. |
java.lang.Object |
clone()
Constructs a copy of this object. |
boolean |
equals(java.lang.Object o)
Tests to see if the two objects refer to the same set of line segments. |
BoundingBox |
getBoundingBox()
Gets the nearest bounding box that contains the line |
java.util.Iterator |
getPoints()
Gets an iterator through all the points on the edge of the polyline. |
protected void |
initBbox()
Creates a BoundingBox around this, for use by getBoundingBox, etc. |
java.lang.String |
toString()
Gets a list of the points as a String, usually for debugging. |
Methods inherited from class edu.umd.cfar.lamp.viper.geometry.PolyList |
addPoly, area, clearPolyList, contains, getConvexPolygonArray, getFragmentationCount, getIntersection, getOriginals, getPolys, hashCode, intersection, intersects, toStringListOfPoints, union |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected BoundingBox bbox
Constructor Detail |
public PolyLine()
public PolyLine(PolyLine old)
old
- The PolyLine to copy.public PolyLine(java.lang.String S) throws BadDataException
S
- the list of points
BadDataException
- if the string is malformedMethod Detail |
public java.lang.Object clone()
clone
in class PolyList
public java.lang.String toString()
toString
in class PolyList
protected void initBbox()
PolyList
initBbox
in class PolyList
public BoundingBox getBoundingBox()
getBoundingBox
in class PolyList
public java.util.Iterator getPoints()
getPoints
in class PolyList
public boolean equals(java.lang.Object o)
equals
in class PolyList
o
- the set of line segments to compare with
public boolean addVertex(Pnt v)
addVertex
in class PolyList
v
- the new point
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |