Class MultiVertexGeometry
java.lang.Object
com.esri.core.geometry.Geometry
com.esri.core.geometry.MultiVertexGeometry
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MultiPath, MultiPoint
This class is a base for geometries with many vertices.
The vertex attributes are stored in separate arrays of corresponding type.
There are as many arrays as there are attributes in the vertex.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Geometry
Geometry.GeometryAccelerationDegree, Geometry.GeometryType, Geometry.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_assignVertexDescriptionImpl(VertexDescription newDescription) Point2D[]Returns XY coordinates as an array.abstract PointgetPoint(int index) Returns given vertex of the Geometry.voidReturns given vertex of the Geometry by value.abstract voidgetPointByVal(int index, Point outPoint) Returns given vertex of the Geometry.abstract intReturns the total vertex count in this Geometry.abstract Point2DgetXY(int index) Returns XY coordinates of the given vertex of the Geometry.abstract voidabstract voidqueryCoordinates(Point[] dst) abstract voidqueryCoordinates(Point2D[] dst) Queries XY coordinates as an array.abstract voidSets the vertex at given index of the Geometry.abstract voidsetPointByVal(int index, Point pointSrc) Sets the vertex at given index of the Geometry.abstract voidSets XY coordinates of the given vertex of the Geometry.Methods inherited from class Geometry
_getImpl, addAttribute, addID, addM, applyTransformation, assignVertexDescription, calculateArea2D, calculateLength2D, copy, copyTo, createInstance, dropAllAttributes, dropAttribute, estimateMemorySize, estimateMemorySize, getBoundary, getDescription, getDimension, getDimensionFromType, getStateFlag, getType, hasAttribute, hasID, hasM, hasZ, isArea, isEmpty, isLinear, isMultiPath, isMultiVertex, isPoint, isSegment, mergeVertexDescription, queryEnvelope, queryEnvelope2D, queryInterval, queryLooseEnvelope2D, replaceNaNs, setEmpty, toString, vertex_count
-
Constructor Details
-
MultiVertexGeometry
public MultiVertexGeometry()
-
-
Method Details
-
_assignVertexDescriptionImpl
- Specified by:
_assignVertexDescriptionImplin classGeometry
-
getPointCount
public abstract int getPointCount()Returns the total vertex count in this Geometry. -
getPoint
Returns given vertex of the Geometry. -
getPoint
Returns given vertex of the Geometry by value. -
setPoint
Sets the vertex at given index of the Geometry.- Parameters:
index- The index of the vertex being changed.pointSrc- The Point instance to set given vertex attributes from. The pointSrc can not be empty.
The method throws if the pointSrc is not of the Point type.
The attributes, that are present in the pointSrc and missing in this Geometry, will be added to the Geometry.
The vertex attributes missing in the pointSrc but present in the Geometry will be set to the default values (see VertexDescription::GetDefaultValue).
-
getXY
Returns XY coordinates of the given vertex of the Geometry. -
getXY
-
setXY
Sets XY coordinates of the given vertex of the Geometry. All other attributes are unchanged. -
getCoordinates2D
Returns XY coordinates as an array. -
queryCoordinates
-
queryCoordinates
Queries XY coordinates as an array. The array must be larg enough (See GetPointCount()). -
getPointByVal
Returns given vertex of the Geometry. The outPoint will have same VertexDescription as this Geometry. -
setPointByVal
Sets the vertex at given index of the Geometry.- Parameters:
index- The index of the vertex being changed.pointSrc- The Point instance to set given vertex attributes from. The pointSrc can not be empty.
The method throws if the pointSrc is not of the Point type.
The attributes, that are present in the pointSrc and missing in this Geometry, will be added to the Geometry.
The vertex attributes missing in the pointSrc but present in the Geometry will be set to the default values (see VertexDescription::GetDefaultValue).
-