|
||||||||||
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.MultiPoint
public final class MultiPoint
A Multipoint is a collection of points. A multipoint is a one-dimensional geometry object. Multipoints can be used to store a collection of point-based information where the order and individual identity of each point is not an essential characteristic of the point set.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.esri.core.geometry.Geometry |
---|
Geometry.Type |
Field Summary |
---|
Fields inherited from class com.esri.core.geometry.Geometry |
---|
m_description, m_touchFlag |
Constructor Summary | |
---|---|
MultiPoint()
Creates a new empty multipoint. |
Method Summary | |
---|---|
protected Object |
_getImpl()
Returns implementation class of the geometry. |
void |
add(double x,
double y)
Adds a point with the specified X, Y coordinates to this multipoint. |
void |
add(com.esri.core.geometry.MultiVertexGeometry src,
int srcFrom,
int srcTo)
Appends points from another multipoint at the end of this multipoint. |
void |
add(Point point)
Adds a point multipoint. |
void |
addAttribute(int semantics)
Adds a new attribute to the Geometry. |
void |
applyTransformation(Transformation2D transform)
Applies 2D affine transformation in XY plane. |
void |
copyTo(Geometry dst)
Copies this geometry to another geometry of the same type. |
Geometry |
createInstance()
Creates an instance of an empty geometry of the same type. |
void |
dropAllAttributes()
Drops all attributes from the Geometry with exception of POSITON. |
void |
dropAttribute(int semantics)
Drops an attribute from the Geometry. |
boolean |
equals(Object other)
Returns TRUE when this geometry has exactly same type, properties, and coordinates as the other geometry. |
com.esri.core.geometry.VertexDescription |
getDescription()
Returns the VertexDescription of this geomtry. |
int |
getDimension()
Returns the topological dimension of the geometry object based on the geometry's type. |
Point |
getPoint(int index)
Returns given vertex of the Geometry. |
void |
getPoint(int index,
Point ptOut)
Returns given vertex of the Geometry by value. |
int |
getPointCount()
Returns the total vertex count in this Geometry. |
int |
getStateFlag()
Returns the state of the geometry. |
Geometry.Type |
getType()
Returns the geometry type. |
int |
hashCode()
Returns a hash code value for this multipoint. |
void |
insertPoint(int beforePointIndex,
Point pt)
Inserts a point to this multipoint. |
boolean |
isEmpty()
Indicates if the geometry object contains geometric information. |
void |
mergeVertexDescription(com.esri.core.geometry.VertexDescription src)
Merges the new VertexDescription by adding missing attributes from the src. |
void |
queryEnvelope(Envelope env)
Gets the axis aligned bounding box of the geometry. |
void |
queryEnvelope2D(com.esri.core.geometry.Envelope2D env)
Returns tight bbox of the Geometry in X, Y plane. |
void |
removePoint(int pointIndex)
Removes a point from this multipoint. |
void |
resize(int pointCount)
Resizes the multipoint to have the given size. |
void |
setEmpty()
Sets the geometry to its original initialization state by releasing all data referenced by the geometry. |
void |
setPoint(int index,
Point pointSrc)
Sets the vertex at given index of the Geometry. |
Methods inherited from class com.esri.core.geometry.Geometry |
---|
calculateArea2D, calculateLength2D, copy, getDimensionFromType, isArea, isLinear, isMultiPath, isMultiVertex, isPoint, isSegment |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiPoint()
Method Detail |
---|
public Point getPoint(int index)
public int getPointCount()
protected Object _getImpl()
Geometry
_getImpl
in class Geometry
public void add(Point point)
point
- The Point to be added to this multipoint.public void add(double x, double y)
x
- The new Point's X coordinate.y
- The new Point's Y coordinate.public void add(com.esri.core.geometry.MultiVertexGeometry src, int srcFrom, int srcTo)
src
- The mulitpoint to append to this multipoint.srcFrom
- The start index in the source multipoint from which to start appending points.srcTo
- The end index in the source multipoint right after the last point to be appended.
Use -1 to indicate the rest of the source multipoint.public void insertPoint(int beforePointIndex, Point pt)
beforePointIndex
- The index right before the new point to insert.pt
- The point to insert.public void removePoint(int pointIndex)
pointIndex
- The index of the point to be removed.public void resize(int pointCount)
pointCount
- - The number of points in this multipoint.public void setPoint(int index, Point pointSrc)
index
- The index of the vertex being changed.pointSrc
- The Point instance to set given vertex attributes from. The pointSrc can not be empty.
public void applyTransformation(Transformation2D transform)
Geometry
applyTransformation
in class Geometry
transform
- The affine transformation to be applied to this geometry.public void copyTo(Geometry dst)
Geometry
copyTo
in class Geometry
public Geometry createInstance()
Geometry
public int getDimension()
Geometry
Returns 0 for point and multipoint.
Returns 1 for lines and polylines.
Returns 2 for polygons and envelopes
Returns 3 for objects with volume
getDimension
in class Geometry
public Geometry.Type getType()
Geometry
getType
in class Geometry
public com.esri.core.geometry.VertexDescription getDescription()
Geometry
public void addAttribute(int semantics)
Geometry
public void dropAllAttributes()
Geometry
public void dropAttribute(int semantics)
Geometry
public void mergeVertexDescription(com.esri.core.geometry.VertexDescription src)
Geometry
public boolean isEmpty()
Geometry
isEmpty
in class Geometry
public void queryEnvelope(Envelope env)
Geometry
queryEnvelope
in class Geometry
env
- The envelope to return the result in.public void queryEnvelope2D(com.esri.core.geometry.Envelope2D env)
Geometry
public void setEmpty()
Geometry
setEmpty
in class Geometry
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int getStateFlag()
Geometry
getStateFlag
in class Geometry
public void getPoint(int index, Point ptOut)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |