Class MultiPointImpl
java.lang.Object
com.esri.core.geometry.Geometry
com.esri.core.geometry.MultiVertexGeometry
com.esri.core.geometry.MultiVertexGeometryImpl
com.esri.core.geometry.MultiPointImpl
- All Implemented Interfaces:
Serializable
The MultiPoint is a collection of points.
-
Nested Class Summary
Nested classes/interfaces inherited from class MultiVertexGeometryImpl
MultiVertexGeometryImpl.DirtyFlags, MultiVertexGeometryImpl.GeometryXSimpleNested classes/interfaces inherited from class Geometry
Geometry.GeometryAccelerationDegree, Geometry.GeometryType, Geometry.Type -
Field Summary
Fields inherited from class MultiVertexGeometryImpl
m_accelerators, m_envelope, m_flagsMask, m_pointCount, m_reservedPointCount, m_simpleTolerance, m_vertexAttributesFields inherited from class Geometry
m_description, m_touchFlag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanboolean_buildRasterizedGeometryAccelerator(double toleranceXY, Geometry.GeometryAccelerationDegree accelDegree) (package private) void\internal CHildren implement this method to copy additional information_getImpl()protected voidprotected void\internal Called inside of the VerifyAllStreams to get a child class a chance to do additional verify.voidadd(double x, double y) Adds a Point to this MultiPoint with given x, y coordinates.voidadd(double x, double y, double z) Adds a Point to this MultiPoint with given x, y, z coordinates.voidadd(MultiVertexGeometryImpl src, int beginIndex, int endIndex) Appends points from another MultiVertexGeometryImpl at the end of this one.voidAdds a Point to this MultiPoint.voidvoidvoidapplyTransformation(Transformation2D transform) Applies 2D affine transformation in XY plane.(package private) voidapplyTransformation(Transformation3D transform) Applies 3D affine transformation.doubleCalculates the area of the geometry.doubleCalculates the length of the geometry.Creates an instance of an empty geometry of the same type.booleanlongReturns an estimate of this object size in bytes.Returns boundary of this geometry.intReturns the topological dimension of the geometry object based on the geometry's type.getType()Returns the geometry type.voidinsertPoint(int beforePointIndex, Point pt) intqueryCoordinates(Point2D[] dst, int dstSize, int beginIndex, int endIndex) (package private) voidremovePoint(int pointIndex) voidresize(int pointCount) Resizes the MultiPoint to have the given size.voidsetEmpty()Returns the geometry to its original initialization state by releasing all data referenced by the geometry.Methods inherited from class MultiVertexGeometryImpl
_assignVertexDescriptionImpl, _attributeStreamIsAllocated, _clearAccelerators, _copyToUnsafe, _getAccelerators, _getShortestDistance, _getSimpleTolerance, _hasDirtyFlag, _interpolateTwoVertices, _resizeImpl, _setDirtyFlag, _setEmptyImpl, _updateAllDirtyIntervals, _updateEnvelope, _updateEnvelope, _updateLooseEnvelope, _updateLooseEnvelope, _updateXYImpl, _verifyAllStreams, _verifyAllStreamsImpl, calculateEnvelope2D, copyTo, getAttributeAsDbl, getAttributeAsInt, getAttributeStreamRef, getDescriptionImpl, getIsSimple, getPoint, getPointByVal, getPointCount, getXY, getXY, getXYZ, hashCode, isEmpty, isEmptyImpl, notifyModified, queryCoordinates, queryCoordinates, queryCoordinates, QueryCoordinates, queryEnvelope, queryEnvelope2D, queryEnvelope3D, queryInterval, queryLooseEnvelope2D, queryLooseEnvelope3D, replaceNaNs, setAttribute, setAttribute, setAttributeStreamRef, setEnvelope, setIsSimple, setPoint, setPointByVal, setXY, setXY, setXYZ, throwIfEmpty, toStringMethods inherited from class MultiVertexGeometry
getCoordinates2D, getCoordinates3D, getPointMethods inherited from class Geometry
_clone, _touch, addAttribute, addID, addM, addZ, assignVertexDescription, copy, dropAllAttributes, dropAttribute, estimateMemorySize, getDescription, getDimensionFromType, getStateFlag, hasAttribute, hasID, hasM, hasZ, isArea, isLinear, isMultiPath, isMultiVertex, isPoint, isSegment, mergeVertexDescription, vertex_count, writeReplace
-
Constructor Details
-
MultiPointImpl
public MultiPointImpl() -
MultiPointImpl
-
-
Method Details
-
createInstance
Description copied from class:GeometryCreates an instance of an empty geometry of the same type.- Specified by:
createInstancein classGeometry- Returns:
- The new instance.
-
add
Adds a Point to this MultiPoint. -
add
public void add(double x, double y) Adds a Point to this MultiPoint with given x, y coordinates. -
add
public void add(double x, double y, double z) Adds a Point to this MultiPoint with given x, y, z coordinates. -
add
Appends points from another MultiVertexGeometryImpl at the end of this one.- Parameters:
src- The source MultiVertexGeometryImpl
-
addPoints
-
insertPoint
-
removePoint
void removePoint(int pointIndex) -
resize
public void resize(int pointCount) Resizes the MultiPoint to have the given size. -
_copyToImpl
Description copied from class:MultiVertexGeometryImpl\internal CHildren implement this method to copy additional information- Specified by:
_copyToImplin classMultiVertexGeometryImpl
-
setEmpty
-
applyTransformation
Description copied from class:GeometryApplies 2D affine transformation in XY plane.- Specified by:
applyTransformationin classGeometry- Parameters:
transform- The affine transformation to be applied to this geometry.
-
applyTransformation
Description copied from class:GeometryApplies 3D affine transformation. Adds Z attribute if it is missing.- Specified by:
applyTransformationin classGeometry- Parameters:
transform- The affine transformation to be applied to this geometry.
-
getDimension
public int getDimension()Description copied from class:GeometryReturns the topological dimension of the geometry object based on the geometry's type.Returns 0 for point and multipoint.
Returns 1 for lines and polylines.
Returns 2 for polygons and envelopes
Returns 3 for objects with volume
- Specified by:
getDimensionin classGeometry- Returns:
- Returns the integer value of the dimension of geometry.
-
estimateMemorySize
public long estimateMemorySize()Description copied from class:GeometryReturns an estimate of this object size in bytes.This estimate doesn't include the size of the
VertexDescriptionobject because instances ofVertexDescriptionare shared among geometry objects.- Specified by:
estimateMemorySizein classGeometry- Returns:
- Returns an estimate of this object size in bytes.
-
getType
Description copied from class:GeometryReturns the geometry type. -
calculateArea2D
public double calculateArea2D()Description copied from class:GeometryCalculates the area of the geometry. If the spatial reference is a Geographic Coordinate System (WGS84) then the 2D area calculation is defined in angular units.- Overrides:
calculateArea2Din classGeometry- Returns:
- A double value representing the 2D area of the geometry.
-
calculateLength2D
public double calculateLength2D()Description copied from class:GeometryCalculates the length of the geometry. If the spatial reference is a Geographic Coordinate System (a system where coordinates are defined using angular units such as longitude and latitude) then the 2D distance calculation is returned in angular units. In cases where length must be calculated on a Geographic Coordinate System consider the using the geodeticLength method on theGeometryEngine- Overrides:
calculateLength2Din classGeometry- Returns:
- A double value representing the 2D length of the geometry.
-
_getImpl
-
equals
- Overrides:
equalsin classMultiVertexGeometryImpl
-
addPoints
-
queryCoordinates
- Overrides:
queryCoordinatesin classMultiVertexGeometryImpl
-
_notifyModifiedAllImpl
protected void _notifyModifiedAllImpl()- Specified by:
_notifyModifiedAllImplin classMultiVertexGeometryImpl
-
_verifyStreamsImpl
protected void _verifyStreamsImpl()Description copied from class:MultiVertexGeometryImpl\internal Called inside of the VerifyAllStreams to get a child class a chance to do additional verify.- Specified by:
_verifyStreamsImplin classMultiVertexGeometryImpl
-
_buildRasterizedGeometryAccelerator
public boolean _buildRasterizedGeometryAccelerator(double toleranceXY, Geometry.GeometryAccelerationDegree accelDegree) - Specified by:
_buildRasterizedGeometryAcceleratorin classMultiVertexGeometryImpl
-
_buildQuadTreeAccelerator
- Specified by:
_buildQuadTreeAcceleratorin classMultiVertexGeometryImpl
-
getBoundary
Description copied from class:GeometryReturns boundary of this geometry. Polygon and Envelope boundary is a Polyline. For Polyline and Line, the boundary is a Multi_point consisting of path end points. For Multi_point and Point null is returned.- Specified by:
getBoundaryin classGeometry- Returns:
- The boundary geometry.
-