Class TLcdGML32Rectangle

All Implemented Interfaces:
ILcdDataObject, ILcdBounded, ILcdBounds, ILcdShape, ILcd2DEditableBounds, ILcd2DEditableShape, ILcd3DEditableBounds, ILcd3DEditableShape, ILcdCloneable, ILcdDeepCloneable, Serializable, Cloneable

public class TLcdGML32Rectangle extends TLcdGML32AbstractSurfacePatch implements ILcd3DEditableBounds
gml:Rectangle represents a rectangle as a surface patch with an outer boundary consisting of a linear ring. Note that this is a polygon (subtype) with no inner boundaries. The number of points in the linear ring shall be five. The ring (element exterior) shall be a gml:LinearRing and shall form a rectangle; the first and the last position shall be coincident. interpolation is fixed to "planar", i.e. an interpolation shall return points on a single plane. The boundary of the patch shall be contained within that plane.
Since:
10.0
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TLcdDataProperty
    Data property that maps to the exterior element.
    static final TLcdDataProperty
    Data property that maps to the interpolation attribute.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
    TLcdGML32Rectangle(TLcdDataType aDataType, ILcdModelReference aModelReference)
    Constructs a new instance and sets its exterior to a new TLcdGML32LinearRing initialized with the given model reference.
    Constructs a new instance and sets its exterior to a new TLcdGML32LinearRing initialized with the given model reference.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a deep clone of this object.
    clone(Map aObjectDictionary)
    Returns a deep clone of this object.
    Returns a copy of this ILcdBounds object that is also an ILcd2DEditableBounds.
    Returns a copy of this ILcdBounds object that is also an ILcd3DEditableBounds.
    boolean
    contains2D(double aX, double aY)
    Checks whether this ILcdShape contains the given point in the 2D space.
    boolean
    contains2D(double aArg0, double aArg1, double aArg2, double aArg3)
    Checks whether this ILcdBounds object contains the given rectangle in the 2D space.
    boolean
    Checks whether this ILcdBounds object contains the given ILcdBounds object in the 2D space.
    boolean
    Checks whether this ILcdShape contains the given ILcdPoint in the 2D space.
    boolean
    contains3D(double aX, double aY, double aZ)
    Checks whether this ILcdShape contains the given point in the 3D space.
    boolean
    contains3D(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5)
    Checks whether this ILcdBounds object contains the given box in the 3D space.
    boolean
    Checks whether this ILcdBounds object contains the given ILcdBounds object in the 3D space.
    boolean
    Checks whether this ILcdShape contains the given ILcdPoint in the 3D space.
    Returns the ILcdBounds by which the geometry of this ILcdBounded object is bounded.
    double
    Returns the depth of the bounding box.
    Returns the role value contained in the value of the EXTERIOR_PROPERTY property.
    Returns the focus point of this ILcdShape.
    double
    Returns the height of the bounding box.
    Returns the value of the property that maps to the interpolation attribute.
    Returns the location of the bounding box (smallest x and y coordinates).
    double
    Returns the width of the bounding box.
    boolean
    interacts2D(double aArg0, double aArg1, double aArg2, double aArg3)
    Checks whether this ILcdBounds object interacts with the given rectangle in the 2D space.
    boolean
    Checks whether this ILcdBounds object interacts with the given ILcdBounds object in the 2D space.
    boolean
    interacts3D(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5)
    Checks whether this ILcdBounds object interacts with the given box in the 3D space.
    boolean
    Checks whether this ILcdBounds object interacts with the given ILcdBounds object.
    boolean
    Indicates whether this bounds object is valid.
    void
    move2D(double aX, double aY)
    Moves this ILcd2DEditableShape to the given point in the 2D space.
    void
    move2D(ILcdPoint aPoint)
    Moves this ILcd2DEditableShape to the given point in the 2D space.
    void
    move3D(double aX, double aY, double aZ)
    Moves this ILcd3DEditableShape to the given point in the 3D space.
    void
    move3D(ILcdPoint aPoint)
    Moves this ILcd3DEditableShape to the given point in the 3D space.
    void
    setDepth(double aArg0)
    Sets the depth of the bounds (the extent along the z-axis).
    void
    Sets the value of the property that maps to the exterior element.
    void
    setHeight(double aHeight)
    Sets the height of the bounds (the extent along the y-axis).
    void
    Sets the value of the property that maps to the interpolation attribute.
    void
    setTo2DIntersection(double aArg0, double aArg1, double aArg2, double aArg3)
    Calculates the 2D intersection of this ILcd2DEditableBounds object and a given rectangle.
    void
    Calculates the 2D intersection of this ILcd2DEditableBounds and a given ILcdBounds.
    void
    setTo2DUnion(double aArg0, double aArg1, double aArg2, double aArg3)
    Calculates the 2D union of this ILcd2DEditableBounds object and a given rectangle.
    void
    Calculates the 2D union of this ILcd2DEditableBounds and a given ILcdBounds.
    void
    setTo3DIntersection(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5)
    Calculates the 3D intersection of this ILcd3DEditableBounds and a given box.
    void
    Calculates the 3D intersection of this ILcd3DEditableBounds and a given ILcdBounds.
    void
    setTo3DUnion(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5)
    Calculates the 3D union of this ILcd3DEditableBounds and a given box.
    void
    Calculates the 3D union of this ILcd3DEditableBounds and a given ILcdBounds.
    void
    setToIncludePoint2D(double aArg0, double aArg1)
    Calculates the 2D extension of this ILcd2DEditableBounds object that contains a given point.
    void
    Calculates the 2D extension of this ILcd2DEditableBounds object that contains a given ILcdPoint.
    void
    setToIncludePoint3D(double aArg0, double aArg1, double aArg2)
    Calculates the 3D extension of this ILcd3DEditableBounds that contains a given ILcdPoint.
    void
    Calculates the 3D extension of this ILcd3DEditableBounds that contains a given ILcdPoint.
    void
    setWidth(double aArg0)
    Sets the width of the bounds (the extent along the x-axis).
    void
    translate2D(double aDeltaX, double aDeltaY)
    Translates this ILcd2DEditableShape from its current position over the given translation vector in the 2D space.
    void
    translate3D(double aDeltaX, double aDeltaY, double aDeltaZ)
    Translates this ILcd3DEditableShape from its current position over the given translation vector in the 3D space.

    Methods inherited from class com.luciad.datamodel.TLcdDataObject

    getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue, toString

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.luciad.shape.ILcdBounds

    getCenter, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ
  • Field Details

  • Constructor Details

    • TLcdGML32Rectangle

      public TLcdGML32Rectangle()
    • TLcdGML32Rectangle

      public TLcdGML32Rectangle(TLcdDataType aType)
    • TLcdGML32Rectangle

      public TLcdGML32Rectangle(ILcdModelReference aModelReference)
      Constructs a new instance and sets its exterior to a new TLcdGML32LinearRing initialized with the given model reference.
      Parameters:
      aModelReference - the model reference of this object
    • TLcdGML32Rectangle

      public TLcdGML32Rectangle(TLcdDataType aDataType, ILcdModelReference aModelReference)
      Constructs a new instance and sets its exterior to a new TLcdGML32LinearRing initialized with the given model reference.
      Parameters:
      aDataType - the data type for this object
      aModelReference - the model reference of this object
  • Method Details

    • isDefined

      public boolean isDefined()
      Description copied from interface: ILcdBounds
      Indicates whether this bounds object is valid.
      • If true, this bounds describes a valid geographic region.
      • If false, this bounds does not represent a geographic region, and its location, width, height and depth should not be used.
      Specified by:
      isDefined in interface ILcdBounds
      Returns:
      true if this object describes actual bounds, false if not
    • cloneAs2DEditableBounds

      public ILcd2DEditableBounds cloneAs2DEditableBounds()
      Description copied from interface: ILcdBounds
      Returns a copy of this ILcdBounds object that is also an ILcd2DEditableBounds. This makes sure that the first two dimensions of the copy are writable, even if the original ILcdBounds object may be read-only.
      Specified by:
      cloneAs2DEditableBounds in interface ILcdBounds
      Returns:
      a copy of this ILcdBounds object that is also an ILcd2DEditableBounds. This makes sure that the first two dimensions of the copy are writable, even if the original ILcdBounds object may be read-only.
      See Also:
    • cloneAs3DEditableBounds

      public ILcd3DEditableBounds cloneAs3DEditableBounds()
      Description copied from interface: ILcdBounds
      Returns a copy of this ILcdBounds object that is also an ILcd3DEditableBounds. This makes sure that all three dimensions of the copy are writable, even if the original ILcdBounds object may be read-only.
      Specified by:
      cloneAs3DEditableBounds in interface ILcdBounds
      Returns:
      a copy of this ILcdBounds object that is also an ILcd3DEditableBounds. This makes sure that all three dimensions of the copy are writable, even if the original ILcdBounds object may be read-only.
      See Also:
    • contains2D

      public boolean contains2D(double aArg0, double aArg1, double aArg2, double aArg3)
      Description copied from interface: ILcdBounds
      Checks whether this ILcdBounds object contains the given rectangle in the 2D space. Only the first two dimensions of the ILcdBounds object are considered.

      If this bounds is undefined, the result is false.

      Specified by:
      contains2D in interface ILcdBounds
      Parameters:
      aArg0 - the x coordinate of the rectangle.
      aArg1 - the y coordinate of the rectangle.
      aArg2 - the width of the rectangle.
      aArg3 - the height of the rectangle.
      Returns:
      the boolean result of the containment test.
    • contains2D

      public boolean contains2D(ILcdBounds aArg0)
      Description copied from interface: ILcdBounds
      Checks whether this ILcdBounds object contains the given ILcdBounds object in the 2D space. Only the first two dimensions of the ILcdBounds objects are considered.

      If either bounds is undefined, the result is false.

      Specified by:
      contains2D in interface ILcdBounds
      Parameters:
      aArg0 - the ILcdBounds to compare with.
      Returns:
      the boolean result of the containment test.
      See Also:
    • contains3D

      public boolean contains3D(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5)
      Description copied from interface: ILcdBounds
      Checks whether this ILcdBounds object contains the given box in the 3D space.

      If this bounds is undefined, the result is false.

      Specified by:
      contains3D in interface ILcdBounds
      Parameters:
      aArg0 - the x coordinate of the point.
      aArg1 - the y coordinate of the point.
      aArg2 - the z coordinate of the point.
      aArg3 - the width of the box.
      aArg4 - the height of the box.
      aArg5 - the depth of the box.
      Returns:
      the boolean result of the containment test.
      See Also:
    • contains3D

      public boolean contains3D(ILcdBounds aArg0)
      Description copied from interface: ILcdBounds
      Checks whether this ILcdBounds object contains the given ILcdBounds object in the 3D space.

      If either bounds is undefined, the result is false.

      Specified by:
      contains3D in interface ILcdBounds
      Parameters:
      aArg0 - the ILcdBounds to compare with.
      Returns:
      the boolean result of the containment test.
      See Also:
    • getDepth

      public double getDepth()
      Description copied from interface: ILcdBounds
      Returns the depth of the bounding box. The depth has to be larger than or equal to 0.
      Specified by:
      getDepth in interface ILcdBounds
      Returns:
      the depth of the bounding box.
    • getHeight

      public double getHeight()
      Description copied from interface: ILcdBounds
      Returns the height of the bounding box. The height has to be larger than or equal to 0.
      Specified by:
      getHeight in interface ILcdBounds
      Returns:
      the height of the bounding box.
    • getLocation

      public ILcdPoint getLocation()
      Description copied from interface: ILcdBounds
      Returns the location of the bounding box (smallest x and y coordinates).
      Specified by:
      getLocation in interface ILcdBounds
      Returns:
      the location of the bounding box.
    • getWidth

      public double getWidth()
      Description copied from interface: ILcdBounds
      Returns the width of the bounding box. The width has to be larger than or equal to 0.
      Specified by:
      getWidth in interface ILcdBounds
      Returns:
      the width of the bounding box.
    • interacts2D

      public boolean interacts2D(double aArg0, double aArg1, double aArg2, double aArg3)
      Description copied from interface: ILcdBounds
      Checks whether this ILcdBounds object interacts with the given rectangle in the 2D space. Only the first two dimensions of the ILcdBounds object are considered.

      If this bounds is undefined, the result is false.

      Specified by:
      interacts2D in interface ILcdBounds
      Parameters:
      aArg0 - the x coordinate of the rectangle.
      aArg1 - the y coordinate of the rectangle.
      aArg2 - the width of the rectangle.
      aArg3 - the height of the rectangle.
      Returns:
      true if this ILcdBounds object touches or overlaps to any extent with the given rectangle, false otherwise.
    • interacts2D

      public boolean interacts2D(ILcdBounds aArg0)
      Description copied from interface: ILcdBounds
      Checks whether this ILcdBounds object interacts with the given ILcdBounds object in the 2D space. Only the first two dimensions of the ILcdBounds objects are considered.

      If either bounds is undefined, the result is false.

      Specified by:
      interacts2D in interface ILcdBounds
      Parameters:
      aArg0 - the ILcdBounds to compare with.
      Returns:
      the boolean result of the interaction test.
      See Also:
    • interacts3D

      public boolean interacts3D(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5)
      Description copied from interface: ILcdBounds
      Checks whether this ILcdBounds object interacts with the given box in the 3D space.

      If this bounds is undefined, the result is false.

      Specified by:
      interacts3D in interface ILcdBounds
      Parameters:
      aArg0 - the x coordinate of the box.
      aArg1 - the y coordinate of the box.
      aArg2 - the z coordinate of the box.
      aArg3 - the width of the box.
      aArg4 - the height of the box.
      aArg5 - the depth of the box.
      Returns:
      true if this ILcdBounds object touches or overlaps to any extent with the given box, false otherwise.
    • interacts3D

      public boolean interacts3D(ILcdBounds aArg0)
      Description copied from interface: ILcdBounds
      Checks whether this ILcdBounds object interacts with the given ILcdBounds object.

      If either bounds is undefined, the result is false.

      Specified by:
      interacts3D in interface ILcdBounds
      Parameters:
      aArg0 - the ILcdBounds to compare with.
      Returns:
      the boolean result of the interaction test.
      See Also:
    • setDepth

      public void setDepth(double aArg0)
      Description copied from interface: ILcd3DEditableBounds
      Sets the depth of the bounds (the extent along the z-axis).

      If this bounds is undefined, it becomes defined.

      Specified by:
      setDepth in interface ILcd3DEditableBounds
      Parameters:
      aArg0 - the new depth.
    • setTo2DUnion

      public void setTo2DUnion(double aArg0, double aArg1, double aArg2, double aArg3)
      Description copied from interface: ILcd2DEditableBounds
      Calculates the 2D union of this ILcd2DEditableBounds object and a given rectangle. The result contains at least all the points that are contained in the ILcdBounds object and in the rectangle (and typically more). Only the first two dimensions of this ILcdBounds object are considered. It is updated with the result. Its third dimension is left unchanged.

      If this bounds is undefined, it is set to the arguments.

      Specified by:
      setTo2DUnion in interface ILcd2DEditableBounds
      Parameters:
      aArg0 - the x coordinate of the rectangle.
      aArg1 - the y coordinate of the rectangle.
      aArg2 - the width of the rectangle.
      aArg3 - the height of the rectangle.
    • setTo2DUnion

      public void setTo2DUnion(ILcdBounds aArg0)
      Description copied from interface: ILcd2DEditableBounds
      Calculates the 2D union of this ILcd2DEditableBounds and a given ILcdBounds. The result contains at least all the points that are contained in either of the ILcdBounds objects (and typically more). Only the first two dimensions of the ILcdBounds objects are considered. This ILcd2DEditableBounds object is updated with the result. Its third dimension is left unchanged.

      If this bounds is undefined, it is set to the argument bounds. If the argument bounds is undefined, nothing happens.

      Specified by:
      setTo2DUnion in interface ILcd2DEditableBounds
      Parameters:
      aArg0 - the other ILcdBounds operand for the union.
      See Also:
    • setTo3DIntersection

      public void setTo3DIntersection(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5)
      Description copied from interface: ILcd3DEditableBounds
      Calculates the 3D intersection of this ILcd3DEditableBounds and a given box. The result contains at least all the points that are contained both in the ILcdBounds object and in the box. This ILcd3DEditableBounds object is updated with the result.

      If this bounds is undefined, nothing changes.

      Specified by:
      setTo3DIntersection in interface ILcd3DEditableBounds
      Parameters:
      aArg0 - the x coordinate of the box.
      aArg1 - the y coordinate of the box.
      aArg2 - the z coordinate of the box.
      aArg3 - the width of the box.
      aArg4 - the height of the box.
      aArg5 - the depth of the box.
    • setTo3DIntersection

      public void setTo3DIntersection(ILcdBounds aArg0)
      Description copied from interface: ILcd3DEditableBounds
      Calculates the 3D intersection of this ILcd3DEditableBounds and a given ILcdBounds. The result contains at least all the points that are contained in both ILcdBounds objects. This ILcd3DEditableBounds object is updated with the result.

      If this bounds is undefined, nothing changes. If the argument bounds is undefined, this bounds becomes undefined as well.

      Specified by:
      setTo3DIntersection in interface ILcd3DEditableBounds
      Parameters:
      aArg0 - the other ILcdBounds operand for the intersection.
      See Also:
    • setTo3DUnion

      public void setTo3DUnion(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5)
      Description copied from interface: ILcd3DEditableBounds
      Calculates the 3D union of this ILcd3DEditableBounds and a given box. The result contains at least all the points that are contained in the ILcdBounds objects and in the box (and typically more). This ILcd3DEditableBounds object is updated with the result.

      If this bounds is undefined, it is set to the arguments.

      Specified by:
      setTo3DUnion in interface ILcd3DEditableBounds
      Parameters:
      aArg0 - the x coordinate of the box.
      aArg1 - the y coordinate of the box.
      aArg2 - the z coordinate of the box.
      aArg3 - the width of the box.
      aArg4 - the height of the box.
      aArg5 - the depth of the box.
    • setTo3DUnion

      public void setTo3DUnion(ILcdBounds aArg0)
      Description copied from interface: ILcd3DEditableBounds
      Calculates the 3D union of this ILcd3DEditableBounds and a given ILcdBounds. The result contains at least all the points that are contained in either or both of the ILcdBounds objects (and typically more). This ILcd3DEditableBounds object is updated with the result.

      If this bounds is undefined, it is set to the argument bounds. If the argument bounds is undefined, nothing happens.

      Specified by:
      setTo3DUnion in interface ILcd3DEditableBounds
      Parameters:
      aArg0 - the other ILcdBounds operand for the union.
      See Also:
    • setToIncludePoint2D

      public void setToIncludePoint2D(double aArg0, double aArg1)
      Description copied from interface: ILcd2DEditableBounds
      Calculates the 2D extension of this ILcd2DEditableBounds object that contains a given point. The result contains at least the given point and all the points that are contained in this ILcd2DEditableBounds (and typically more). Only the first two dimensions of this ILcdBounds object are considered. It is updated with the result. Its third dimension is left unchanged.

      If this bounds is undefined, it is set to the point.

      Specified by:
      setToIncludePoint2D in interface ILcd2DEditableBounds
      Parameters:
      aArg0 - the x coordinate of the point.
      aArg1 - the y coordinate of the point.
    • setToIncludePoint2D

      public void setToIncludePoint2D(ILcdPoint aArg0)
      Description copied from interface: ILcd2DEditableBounds
      Calculates the 2D extension of this ILcd2DEditableBounds object that contains a given ILcdPoint. The result contains at least the given point and all the points that are contained in this ILcd2DEditableBounds (and typically more). Only the first two dimensions of this ILcdBounds object and the ILcdPoint are considered. This ILcdBounds object is updated with the result. Its third dimension is left unchanged.

      If this bounds is undefined, it is set to the point.

      Specified by:
      setToIncludePoint2D in interface ILcd2DEditableBounds
      Parameters:
      aArg0 - the point that should be inside (or at the edge) after the extension of the bounds.
      See Also:
    • setToIncludePoint3D

      public void setToIncludePoint3D(double aArg0, double aArg1, double aArg2)
      Description copied from interface: ILcd3DEditableBounds
      Calculates the 3D extension of this ILcd3DEditableBounds that contains a given ILcdPoint. The result contains at least the given point and all the points that are contained in this ILcd3DEditableBounds (and typically more). This ILcd3DEditableBounds object is updated with the result.

      If this bounds is undefined, it is set to the point.

      Specified by:
      setToIncludePoint3D in interface ILcd3DEditableBounds
      Parameters:
      aArg0 - the x coordinate of the point.
      aArg1 - the y coordinate of the point.
      aArg2 - the z coordinate of the point.
    • setToIncludePoint3D

      public void setToIncludePoint3D(ILcdPoint aArg0)
      Description copied from interface: ILcd3DEditableBounds
      Calculates the 3D extension of this ILcd3DEditableBounds that contains a given ILcdPoint. The result contains at least the given point and all the points that are contained in this ILcd3DEditableBounds (and typically more). This ILcd3DEditableBounds object is updated with the result.

      If this bounds is undefined, it is set to the point.

      Specified by:
      setToIncludePoint3D in interface ILcd3DEditableBounds
      Parameters:
      aArg0 - the ILcdPoint operand for the union.
      See Also:
    • setWidth

      public void setWidth(double aArg0)
      Description copied from interface: ILcd2DEditableBounds
      Sets the width of the bounds (the extent along the x-axis).

      If this bounds was undefined, it becomes defined.

      Specified by:
      setWidth in interface ILcd2DEditableBounds
      Parameters:
      aArg0 - the new width.
    • move3D

      public void move3D(ILcdPoint aPoint)
      Description copied from interface: ILcd3DEditableBounds
      Moves this ILcd3DEditableShape to the given point in the 3D space. The focus point is used as the handle by which the shape is moved.

      If this bounds was undefined, it becomes defined after the move.

      Specified by:
      move3D in interface ILcd3DEditableBounds
      Specified by:
      move3D in interface ILcd3DEditableShape
      Parameters:
      aPoint - the ILcdPoint to move to.
      See Also:
    • move3D

      public void move3D(double aX, double aY, double aZ)
      Description copied from interface: ILcd3DEditableBounds
      Moves this ILcd3DEditableShape to the given point in the 3D space. The focus point is used as the handle by which the shape is moved.

      If this bounds was undefined, it becomes defined after the move.

      Specified by:
      move3D in interface ILcd3DEditableBounds
      Specified by:
      move3D in interface ILcd3DEditableShape
      Parameters:
      aX - the x coordinate of the point.
      aY - the y coordinate of the point.
      aZ - the z coordinate of the point.
    • translate3D

      public void translate3D(double aDeltaX, double aDeltaY, double aDeltaZ)
      Description copied from interface: ILcd3DEditableBounds
      Translates this ILcd3DEditableShape from its current position over the given translation vector in the 3D space.

      If this bounds is undefined, it becomes defined.

      Specified by:
      translate3D in interface ILcd3DEditableBounds
      Specified by:
      translate3D in interface ILcd3DEditableShape
      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.
    • move2D

      public void move2D(ILcdPoint aPoint)
      Description copied from interface: ILcd2DEditableBounds
      Moves this ILcd2DEditableShape to the given point in the 2D space. The focus point is used as the handle by which the shape is moved. Only the first two dimensions of the ILcdShape and the ILcdPoint are considered. The third dimension is left unchanged.

      If this bounds was undefined, it becomes defined after the move.

      Specified by:
      move2D in interface ILcd2DEditableBounds
      Specified by:
      move2D in interface ILcd2DEditableShape
      Parameters:
      aPoint - the ILcdPoint to move to.
      See Also:
    • move2D

      public void move2D(double aX, double aY)
      Description copied from interface: ILcd2DEditableBounds
      Moves this ILcd2DEditableShape to the given point in the 2D space. The focus point is used as the handle by which the shape is moved. Only the first two dimensions of the ILcdShape are considered. The third dimension is left unchanged.

      If this bounds was undefined, it becomes defined after the move.

      Specified by:
      move2D in interface ILcd2DEditableBounds
      Specified by:
      move2D in interface ILcd2DEditableShape
      Parameters:
      aX - the x coordinate of the point.
      aY - the y coordinate of the point.
    • translate2D

      public void translate2D(double aDeltaX, double aDeltaY)
      Description copied from interface: ILcd2DEditableBounds
      Translates this ILcd2DEditableShape from its current position over the given translation vector in the 2D space. Only the first two dimensions of the ILcdShape are considered. The third dimension is left unchanged.

      If this bounds was undefined, it becomes defined after the translation.

      Specified by:
      translate2D in interface ILcd2DEditableBounds
      Specified by:
      translate2D in interface ILcd2DEditableShape
      Parameters:
      aDeltaX - the x coordinate of the translation vector.
      aDeltaY - the y coordinate of the translation vector.
    • getFocusPoint

      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 TLcdGML32AbstractSurfacePatch
      Returns:
      the focus point of this ILcdShape.
    • contains2D

      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 TLcdGML32AbstractSurfacePatch
      Parameters:
      aPoint - the ILcdPoint to test.
      Returns:
      the boolean result of the containment test.
      See Also:
    • contains2D

      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 TLcdGML32AbstractSurfacePatch
      Parameters:
      aX - the x coordinate of the point.
      aY - the y coordinate of the point.
      Returns:
      the boolean result of the containment test.
    • contains3D

      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 TLcdGML32AbstractSurfacePatch
      Parameters:
      aPoint - the ILcdPoint to test.
      Returns:
      the boolean result of the containment test.
      See Also:
    • contains3D

      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 TLcdGML32AbstractSurfacePatch
      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.
    • setHeight

      public void setHeight(double aHeight)
      Description copied from interface: ILcd2DEditableBounds
      Sets the height of the bounds (the extent along the y-axis).

      If this bounds was undefined, it becomes defined.

      Specified by:
      setHeight in interface ILcd2DEditableBounds
      Parameters:
      aHeight - the new height.
    • setTo2DIntersection

      public void setTo2DIntersection(ILcdBounds aBounds)
      Description copied from interface: ILcd2DEditableBounds
      Calculates the 2D intersection of this ILcd2DEditableBounds and a given ILcdBounds. The result contains at least all the points that are contained in both ILcdBounds objects. Only the first two dimensions of the ILcdBounds objects are considered. This ILcd2DEditableBounds object is updated with the result. Its third dimension is left unchanged.

      If this bounds is undefined, nothing changes. If the argument bounds is undefined, this bounds becomes undefined as well.

      Specified by:
      setTo2DIntersection in interface ILcd2DEditableBounds
      Parameters:
      aBounds - the other ILcdBounds operand for the intersection.
      See Also:
    • setTo2DIntersection

      public void setTo2DIntersection(double aArg0, double aArg1, double aArg2, double aArg3)
      Description copied from interface: ILcd2DEditableBounds
      Calculates the 2D intersection of this ILcd2DEditableBounds object and a given rectangle. The result contains at least all the points that are contained both in this ILcdBounds objects and in the rectangle. Only the first two dimensions of this ILcdBounds object are considered. It is updated with the result. Its third dimension is left unchanged.

      If this bounds is undefined, nothing changes.

      Specified by:
      setTo2DIntersection in interface ILcd2DEditableBounds
      Parameters:
      aArg0 - the x coordinate of the rectangle.
      aArg1 - the y coordinate of the rectangle.
      aArg2 - the width of the rectangle.
      aArg3 - the height of the rectangle.
    • getBounds

      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 TLcdGML32AbstractSurfacePatch
      Returns:
      the ILcdBounds by which the geometry of this ILcdBounded object is bounded.
    • clone

      public TLcdGML32Rectangle clone()
      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

      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
    • getInterpolationAttr

      public ELcdGML32SurfaceInterpolation getInterpolationAttr()
      Returns the value of the property that maps to the interpolation attribute.
      Returns:
      the value of the INTERPOLATION_ATTR_PROPERTY property.
    • setInterpolationAttr

      public void setInterpolationAttr(ELcdGML32SurfaceInterpolation aValue)
      Sets the value of the property that maps to the interpolation attribute.
      Parameters:
      aValue - the value to set for the INTERPOLATION_ATTR_PROPERTY property.
    • getExterior

      public TLcdGML32AbstractRing getExterior()
      Returns the role value contained in the value of the EXTERIOR_PROPERTY property. Returns null if the value of the EXTERIOR_PROPERTY property is null.

      A boundary of a surface consists of a number of rings. In the normal 2D case, one of these rings is distinguished as being the exterior boundary. In a general manifold this is not always possible, in which case all boundaries shall be listed as interior boundaries, and the exterior will be empty.

      Returns:
      the role value of the EXTERIOR_PROPERTY property.
      See Also:
    • setExterior

      public void setExterior(TLcdGML32AbstractRing aValue)
      Sets the value of the property that maps to the exterior element. to a new instance of the association class TLcdGML32AbstractRingProperty initialized with the given role value. In case the given role value is null, the EXTERIOR_PROPERTY property is set to null.

      A boundary of a surface consists of a number of rings. In the normal 2D case, one of these rings is distinguished as being the exterior boundary. In a general manifold this is not always possible, in which case all boundaries shall be listed as interior boundaries, and the exterior will be empty.

      Parameters:
      aValue - the role value to set for the EXTERIOR_PROPERTY property.