Class TLcdGML31DirectPositionList

All Implemented Interfaces:
ILcdDataObject, com.luciad.internal.format.gmlcommon.ILcd3DEditablePointListWithSrs, ILcdPointList, ILcd2DEditablePointList, ILcd3DEditablePointList, ILcdCloneable, ILcdDeepCloneable, ILcdFeatured, ILcdSelfDescribedFeatured, Serializable, Cloneable

public class TLcdGML31DirectPositionList extends TLcdFeaturedDataObject implements com.luciad.internal.format.gmlcommon.ILcd3DEditablePointListWithSrs

posList instances (and other instances with the content model specified by DirectPositionListType) hold the coordinates for a sequence of direct positions within the same coordinate reference system (CRS).

if no srsName attribute is given, the CRS shall be specified as part of the larger context this geometry element is part of, typically a geometric object like a point, curve, etc.

The optional attribute count specifies the number of direct positions in the list. If the attribute count is present then the attribute srsDimension shall be present, too.

The number of entries in the list is equal to the product of the dimensionality of the coordinate reference system (i.e. it is a derived value of the coordinate reference system definition) and the number of direct positions.

Since:
10.0
See Also:
  • Field Details

    • VALUE_PROPERTY

      public static final TLcdDataProperty VALUE_PROPERTY
      Property that maps on the value defined by the simple content. Acceptable values for this property are instances of com.luciad.util.collections.ILcdDoubleList.
    • COUNT_PROPERTY

      public static final TLcdDataProperty COUNT_PROPERTY
      Property that maps on the count attribute. Acceptable values for this property are instances of java.lang.Long.
    • SRS_PROPERTY

      public static final TLcdDataProperty SRS_PROPERTY
      Property that maps on the SRSReferenceGroup attributes. Acceptable values for this property are instances of ILcdModelReference.
  • Constructor Details

    • TLcdGML31DirectPositionList

      public TLcdGML31DirectPositionList()
    • TLcdGML31DirectPositionList

      public TLcdGML31DirectPositionList(TLcdDataType aType)
    • TLcdGML31DirectPositionList

      public TLcdGML31DirectPositionList(ILcdModelReference aSrs)
      Constructs a direct position list and initializes its model reference (srs).
      Parameters:
      aSrs - the model reference for this object
      See Also:
    • TLcdGML31DirectPositionList

      public TLcdGML31DirectPositionList(TLcdDataType aDataType, ILcdModelReference aSrs)
      Constructs a direct position list and initializes its model reference (srs).
      Parameters:
      aDataType - the data type for this object
      aSrs - the model reference for this object
      See Also:
  • Method Details

    • getValueObject

      public ILcdDoubleList getValueObject()
      Returns the value of the value property.
      Returns:
      the value of the value property
    • setValueObject

      public void setValueObject(ILcdDoubleList aValue)
      Sets the value of the value property to the given value.
      Parameters:
      aValue - the value to set
    • getCount

      public Long getCount()
      Gets the value of the COUNT_PROPERTY property.
      Returns:
      the value of the COUNT_PROPERTY property.
    • setCount

      public void setCount(Long aValue)
      Sets the value of the COUNT_PROPERTY property.
      Parameters:
      aValue - the value to set for the COUNT_PROPERTY property.
    • getSrs

      public ILcdModelReference getSrs()
      Gets the value of the SRS_PROPERTY property.
      Specified by:
      getSrs in interface com.luciad.internal.format.gmlcommon.ILcd3DEditablePointListWithSrs
      Returns:
      the value of the SRS_PROPERTY property.
    • setSrs

      public void setSrs(ILcdModelReference aValue)
      Sets the value of the SRS_PROPERTY property.
      Specified by:
      setSrs in interface com.luciad.internal.format.gmlcommon.ILcd3DEditablePointListWithSrs
      Parameters:
      aValue - the value to set for the SRS_PROPERTY property.
    • 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.
    • setValue

      public void setValue(TLcdDataProperty aProperty, Object aFeature)
      Description copied from interface: ILcdDataObject

      Sets the value of the given property for this data object. The implementation is allowed to throw an exception if the given value can't be set.

      The given property must be declared in the data object's type or in one of its super types. In other words, getDataType().getProperties().contains( aProperty ) should always be true. Otherwise, the implementation should throw an IllegalArgumentException.

      Specified by:
      setValue in interface ILcdDataObject
      Overrides:
      setValue in class TLcdDataObject
      Parameters:
      aProperty - the property for which the value is to be set
      aFeature - the value to set
      See Also: