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 TypeMethodDescriptionvoidmove3D(double aX, double aY, double aZ) Moves thisILcd3DEditableShapeto the given point in the 3D space.voidMoves thisILcd3DEditableShapeto the given point in the 3D space.voidsetDepth(double aDepth) Sets the depth of the bounds (the extent along the z-axis).voidsetTo3DIntersection(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Calculates the 3D intersection of thisILcd3DEditableBoundsand a given box.voidsetTo3DIntersection(ILcdBounds aBounds) Calculates the 3D intersection of thisILcd3DEditableBoundsand a givenILcdBounds.voidsetTo3DUnion(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Calculates the 3D union of thisILcd3DEditableBoundsand a given box.voidsetTo3DUnion(ILcdBounds aBounds) Calculates the 3D union of thisILcd3DEditableBoundsand a givenILcdBounds.voidsetToIncludePoint3D(double aX, double aY, double aZ) Calculates the 3D extension of thisILcd3DEditableBoundsthat contains a givenILcdPoint.voidsetToIncludePoint3D(ILcdPoint aPoint) Calculates the 3D extension of thisILcd3DEditableBoundsthat contains a givenILcdPoint.voidtranslate3D(double aDeltaX, double aDeltaY, double aDeltaZ) Translates thisILcd3DEditableShapefrom 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, translate2DMethods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods 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, isDefinedMethods inherited from interface com.luciad.util.ILcdCloneable
cloneMethods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Method Details
-
move3D
Moves thisILcd3DEditableShapeto 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:
move3Din interfaceILcd3DEditableShape- Parameters:
aPoint- theILcdPointto move to.- See Also:
-
move3D
void move3D(double aX, double aY, double aZ) Moves thisILcd3DEditableShapeto 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:
move3Din 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 thisILcd3DEditableShapefrom its current position over the given translation vector in the 3D space.If this bounds is
undefined, it becomes defined.- Specified by:
translate3Din 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 thisILcd3DEditableBoundsand a givenILcdBounds. The result contains at least all the points that are contained in bothILcdBoundsobjects. ThisILcd3DEditableBoundsobject 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 otherILcdBoundsoperand 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 thisILcd3DEditableBoundsand a given box. The result contains at least all the points that are contained both in theILcdBoundsobject and in the box. ThisILcd3DEditableBoundsobject 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 thisILcd3DEditableBoundsand a givenILcdBounds. The result contains at least all the points that are contained in either or both of theILcdBoundsobjects (and typically more). ThisILcd3DEditableBoundsobject 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 otherILcdBoundsoperand 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 thisILcd3DEditableBoundsand a given box. The result contains at least all the points that are contained in theILcdBoundsobjects and in the box (and typically more). ThisILcd3DEditableBoundsobject 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 thisILcd3DEditableBoundsthat contains a givenILcdPoint. The result contains at least the given point and all the points that are contained in thisILcd3DEditableBounds(and typically more). ThisILcd3DEditableBoundsobject is updated with the result.If this bounds is
undefined, it is set to the point.- Parameters:
aPoint- theILcdPointoperand for the union.- See Also:
-
setToIncludePoint3D
void setToIncludePoint3D(double aX, double aY, double aZ) Calculates the 3D extension of thisILcd3DEditableBoundsthat contains a givenILcdPoint. The result contains at least the given point and all the points that are contained in thisILcd3DEditableBounds(and typically more). ThisILcd3DEditableBoundsobject 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.
-