com.supermap.data

Class Point3Ds

  • java.lang.Object
    • com.supermap.data.Point3Ds


  • public class Point3Ds
    extends java.lang.Object
    Point3Ds object.

    A Point3Ds object is a collection of Point3D objects. The Point3Ds class is used to manage all the vertices on a 3D line or a part of a 3D line object. As any line object or any part of a line object has direction, so the Point3Ds object is a collection of ordered Point3D objects.

    • Constructor Summary

      Constructors 
      Constructor and Description
      Point3Ds()
      Constructs a new Point3Ds object.
      Point3Ds(Point3D[] points)
      Creates a new Point3Ds object according to the specified arguments.
      Point3Ds(Point3Ds points)
      Constructs a new object identical to the given Point3Ds object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int add(Point3D point)
      Adds the specified Point2D object to the end of this Point2Ds object.
      int addRange(Point3D[] points)
      Adds the specified multiple Point2D objects to the end of this Point2Ds object.
      void clear()
      Clears all the Point2D objects in this Point2Ds bject.
      Point3Ds clone()
      Returns a copy of the current Point3Ds object.
      int getCount()
      Returns the count of Point2D objects in this Point2Ds object.
      Point3D getItem(int index)
      Returns the Point2D object at the specified index in this Point2Ds object.
      boolean insert(int index, Point3D point)
      Adds the specified Point2D object to the specified index in this Point2Ds object.
      int insertRange(int index, Point3D[] points)
      Adds the specified multiple Point2D object to this Point2Ds object starting from the specified index.
      boolean remove(int index)
      Removes the Point2D object with the specified index from this Point2Ds object.
      int removeRange(int index, int count)
      Removes the specified count of Point2D objects starting from the specified the index.
      void setItem(int index, Point3D point3D)
      Sets the Point2D object at the specified index in this Point2Ds object.
      Point3D[] toArray()
      Converts this Point2Ds object to an array of the Point2D objects.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Point3Ds

        public Point3Ds()
        Constructs a new Point3Ds object.
      • Point3Ds

        public Point3Ds(Point3Ds points)
        Constructs a new object identical to the given Point3Ds object.
        Parameters:
        points - The specified Point23s object.
      • Point3Ds

        public Point3Ds(Point3D[] points)
        Creates a new Point3Ds object according to the specified arguments.
        Parameters:
        points - The specified Point2D array.
    • Method Detail

      • clone

        public Point3Ds clone()
        Returns a copy of the current Point3Ds object.
        Overrides:
        clone in class java.lang.Object
        Returns:
        The new Point3Ds object generated from the clone operation.
      • getCount

        public int getCount()
        Returns the count of Point2D objects in this Point2Ds object.
        Returns:
        the count of Point2D objects in this Point2Ds object.
        Default:
        The default value is 0.
      • getItem

        public Point3D getItem(int index)
        Returns the Point2D object at the specified index in this Point2Ds object.
        Parameters:
        index - The specified index.
        Returns:
        the Point2D object with the specified index from this Point2Ds object.
      • setItem

        public void setItem(int index,
                            Point3D point3D)
        Sets the Point2D object at the specified index in this Point2Ds object.
        Parameters:
        index - The specified index.
        point3D - the Point3D object with the specified index from this Point3Ds object.
      • add

        public int add(Point3D point)
        Adds the specified Point2D object to the end of this Point2Ds object.
        Parameters:
        point - The Point3D object to be added to the Point3Ds object.
        Returns:
        The index of the added Point2D object.
      • addRange

        public int addRange(Point3D[] points)
        Adds the specified multiple Point2D objects to the end of this Point2Ds object.
        Parameters:
        points - The Point2D object to be added to multiple Point2Ds objects.
        Returns:
        The count of added Point2D objects.
      • insert

        public boolean insert(int index,
                              Point3D point)
        Adds the specified Point2D object to the specified index in this Point2Ds object.
        Parameters:
        index - The index to which the JoinItem object will be added.
        point - The point object to be added.
        Returns:
        true if successful; otherwise, false.
      • insertRange

        public int insertRange(int index,
                               Point3D[] points)
        Adds the specified multiple Point2D object to this Point2Ds object starting from the specified index.
        Parameters:
        index - The specified index from which to add the Point2D objects.
        points - The Point2D object array to be added.
        Returns:
        The count of added Point2D object.
      • remove

        public boolean remove(int index)
        Removes the Point2D object with the specified index from this Point2Ds object.
        Parameters:
        index - The index of the Point2D object to be removed.
        Returns:
        returns true if successful; otherwise false.
      • removeRange

        public int removeRange(int index,
                               int count)
        Removes the specified count of Point2D objects starting from the specified the index.
        Parameters:
        index - The specified index from which to delete the Point2D objects.
        count - The count of the Point2D objects to be removed.
        Returns:
        The count of the Point2D objects to be removed.
      • clear

        public void clear()
        Clears all the Point2D objects in this Point2Ds bject.
      • toArray

        public Point3D[] toArray()
        Converts this Point2Ds object to an array of the Point2D objects.
        Returns:
        The array of the Point2D objects.