Package com.luciad.shape.shape3D
Class ALcd3DEditableBounds
java.lang.Object
com.luciad.shape.ALcdShape
com.luciad.shape.ALcdBounds
com.luciad.shape.shape2D.ALcd2DEditableBounds
com.luciad.shape.shape3D.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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
move2D
(double aX, double aY) Moves thisILcd2DEditableShape
to the given point in the 2D space.void
Moves thisILcd3DEditableShape
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 thisALcd3DEditableBounds
and a given rectangle in the cartesian plane.void
setTo3DIntersection
(ILcdBounds aBounds) Calculates the 3D intersection of thisALcd3DEditableBounds
and a givenILcdBounds
in the cartesian plane.void
setTo3DUnion
(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Calculates the 3D union of thisALcd3DEditableBounds
and a given rectangle in the cartesian plane.void
setTo3DUnion
(ILcdBounds aBounds) Calculates the 3D union of thisALcd3DEditableBounds
and a givenILcdBounds
in the cartesian plane.void
setToIncludePoint3D
(double aX, double aY, double aZ) Calculates the 3D extension of thisILcd3DEditableBounds
object that contains a given point, in the cartesian plane.void
setToIncludePoint3D
(ILcdPoint aPoint) Calculates the 3D extension of thisILcd3DEditableBounds
object that contains a givenILcdPoint
, in the cartesian plane.toString()
void
translate3D
(double aDeltaX, double aDeltaY, double aDeltaZ) Translates thisILcd3DEditableShape
from its current position over the given translation vector in the 3D space.Methods inherited from class com.luciad.shape.shape2D.ALcd2DEditableBounds
getDepth, isDefined, move2D, setDefined, setTo2DIntersection, setTo2DIntersection, setTo2DUnion, setTo2DUnion, setToIncludePoint2D, setToIncludePoint2D, translate2D
Methods inherited from class com.luciad.shape.ALcdBounds
contains2D, contains2D, contains2D, contains3D, contains3D, contains3D, equals, fromDomainObject, getBounds, getFocusPoint, hashCode, interacts2D, interacts2D, interacts3D, interacts3D, isDefined, isDefined
Methods inherited from class com.luciad.shape.ALcdShape
clone, contains2D, contains3D
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableBounds
move2D, setHeight, setTo2DIntersection, setTo2DIntersection, setTo2DUnion, setTo2DUnion, setToIncludePoint2D, setToIncludePoint2D, setWidth, translate2D
Methods inherited from interface com.luciad.shape.shape3D.ILcd3DEditableBounds
move3D, setDepth
Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
Methods inherited from interface com.luciad.shape.ILcdBounds
cloneAs2DEditableBounds, cloneAs3DEditableBounds, contains2D, contains2D, contains3D, contains3D, getCenter, getDepth, getHeight, getLocation, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getWidth, interacts2D, interacts2D, interacts3D, interacts3D, isDefined
Methods inherited from interface com.luciad.util.ILcdCloneable
clone
Methods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Constructor Details
-
ALcd3DEditableBounds
public ALcd3DEditableBounds()
-
-
Method Details
-
move2D
public void move2D(double aX, double aY) Description copied from interface:ILcd2DEditableBounds
Moves thisILcd2DEditableShape
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 theILcdShape
are considered. The third dimension is left unchanged.If this bounds was
undefined
, it becomes defined after the move.- Specified by:
move2D
in interfaceILcd2DEditableBounds
- Specified by:
move2D
in interfaceILcd2DEditableShape
- Parameters:
aX
- the x coordinate of the point.aY
- the y coordinate of the point.
-
move3D
Description copied from interface:ILcd3DEditableBounds
Moves thisILcd3DEditableShape
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 interfaceILcd3DEditableBounds
- Specified by:
move3D
in interfaceILcd3DEditableShape
- Parameters:
aPoint
- theILcdPoint
to move to.- See Also:
-
translate3D
public void translate3D(double aDeltaX, double aDeltaY, double aDeltaZ) Description copied from interface:ILcd3DEditableBounds
Translates thisILcd3DEditableShape
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 interfaceILcd3DEditableBounds
- Specified by:
translate3D
in interfaceILcd3DEditableShape
- 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
Calculates the 3D intersection of thisALcd3DEditableBounds
and a givenILcdBounds
in the cartesian plane.- Specified by:
setTo3DIntersection
in interfaceILcd3DEditableBounds
- Parameters:
aBounds
- the otherILcdBounds
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 thisALcd3DEditableBounds
and a given rectangle in the cartesian plane.- Specified by:
setTo3DIntersection
in interfaceILcd3DEditableBounds
- 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
Calculates the 3D union of thisALcd3DEditableBounds
and a givenILcdBounds
in the cartesian plane.- Specified by:
setTo3DUnion
in interfaceILcd3DEditableBounds
- Parameters:
aBounds
- the otherILcdBounds
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 thisALcd3DEditableBounds
and a given rectangle in the cartesian plane.- Specified by:
setTo3DUnion
in interfaceILcd3DEditableBounds
- 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
Calculates the 3D extension of thisILcd3DEditableBounds
object that contains a givenILcdPoint
, in the cartesian plane.- Specified by:
setToIncludePoint3D
in interfaceILcd3DEditableBounds
- Parameters:
aPoint
- theILcdPoint
operand for the union.- See Also:
-
setToIncludePoint3D
public void setToIncludePoint3D(double aX, double aY, double aZ) Calculates the 3D extension of thisILcd3DEditableBounds
object that contains a given point, in the cartesian plane.- Specified by:
setToIncludePoint3D
in interfaceILcd3DEditableBounds
- Parameters:
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.
-
toString
- Overrides:
toString
in classALcd2DEditableBounds
-