public abstract class ALcd3DEditableBounds extends ALcd2DEditableBounds implements ILcd3DEditableBounds
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.
Constructor and Description |
---|
ALcd3DEditableBounds() |
Modifier and Type | Method and Description |
---|---|
void |
move2D(double aX,
double aY)
Moves this
ILcd2DEditableShape to the given point in the 2D space. |
void |
move3D(ILcdPoint aPoint)
Moves this
ILcd3DEditableShape to the given point in the 3D space. |
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. |
void |
setTo3DIntersection(ILcdBounds aBounds)
Calculates the 3D intersection of this
ALcd3DEditableBounds and a given ILcdBounds
in the cartesian plane. |
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. |
void |
setTo3DUnion(ILcdBounds aBounds)
Calculates the 3D union of this
ALcd3DEditableBounds and a given ILcdBounds
in the cartesian plane. |
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. |
void |
setToIncludePoint3D(ILcdPoint aPoint)
Calculates the 3D extension of this
ILcd3DEditableBounds object that contains a given ILcdPoint ,
in the cartesian plane. |
String |
toString() |
void |
translate3D(double aDeltaX,
double aDeltaY,
double aDeltaZ)
Translates this
ILcd3DEditableShape from its current position over the given translation
vector in the 3D space. |
getDepth, isDefined, move2D, setDefined, setTo2DIntersection, setTo2DIntersection, setTo2DUnion, setTo2DUnion, setToIncludePoint2D, setToIncludePoint2D, translate2D
contains2D, contains2D, contains2D, contains3D, contains3D, contains3D, equals, fromDomainObject, getBounds, getFocusPoint, hashCode, interacts2D, interacts2D, interacts3D, interacts3D, isDefined, isDefined
clone, contains2D, contains3D
finalize, getClass, notify, notifyAll, wait, wait, wait
move3D, setDepth
move2D, setHeight, setTo2DIntersection, setTo2DIntersection, setTo2DUnion, setTo2DUnion, setToIncludePoint2D, setToIncludePoint2D, setWidth, translate2D
cloneAs2DEditableBounds, cloneAs3DEditableBounds, contains2D, contains2D, contains3D, contains3D, getCenter, getDepth, getHeight, getLocation, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getWidth, interacts2D, interacts2D, interacts3D, interacts3D, isDefined
contains2D, contains2D, contains3D, contains3D, getFocusPoint
getBounds
clone
public void move2D(double aX, double aY)
ILcd2DEditableBounds
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.
move2D
in interface ILcd2DEditableBounds
move2D
in interface ILcd2DEditableShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.public void move3D(ILcdPoint aPoint)
ILcd3DEditableBounds
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.
move3D
in interface ILcd3DEditableBounds
move3D
in interface ILcd3DEditableShape
aPoint
- the ILcdPoint
to move to.ILcd3DEditableShape.move3D(double, double, double)
public void translate3D(double aDeltaX, double aDeltaY, double aDeltaZ)
ILcd3DEditableBounds
ILcd3DEditableShape
from its current position over the given translation
vector in the 3D space.
If this bounds is undefined
, it becomes defined.
translate3D
in interface ILcd3DEditableBounds
translate3D
in interface ILcd3DEditableShape
aDeltaX
- the x coordinate of the translation vector.aDeltaY
- the y coordinate of the translation vector.aDeltaZ
- the z coordinate of the translation vector.public void setTo3DIntersection(ILcdBounds aBounds)
ALcd3DEditableBounds
and a given ILcdBounds
in the cartesian plane.setTo3DIntersection
in interface ILcd3DEditableBounds
aBounds
- the other ILcdBounds
operand for the intersection.ILcd3DEditableBounds.setTo3DIntersection(double, double, double, double, double, double)
public void setTo3DIntersection(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth)
ALcd3DEditableBounds
and a given rectangle
in the cartesian plane.setTo3DIntersection
in interface ILcd3DEditableBounds
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.public void setTo3DUnion(ILcdBounds aBounds)
ALcd3DEditableBounds
and a given ILcdBounds
in the cartesian plane.setTo3DUnion
in interface ILcd3DEditableBounds
aBounds
- the other ILcdBounds
operand for the union.ILcd3DEditableBounds.setTo3DUnion(double, double, double, double, double, double)
public void setTo3DUnion(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth)
ALcd3DEditableBounds
and a given rectangle
in the cartesian plane.setTo3DUnion
in interface ILcd3DEditableBounds
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.public void setToIncludePoint3D(ILcdPoint aPoint)
ILcd3DEditableBounds
object that contains a given ILcdPoint
,
in the cartesian plane.setToIncludePoint3D
in interface ILcd3DEditableBounds
aPoint
- the ILcdPoint
operand for the union.ILcd3DEditableBounds.setToIncludePoint3D(double, double, double)
public void setToIncludePoint3D(double aX, double aY, double aZ)
ILcd3DEditableBounds
object that contains a given point,
in the cartesian plane.setToIncludePoint3D
in interface ILcd3DEditableBounds
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.public String toString()
toString
in class ALcd2DEditableBounds