Class TLcdGML2GeometryCollection

All Implemented Interfaces:
ILcdDataObject, ILcdBounded, ILcdShape, ILcdShapeList, ILcdCloneable, ILcdDeepCloneable, ILcdFeatured, ILcdInvalidateable, ILcdSelfDescribedFeatured, Serializable, Cloneable
Direct Known Subclasses:
TLcdGML2MultiLineString, TLcdGML2MultiPoint, TLcdGML2MultiPolygon

public class TLcdGML2GeometryCollection extends TLcdGML2AbstractGeometryCollectionBase implements ILcdShapeList, ILcdInvalidateable
A geometry collection must include one or more geometries, referenced through geometryMember elements. User-defined geometry collections that accept GML geometry classes as members must instantiate--or derive from--this type.
Since:
10.0
See Also:
  • Field Details Link icon

    • GEOMETRY_MEMBER_PROPERTY Link icon

      public static final TLcdDataProperty GEOMETRY_MEMBER_PROPERTY
      Data property that maps to the geometryMember element. The possible values for this property are instances of List<TLcdGML2GeometryAssociation>.
  • Constructor Details Link icon

    • TLcdGML2GeometryCollection Link icon

      public TLcdGML2GeometryCollection()
    • TLcdGML2GeometryCollection Link icon

      public TLcdGML2GeometryCollection(TLcdDataType aType)
  • Method Details Link icon

    • addShape Link icon

      public void addShape(int aIndex, ILcdShape aShape)
    • addShape Link icon

      public void addShape(ILcdShape aShape)
    • addShapes Link icon

      public void addShapes(ILcdShape[] aShapes)
    • clearShapes Link icon

      public void clearShapes()
    • removeShape Link icon

      public ILcdShape removeShape(int aIndex)
    • removeShape Link icon

      public boolean removeShape(ILcdShape aShape)
    • removeShapes Link icon

      public void removeShapes(ILcdShape[] aShapes)
    • setShape Link icon

      public ILcdShape setShape(int aIndex, ILcdShape aShape)
    • setShapes Link icon

      public void setShapes(ILcdShape[] aShapes)
    • shapeChanged Link icon

      public void shapeChanged(int aIndex)
    • shapeChanged Link icon

      public void shapeChanged(ILcdShape aShape)
    • shapesChanged Link icon

      public void shapesChanged()
    • getShapeCount Link icon

      public int getShapeCount()
      Description copied from interface: ILcdShapeList
      Returns the number of ILcdShape objects in the list.
      Specified by:
      getShapeCount in interface ILcdShapeList
      Returns:
      the number of ILcdShape objects in the list.
    • getShape Link icon

      public ILcdShape getShape(int aIndex)
      Description copied from interface: ILcdShapeList
      Returns the ILcdShape at the given index.
      Specified by:
      getShape in interface ILcdShapeList
      Parameters:
      aIndex - a valid index in the list of ILcdShape objects.
      Returns:
      the ILcdShape at the given index.
    • contains2D Link icon

      public boolean contains2D(ILcdPoint aPoint)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given ILcdPoint in the 2D space. Only the first two dimensions of the ILcdShape and the ILcdPoint are considered.
      Specified by:
      contains2D in interface ILcdShape
      Overrides:
      contains2D in class TLcdGML2AbstractGeometry
      Parameters:
      aPoint - the ILcdPoint to test.
      Returns:
      the boolean result of the containment test.
      See Also:
    • contains3D Link icon

      public boolean contains3D(ILcdPoint aPoint)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given ILcdPoint in the 3D space.
      Specified by:
      contains3D in interface ILcdShape
      Overrides:
      contains3D in class TLcdGML2AbstractGeometry
      Parameters:
      aPoint - the ILcdPoint to test.
      Returns:
      the boolean result of the containment test.
      See Also:
    • contains3D Link icon

      public boolean contains3D(double aX, double aY, double aZ)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given point in the 3D space.
      Specified by:
      contains3D in interface ILcdShape
      Overrides:
      contains3D in class TLcdGML2AbstractGeometry
      Parameters:
      aX - the x coordinate of the point.
      aY - the y coordinate of the point.
      aZ - the z coordinate of the point.
      Returns:
      the boolean result of the containment test.
    • contains2D Link icon

      public boolean contains2D(double aX, double aY)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given point in the 2D space. Only the first two dimensions of the ILcdShape are considered.
      Specified by:
      contains2D in interface ILcdShape
      Overrides:
      contains2D in class TLcdGML2AbstractGeometry
      Parameters:
      aX - the x coordinate of the point.
      aY - the y coordinate of the point.
      Returns:
      the boolean result of the containment test.
    • getFocusPoint Link icon

      public ILcdPoint getFocusPoint()
      Description copied from interface: ILcdShape
      Returns the focus point of this ILcdShape.
      Specified by:
      getFocusPoint in interface ILcdShape
      Overrides:
      getFocusPoint in class TLcdGML2AbstractGeometry
      Returns:
      the focus point of this ILcdShape.
    • clone Link icon

      Description copied from class: TLcdDataObject
      Returns a deep clone of this object. This method delegates to TLcdDataObject.clone(Map).
      Specified by:
      clone in interface ILcdCloneable
      Overrides:
      clone in class TLcdDataObject
      Returns:
      a deep clone of this object
      See Also:
    • clone Link icon

      public TLcdDataObject clone(Map aObjectDictionary)
      Description copied from class: TLcdDataObject
      Returns a deep clone of this object. If the clone is not already present in the dictionary, a new instance if created as follows:
      • First, a new instance is created using Java's clone() mechanism.
      • Then, all properties of this object are cloned and set on the newly created instance. A property is cloned as follows:
        • If the property value is an ILcdDataObject, the value is cloned by first creating a new instance via the value.getDataType().newInstance() method, and then cloning its properties one by one.
        • If the value implements ILcdDeepCloneable or ILcdCloneable then this interface is used to clone the value.
        • Otherwise, the property value is copied by reference.
      Specified by:
      clone in interface ILcdDeepCloneable
      Overrides:
      clone in class TLcdDataObject
      Parameters:
      aObjectDictionary - the Object dictionary that keeps track of the objects for which a clone has already been made, and their corresponding clone Object.
      Returns:
      a deep clone of this object
    • getBounds Link icon

      public ILcdBounds getBounds()
      Description copied from interface: ILcdBounded
      Returns the ILcdBounds by which the geometry of this ILcdBounded object is bounded.

      If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an undefined bounds. You can create undefined bounds using the default constructors of TLcdLonLatBounds or TLcdXYBounds.

      Specified by:
      getBounds in interface ILcdBounded
      Overrides:
      getBounds in class TLcdGML2AbstractGeometry
      Returns:
      the ILcdBounds by which the geometry of this ILcdBounded object is bounded.
    • createDelegateShape Link icon

      protected ILcdEditableShapeList createDelegateShape()
    • invalidateObject Link icon

      public void invalidateObject()
      Description copied from interface: ILcdInvalidateable
      Invalidates all cached values of this object. Call this method whenever one or more of this object's compositing values has been changed, to notify this object it needs to recompute its cached values.
      Specified by:
      invalidateObject in interface ILcdInvalidateable
    • getGeometryMember Link icon

      public List<TLcdGML2GeometryAssociation> getGeometryMember()
      Returns the value of the property that maps to the geometryMember element.
      Returns:
      the value of the GEOMETRY_MEMBER_PROPERTY property.