Object
|
_getImpl()
Returns implementation class of the geometry.
|
void
|
add(MultiPath src, boolean bReversePaths)
Appends all paths from another multipath.
|
void
|
addEnvelope(Envelope envSrc, boolean bReverse)
Adds a rectangular closed path to this multipath.
|
void
|
addPath(MultiPath src, int srcPathIndex, boolean bForward)
Copies a path from another multipath.
|
void
|
addSegment(Segment segment, boolean bStartNewPath)
Adds a new segment to this multipath.
|
void
|
applyTransformation(Transformation2D transform)
Applies 2D affine transformation in XY plane.
|
double
|
calculateArea2D()
Calculates the area of the geometry.
|
double
|
calculateLength2D()
Calculates the length of the geometry.
|
void
|
closeAllPaths()
Closes all open paths by adding an implicit line segment from the end point to the start point.
|
void
|
closePathWithLine()
Closes the last path of this multipath with a line segment.
|
void
|
copyTo(Geometry dst)
Copies this geometry to another geometry of the same type.
|
int
|
getPathCount()
Returns the number of paths in this multipath.
|
int
|
getPathEnd(int pathIndex)
Returns the index immediately following the last index of the path.
|
int
|
getPathIndexFromPointIndex(int pointIndex)
Returns the path index from the point index.
|
int
|
getPathSize(int pathIndex)
Returns the number of vertices in a path.
|
int
|
getPathStart(int pathIndex)
Returns the start index of the path.
|
void
|
getPoint(int index, Point ptOut)
Returns given vertex of the Geometry by value.
|
Point
|
getPoint(int index)
Returns given vertex of the Geometry.
|
int
|
getPointCount()
Returns the total vertex count in this Geometry.
|
int
|
getSegmentCount(int pathIndex)
Returns the segment count in the given multipath path.
|
int
|
getSegmentCount()
Returns total segment count in the MultiPath.
|
int
|
getStateFlag()
Returns the state of the geometry.
|
int
|
hashCode()
Returns the hash code for the multipath.
|
void
|
insertPath(int pathIndex, MultiPath src, int srcPathIndex, boolean bForward)
Inserts a path from another multipath.
|
void
|
insertPoint(int pathIndex, int beforePointIndex, Point pt)
Inserts a point.
|
void
|
insertPoints(int pathIndex, int beforePointIndex, MultiPath src, int srcPathIndex, int srcPointIndexFrom, int srcPointCount, boolean bForward)
Inserts vertices from the given multipath into this multipath.
|
boolean
|
isClosedPath(int pathIndex)
Indicates if the given path is closed (represents a ring).
|
boolean
|
isEmpty()
Indicates if the geometry object contains geometric information.
|
void
|
lineTo(Point endPoint)
Adds a Line Segment to the given end point.
|
void
|
lineTo(double x, double y)
Adds a line segment from the last point to the given end coordinates.
|
void
|
queryEnvelope(Envelope env)
Gets the axis aligned bounding box of the geometry.
|
SegmentIterator
|
querySegmentIterator()
Returns a SegmentIterator that is set right before the beginning of the multipath.
|
SegmentIterator
|
querySegmentIteratorAtVertex(int startVertexIndex)
Returns a SegmentIterator that is set to a specific vertex of the MultiPath.
|
void
|
removePath(int pathIndex)
Removes the path at the given index.
|
void
|
removePoint(int pathIndex, int pointIndex)
Removes a point at a given index.
|
void
|
reverseAllPaths()
Reverses the order of the vertices in each path.
|
void
|
reversePath(int pathIndex)
Reverses the order of vertices in the path.
|
void
|
setEmpty()
Sets the geometry to its original initialization state by releasing all data referenced by the geometry.
|
void
|
setPoint(int index, Point point)
Sets the vertex at given index of the Geometry.
|
void
|
startPath(Point point)
Starts a new path at a point.
|
void
|
startPath(double x, double y)
Starts a new path at given coordinates.
|