|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.geometry.Geometry
com.esri.core.geometry.MultiPath
public abstract class MultiPath
A base class for Polygon and Polyline
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.esri.core.geometry.Geometry |
|---|
Geometry.Type |
| Field Summary | |
|---|---|
protected com.esri.core.geometry.MultiPathImpl |
m_impl
|
| Fields inherited from class com.esri.core.geometry.Geometry |
|---|
m_description |
| Constructor Summary | |
|---|---|
MultiPath()
|
|
| Method Summary | |
|---|---|
protected Object |
_getImpl()
|
void |
add(MultiPath src,
boolean bReversePaths)
Appends all paths from another MultiPath. |
void |
addEnvelope(Envelope envSrc,
boolean bReverse)
Adds a rectangular closed Path to the MultiPathImpl. |
void |
addPath(MultiPath src,
int srcPathIndex,
boolean bForward)
Copies a Path from another MultiPathImpl. |
double |
calculateArea2D()
Calculates area of the Geometry. |
double |
calculateLength2D()
Calculates length of the Geometry. |
void |
closeAllPaths()
Closes all open curves by adding an implicit line segment from the end point to the start point. |
void |
closePathWithArc()
Closes last path of the MultiPathImpl with the Line Segment. |
void |
closePathWithLine()
Closes last path of the MultiPathImpl with the Line Segment. |
void |
copyTo(Geometry dst)
Copies this geometry to another Geometry of the same type. |
int |
getPathCount()
Returns the number of paths in a multipath Geometry. |
int |
getPathEnd(int pathIndex)
Returns the end index of the path (== GetPathSize(pathIndex) + GetPathSize(pathIndex)). |
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. |
Point |
getPoint(int index)
|
int |
getPointCount()
|
int |
getSegmentCount()
Returns total segment count in the MultiPathImpl. |
int |
getSegmentCount(int pathIndex)
Returns the segment count in the given MultiPathImpl path. |
int |
hashCode()
|
boolean |
hasNonLinearSegments()
Returns True if the MultiPath contains non-linear segments. |
boolean |
hasNonLinearSegments(int pathIndex)
Returns True if the given path might have non-linear segments. |
void |
insertPoints(int pathIndex,
int beforePointIndex,
MultiPath src,
int srcPathIndex,
int srcPointIndexFrom,
int srcPointCount,
boolean bForward)
Inserts a part of a path from the given MultiPath. |
boolean |
isClosedPath(int pathIndex)
Returns True if the given path is closed (represents a Ring). |
boolean |
isEmpty()
Returns True if the Geometry is empty. |
void |
lineTo(double x,
double y)
Adds a Line Segment from the last Point to the given endPoint. |
void |
lineTo(Point endPoint)
Adds a Line Segment to the given endPoint. |
SegmentIterator |
querySegmentIterator()
Returns a SegmentIterator that set right before the beginning of the MultiPathImpl such that the call to NextPath will set the iterator to the first path of the MultiPathImpl. |
SegmentIterator |
querySegmentIteratorAtVertex(int startVertexIndex)
Returns a SegmentIterator that set to a specific vertex of the MultiPathImpl. |
void |
setEmpty()
Sets the Geometry as empty. |
void |
setPoint(int index,
Point point)
|
void |
startPath(double x,
double y)
Starts a new Path at the Point. |
void |
startPath(Point point)
|
| Methods inherited from class com.esri.core.geometry.Geometry |
|---|
addID, addM, addZ, createInstance, getDimension, getType, hasID, hasM, hasZ, isSegment, queryEnvelope |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.esri.core.geometry.MultiPathImpl m_impl
| Constructor Detail |
|---|
public MultiPath()
| Method Detail |
|---|
public int getPointCount()
public Point getPoint(int index)
public void setPoint(int index,
Point point)
public boolean isEmpty()
Geometry
isEmpty in class Geometrypublic double calculateArea2D()
Geometry
calculateArea2D in class Geometrypublic double calculateLength2D()
Geometry
calculateLength2D in class Geometrypublic void copyTo(Geometry dst)
Geometry
copyTo in class Geometrypublic boolean hasNonLinearSegments()
public int getSegmentCount()
public int getSegmentCount(int pathIndex)
public void addPath(MultiPath src,
int srcPathIndex,
boolean bForward)
public int getPathCount()
public int getPathSize(int pathIndex)
public int getPathStart(int pathIndex)
public int getPathEnd(int pathIndex)
public int getPathIndexFromPointIndex(int pointIndex)
public void startPath(double x,
double y)
public void startPath(Point point)
public void lineTo(double x,
double y)
public void lineTo(Point endPoint)
endPoint - - the end Point to which the newly added line segment should pointpublic void closePathWithLine()
public void closePathWithArc()
public void closeAllPaths()
public boolean isClosedPath(int pathIndex)
public boolean hasNonLinearSegments(int pathIndex)
public void addEnvelope(Envelope envSrc,
boolean bReverse)
public SegmentIterator querySegmentIterator()
public SegmentIterator querySegmentIteratorAtVertex(int startVertexIndex)
public void setEmpty()
Geometry
setEmpty in class Geometryprotected Object _getImpl()
_getImpl in class Geometrypublic int hashCode()
hashCode in class Object
public void add(MultiPath src,
boolean bReversePaths)
src - The source MultiPath
public void insertPoints(int pathIndex,
int beforePointIndex,
MultiPath src,
int srcPathIndex,
int srcPointIndexFrom,
int srcPointCount,
boolean bForward)
pathIndex - The path index in this class to insert points to. Must correspond to an existing path.beforePointIndex - The point index in the given path of this MultiPath before which the vertices need to be inserted.
This value must be between 0 and GetPathSize(pathIndex), or -1 to insert points at the end of the given path.src - The source MultiPathsrcPathIndex - The source path index to copy points from.srcPointIndexFrom - The start point in the source path to start copying from.srcPointCount - The count of points to add.bForward - When False, the added points will be reverted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||