Class ALcd3DEditableBounds

All Implemented Interfaces:
ILcdBounded, ILcdBounds, ILcdShape, ILcd2DEditableBounds, ILcd2DEditableShape, ILcd3DEditableBounds, ILcd3DEditableShape, ILcdCloneable, Serializable, Cloneable
Direct Known Subclasses:
TLcdLonLatHeightBounds, TLcdXYZBounds, TLcdXYZFloatBounds

public abstract class ALcd3DEditableBounds extends ALcd2DEditableBounds implements ILcd3DEditableBounds
This abstract class provides a basis for implementing the ILcd3DEditableBounds interface.

This class is thread-safe for concurrent read-only access of its contents. For read-write access, external locking must be used. Such locking is typically done at the model level.

See Also:
  • Constructor Details

    • ALcd3DEditableBounds

      public ALcd3DEditableBounds()
  • Method Details

    • 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.
    • 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:
    • 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.
    • setTo3DIntersection

      public void setTo3DIntersection(ILcdBounds aBounds)
      Calculates the 3D intersection of this ALcd3DEditableBounds and a given ILcdBounds in the cartesian plane.
      Specified by:
      setTo3DIntersection in interface ILcd3DEditableBounds
      Parameters:
      aBounds - the other ILcdBounds operand for the intersection.
      See Also:
    • setTo3DIntersection

      public void setTo3DIntersection(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth)
      Calculates the 3D intersection of this ALcd3DEditableBounds and a given rectangle in the cartesian plane.
      Specified by:
      setTo3DIntersection in interface ILcd3DEditableBounds
      Parameters:
      aX - the x coordinate of the box.
      aY - the y coordinate of the box.
      aZ - the z coordinate of the box.
      aWidth - the width of the box.
      aHeight - the height of the box.
      aDepth - the depth of the box.
    • setTo3DUnion

      public void setTo3DUnion(ILcdBounds aBounds)
      Calculates the 3D union of this ALcd3DEditableBounds and a given ILcdBounds in the cartesian plane.
      Specified by:
      setTo3DUnion in interface ILcd3DEditableBounds
      Parameters:
      aBounds - the other ILcdBounds operand for the union.
      See Also:
    • setTo3DUnion

      public void setTo3DUnion(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth)
      Calculates the 3D union of this ALcd3DEditableBounds and a given rectangle in the cartesian plane.
      Specified by:
      setTo3DUnion in interface ILcd3DEditableBounds
      Parameters:
      aX - the x coordinate of the box.
      aY - the y coordinate of the box.
      aZ - the z coordinate of the box.
      aWidth - the width of the box.
      aHeight - the height of the box.
      aDepth - the depth of the box.
    • setToIncludePoint3D

      public void setToIncludePoint3D(ILcdPoint aPoint)
      Calculates the 3D extension of this ILcd3DEditableBounds object that contains a given ILcdPoint, in the cartesian plane.
      Specified by:
      setToIncludePoint3D in interface ILcd3DEditableBounds
      Parameters:
      aPoint - the ILcdPoint operand for the union.
      See Also:
    • setToIncludePoint3D

      public void setToIncludePoint3D(double aX, double aY, double aZ)
      Calculates the 3D extension of this ILcd3DEditableBounds object that contains a given point, in the cartesian plane.
      Specified by:
      setToIncludePoint3D in interface ILcd3DEditableBounds
      Parameters:
      aX - the x coordinate of the point.
      aY - the y coordinate of the point.
      aZ - the z coordinate of the point.
    • toString

      public String toString()
      Overrides:
      toString in class ALcd2DEditableBounds