Class TLcdKML22Coordinates

java.lang.Object
com.luciad.format.kml22.model.geometry.TLcdKML22Coordinates
All Implemented Interfaces:
ILcdPointList, ILcd2DEditablePointList, ILcd3DEditablePointList, Serializable

public class TLcdKML22Coordinates extends Object implements ILcd3DEditablePointList

Represents a list of multidimensional coordinates.

Since:
10.0
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
    Gets the dimension of this coordinates list
    getPoint(int aIndex)
    Returns the ILcdPoint at a given index.
    int
    Returns the number of ILcdPoint objects in the list.
    Gets the value of the coordinates contained in this coordinates list.
    void
    insert2DPoint(int aIndex, double aX, double aY)
    Inserts a point at the given index into this ILcd2DEditablePointList.
    void
    insert3DPoint(int aIndex, double aX, double aY, double aZ)
    Inserts a point at the given index into this ILcd3DEditablePointList.
    void
    move2DPoint(int aIndex, double aX, double aY)
    Moves the specified point of this ILcd2DEditablePointList to the given point in the 2D space.
    void
    move3DPoint(int aIndex, double aX, double aY, double aZ)
    Moves the specified point of this ILcd3DEditablePointList to the given point in the 3D space.
    void
    removePointAt(int aIndex)
    Removes the point at the given index from this ILcd3DEditablePointList.
    void
    setDimension(int aDimension)
    Set the dimension of the coordinates contained in this object.
    void
    setValue(ILcdDoubleList aDoubleList)
    Sets the value of this coordinates list
     
    void
    translate2D(double aDeltaX, double aDeltaY)
    Translates all the points of this ILcd2DEditablePointList from their current positions over the given translation vector in the 2D space.
    void
    translate2DPoint(int aIndex, double aDeltaX, double aDeltaY)
    Translates the specified point of this ILcd2DEditablePointList from its current position over the given translation vector in the 2D space.
    void
    translate3D(double aDeltaX, double aDeltaY, double aDeltaZ)
    Translates all the points of this ILcd3DEditablePointList from their current positions over the given translation vector in the 3D space.
    void
    translate3DPoint(int aIndex, double aDeltaX, double aDeltaY, double aDeltaZ)
    Translates the specified point of this ILcd3DEditablePointList from its current position over the given translation vector in the 3D space.

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditablePointList

    append2DPoint

    Methods inherited from interface com.luciad.shape.ILcdPointList

    getPointSFCT, getX, getY, getZ
  • Constructor Details

    • TLcdKML22Coordinates

      public TLcdKML22Coordinates()
  • Method Details

    • setDimension

      public void setDimension(int aDimension)
      Set the dimension of the coordinates contained in this object.
      Parameters:
      aDimension - the amount of dimensions this coordinates list represents
    • getDimension

      public int getDimension()
      Gets the dimension of this coordinates list
      Returns:
      the dimension of this coordinates list
    • getValue

      public ILcdDoubleList getValue()
      Gets the value of the coordinates contained in this coordinates list.
      Returns:
      an ILcdDoubleList that contains all coordinates in this coordinates list. To obtain the dimension, use getDimension()
      See Also:
    • setValue

      public void setValue(ILcdDoubleList aDoubleList)
      Sets the value of this coordinates list
      Parameters:
      aDoubleList - A list of doubles that represents coordinates in the dimension set by setDimension(int)
      See Also:
    • translate3D

      public void translate3D(double aDeltaX, double aDeltaY, double aDeltaZ)
      Description copied from interface: ILcd3DEditablePointList
      Translates all the points of this ILcd3DEditablePointList from their current positions over the given translation vector in the 3D space.
      Specified by:
      translate3D in interface ILcd3DEditablePointList
      Parameters:
      aDeltaX - the x coordinate of the translation vector.
      aDeltaY - the y coordinate of the translation vector.
      aDeltaZ - the z coordinate of the translation vector.
    • move3DPoint

      public void move3DPoint(int aIndex, double aX, double aY, double aZ)
      Description copied from interface: ILcd3DEditablePointList
      Moves the specified point of this ILcd3DEditablePointList to the given point in the 3D space.
      Specified by:
      move3DPoint in interface ILcd3DEditablePointList
      Parameters:
      aIndex - a valid index in the list of points.
      aX - the x coordinate of the point.
      aY - the y coordinate of the point.
      aZ - the z coordinate of the point.
    • translate3DPoint

      public void translate3DPoint(int aIndex, double aDeltaX, double aDeltaY, double aDeltaZ)
      Description copied from interface: ILcd3DEditablePointList
      Translates the specified point of this ILcd3DEditablePointList from its current position over the given translation vector in the 3D space.
      Specified by:
      translate3DPoint in interface ILcd3DEditablePointList
      Parameters:
      aIndex - a valid new index in the list of points.
      aDeltaX - the x coordinate of the translation vector.
      aDeltaY - the y coordinate of the translation vector.
      aDeltaZ - the z coordinate of the translation vector.
    • insert3DPoint

      public void insert3DPoint(int aIndex, double aX, double aY, double aZ)
      Description copied from interface: ILcd3DEditablePointList
      Inserts a point at the given index into this ILcd3DEditablePointList.
      Specified by:
      insert3DPoint in interface ILcd3DEditablePointList
      Parameters:
      aIndex - a valid new index in the list of points.
      aX - the x coordinate of the new point.
      aY - the y coordinate of the new point.
      aZ - the z coordinate of the new point.
    • removePointAt

      public void removePointAt(int aIndex)
      Description copied from interface: ILcd3DEditablePointList
      Removes the point at the given index from this ILcd3DEditablePointList.
      Specified by:
      removePointAt in interface ILcd2DEditablePointList
      Specified by:
      removePointAt in interface ILcd3DEditablePointList
      Parameters:
      aIndex - a valid index in the list of ILcdPoint objects.
    • translate2D

      public void translate2D(double aDeltaX, double aDeltaY)
      Description copied from interface: ILcd2DEditablePointList
      Translates all the points of this ILcd2DEditablePointList from their current positions over the given translation vector in the 2D space. Only the first two dimensions of the points are considered. The third dimension is left unchanged.
      Specified by:
      translate2D in interface ILcd2DEditablePointList
      Parameters:
      aDeltaX - the x coordinate of the translation vector.
      aDeltaY - the y coordinate of the translation vector.
    • move2DPoint

      public void move2DPoint(int aIndex, double aX, double aY)
      Description copied from interface: ILcd2DEditablePointList
      Moves the specified point of this ILcd2DEditablePointList to the given point in the 2D space. Only the first two dimensions of the ILcdShape are considered. The third dimension is left unchanged.
      Specified by:
      move2DPoint in interface ILcd2DEditablePointList
      Parameters:
      aIndex - a valid index in the list of points.
      aX - the x coordinate of the point.
      aY - the y coordinate of the point.
    • translate2DPoint

      public void translate2DPoint(int aIndex, double aDeltaX, double aDeltaY)
      Description copied from interface: ILcd2DEditablePointList
      Translates the specified point of this ILcd2DEditablePointList from its current position over the given translation vector in the 2D space. Only the first two dimensions of the points are considered. The third dimension is left unchanged.
      Specified by:
      translate2DPoint in interface ILcd2DEditablePointList
      Parameters:
      aDeltaX - the x coordinate of the translation vector.
      aDeltaY - the y coordinate of the translation vector.
    • insert2DPoint

      public void insert2DPoint(int aIndex, double aX, double aY)
      Description copied from interface: ILcd2DEditablePointList
      Inserts a point at the given index into this ILcd2DEditablePointList.
      Specified by:
      insert2DPoint in interface ILcd2DEditablePointList
      Parameters:
      aIndex - a valid new index in the list of points.
      aX - the x coordinate of the new point.
      aY - the y coordinate of the new point.
    • getPointCount

      public int getPointCount()
      Description copied from interface: ILcdPointList
      Returns the number of ILcdPoint objects in the list.
      Specified by:
      getPointCount in interface ILcdPointList
      Returns:
      the number of ILcdPoint objects in the list.
    • getPoint

      public ILcdPoint getPoint(int aIndex) throws IndexOutOfBoundsException
      Description copied from interface: ILcdPointList
      Returns the ILcdPoint at a given index.
      Specified by:
      getPoint in interface ILcdPointList
      Parameters:
      aIndex - a valid index in the list of ILcdPoint objects.
      Returns:
      the ILcdPoint at the given index.
      Throws:
      IndexOutOfBoundsException - if the given index is out of bounds.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class Object