Package com.luciad.shape.shape3D
Interface ILcd3DEditableBounds
- All Superinterfaces:
Cloneable
,ILcd2DEditableBounds
,ILcd2DEditableShape
,ILcd3DEditableShape
,ILcdBounded
,ILcdBounds
,ILcdCloneable
,ILcdShape
,Serializable
- All Known Implementing Classes:
ALcd3DEditableBounds
,TLcdGML2Box
,TLcdGML31Box
,TLcdGML31Envelope
,TLcdGML31EnvelopeWithTimePeriod
,TLcdGML31Rectangle
,TLcdGML32Envelope
,TLcdGML32EnvelopeWithTimePeriod
,TLcdGML32Rectangle
,TLcdLonLatHeightBounds
,TLcdXYZBounds
,TLcdXYZFloatBounds
An
ILcd3DEditableBounds
object is an ILcdBounds
object that can be changed in all three
dimensions.-
Method Summary
Modifier and TypeMethodDescriptionvoid
move3D
(double aX, double aY, double aZ) Moves thisILcd3DEditableShape
to the given point in the 3D space.void
Moves thisILcd3DEditableShape
to the given point in the 3D space.void
setDepth
(double aDepth) Sets the depth of the bounds (the extent along the z-axis).void
setTo3DIntersection
(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Calculates the 3D intersection of thisILcd3DEditableBounds
and a given box.void
setTo3DIntersection
(ILcdBounds aBounds) Calculates the 3D intersection of thisILcd3DEditableBounds
and a givenILcdBounds
.void
setTo3DUnion
(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Calculates the 3D union of thisILcd3DEditableBounds
and a given box.void
setTo3DUnion
(ILcdBounds aBounds) Calculates the 3D union of thisILcd3DEditableBounds
and a givenILcdBounds
.void
setToIncludePoint3D
(double aX, double aY, double aZ) Calculates the 3D extension of thisILcd3DEditableBounds
that contains a givenILcdPoint
.void
setToIncludePoint3D
(ILcdPoint aPoint) Calculates the 3D extension of thisILcd3DEditableBounds
that contains a givenILcdPoint
.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 interface com.luciad.shape.shape2D.ILcd2DEditableBounds
move2D, move2D, setHeight, setTo2DIntersection, setTo2DIntersection, setTo2DUnion, setTo2DUnion, setToIncludePoint2D, setToIncludePoint2D, setWidth, translate2D
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
-
Method Details
-
move3D
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 interfaceILcd3DEditableShape
- Parameters:
aPoint
- theILcdPoint
to move to.- See Also:
-
move3D
void move3D(double aX, double aY, double aZ) 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 interfaceILcd3DEditableShape
- Parameters:
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.
-
translate3D
void translate3D(double aDeltaX, double aDeltaY, double aDeltaZ) 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 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.
-
setDepth
void setDepth(double aDepth) Sets the depth of the bounds (the extent along the z-axis).If this bounds is
undefined
, it becomes defined.- Parameters:
aDepth
- the new depth.
-
setTo3DIntersection
Calculates the 3D intersection of thisILcd3DEditableBounds
and a givenILcdBounds
. The result contains at least all the points that are contained in bothILcdBounds
objects. ThisILcd3DEditableBounds
object is updated with the result.If this bounds is
undefined
, nothing changes. If the argument bounds isundefined
, this bounds becomes undefined as well.- Parameters:
aBounds
- the otherILcdBounds
operand for the intersection.- See Also:
-
setTo3DIntersection
void setTo3DIntersection(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Calculates the 3D intersection of thisILcd3DEditableBounds
and a given box. The result contains at least all the points that are contained both in theILcdBounds
object and in the box. ThisILcd3DEditableBounds
object is updated with the result.If this bounds is
undefined
, nothing changes.- 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 thisILcd3DEditableBounds
and a givenILcdBounds
. The result contains at least all the points that are contained in either or both of theILcdBounds
objects (and typically more). ThisILcd3DEditableBounds
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.- Parameters:
aBounds
- the otherILcdBounds
operand for the union.- See Also:
-
setTo3DUnion
void setTo3DUnion(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Calculates the 3D union of thisILcd3DEditableBounds
and a given box. The result contains at least all the points that are contained in theILcdBounds
objects and in the box (and typically more). ThisILcd3DEditableBounds
object is updated with the result.If this bounds is
undefined
, it is set to the arguments.- 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
that contains a givenILcdPoint
. The result contains at least the given point and all the points that are contained in thisILcd3DEditableBounds
(and typically more). ThisILcd3DEditableBounds
object is updated with the result.If this bounds is
undefined
, it is set to the point.- Parameters:
aPoint
- theILcdPoint
operand for the union.- See Also:
-
setToIncludePoint3D
void setToIncludePoint3D(double aX, double aY, double aZ) Calculates the 3D extension of thisILcd3DEditableBounds
that contains a givenILcdPoint
. The result contains at least the given point and all the points that are contained in thisILcd3DEditableBounds
(and typically more). ThisILcd3DEditableBounds
object is updated with the result.If this bounds is
undefined
, it is set to the point.- Parameters:
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.
-