Class MultiVertexGeometry

java.lang.Object
com.esri.core.geometry.Geometry
com.esri.core.geometry.MultiVertexGeometry
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MultiPath, MultiPoint

public abstract class MultiVertexGeometry extends Geometry implements Serializable
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:
  • Constructor Details

    • MultiVertexGeometry

      public MultiVertexGeometry()
  • Method Details

    • _assignVertexDescriptionImpl

      protected void _assignVertexDescriptionImpl(VertexDescription newDescription)
      Specified by:
      _assignVertexDescriptionImpl in class Geometry
    • getPointCount

      public abstract int getPointCount()
      Returns the total vertex count in this Geometry.
    • getPoint

      public abstract Point getPoint(int index)
      Returns given vertex of the Geometry.
    • getPoint

      public void getPoint(int index, Point ptOut)
      Returns given vertex of the Geometry by value.
    • setPoint

      public abstract void setPoint(int index, Point pointSrc)
      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

      public abstract Point2D getXY(int index)
      Returns XY coordinates of the given vertex of the Geometry.
    • getXY

      public abstract void getXY(int index, Point2D pt)
    • setXY

      public abstract void setXY(int index, Point2D pt)
      Sets XY coordinates of the given vertex of the Geometry. All other attributes are unchanged.
    • getCoordinates2D

      public Point2D[] getCoordinates2D()
      Returns XY coordinates as an array.
    • queryCoordinates

      public abstract void queryCoordinates(Point[] dst)
    • queryCoordinates

      public abstract void queryCoordinates(Point2D[] dst)
      Queries XY coordinates as an array. The array must be larg enough (See GetPointCount()).
    • getPointByVal

      public abstract void getPointByVal(int index, Point outPoint)
      Returns given vertex of the Geometry. The outPoint will have same VertexDescription as this Geometry.
    • setPointByVal

      public abstract void setPointByVal(int index, Point pointSrc)
      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).