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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmove2D(double aX, double aY) Moves thisILcd2DEditableShapeto the given point in the 2D space.voidMoves thisILcd3DEditableShapeto the given point in the 3D space.voidsetTo3DIntersection(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Calculates the 3D intersection of thisALcd3DEditableBoundsand a given rectangle in the cartesian plane.voidsetTo3DIntersection(ILcdBounds aBounds) Calculates the 3D intersection of thisALcd3DEditableBoundsand a givenILcdBoundsin the cartesian plane.voidsetTo3DUnion(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Calculates the 3D union of thisALcd3DEditableBoundsand a given rectangle in the cartesian plane.voidsetTo3DUnion(ILcdBounds aBounds) Calculates the 3D union of thisALcd3DEditableBoundsand a givenILcdBoundsin the cartesian plane.voidsetToIncludePoint3D(double aX, double aY, double aZ) Calculates the 3D extension of thisILcd3DEditableBoundsobject that contains a given point, in the cartesian plane.voidsetToIncludePoint3D(ILcdPoint aPoint) Calculates the 3D extension of thisILcd3DEditableBoundsobject that contains a givenILcdPoint, in the cartesian plane.toString()voidtranslate3D(double aDeltaX, double aDeltaY, double aDeltaZ) Translates thisILcd3DEditableShapefrom 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, translate2DMethods inherited from class com.luciad.shape.ALcdBounds
contains2D, contains2D, contains2D, contains3D, contains3D, contains3D, equals, fromDomainObject, getBounds, getFocusPoint, hashCode, interacts2D, interacts2D, interacts3D, interacts3D, isDefined, isDefinedMethods inherited from class com.luciad.shape.ALcdShape
clone, contains2D, contains3DMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableBounds
move2D, setHeight, setTo2DIntersection, setTo2DIntersection, setTo2DUnion, setTo2DUnion, setToIncludePoint2D, setToIncludePoint2D, setWidth, translate2DMethods inherited from interface com.luciad.shape.shape3D.ILcd3DEditableBounds
move3D, setDepthMethods 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
-
Constructor Details
-
ALcd3DEditableBounds
public ALcd3DEditableBounds()
-
-
Method Details
-
move2D
public void move2D(double aX, double aY) Description copied from interface:ILcd2DEditableBoundsMoves thisILcd2DEditableShapeto 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 theILcdShapeare considered. The third dimension is left unchanged.If this bounds was
undefined, it becomes defined after the move.- Specified by:
move2Din interfaceILcd2DEditableBounds- Specified by:
move2Din interfaceILcd2DEditableShape- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.
-
move3D
Description copied from interface:ILcd3DEditableBoundsMoves 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 interfaceILcd3DEditableBounds- Specified by:
move3Din interfaceILcd3DEditableShape- Parameters:
aPoint- theILcdPointto move to.- See Also:
-
translate3D
public void translate3D(double aDeltaX, double aDeltaY, double aDeltaZ) Description copied from interface:ILcd3DEditableBoundsTranslates thisILcd3DEditableShapefrom its current position over the given translation vector in the 3D space.If this bounds is
undefined, it becomes defined.- Specified by:
translate3Din interfaceILcd3DEditableBounds- 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.
-
setTo3DIntersection
Calculates the 3D intersection of thisALcd3DEditableBoundsand a givenILcdBoundsin the cartesian plane.- Specified by:
setTo3DIntersectionin interfaceILcd3DEditableBounds- Parameters:
aBounds- the otherILcdBoundsoperand 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 thisALcd3DEditableBoundsand a given rectangle in the cartesian plane.- Specified by:
setTo3DIntersectionin 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 thisALcd3DEditableBoundsand a givenILcdBoundsin the cartesian plane.- Specified by:
setTo3DUnionin interfaceILcd3DEditableBounds- Parameters:
aBounds- the otherILcdBoundsoperand 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 thisALcd3DEditableBoundsand a given rectangle in the cartesian plane.- Specified by:
setTo3DUnionin 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 thisILcd3DEditableBoundsobject that contains a givenILcdPoint, in the cartesian plane.- Specified by:
setToIncludePoint3Din interfaceILcd3DEditableBounds- Parameters:
aPoint- theILcdPointoperand for the union.- See Also:
-
setToIncludePoint3D
public void setToIncludePoint3D(double aX, double aY, double aZ) Calculates the 3D extension of thisILcd3DEditableBoundsobject that contains a given point, in the cartesian plane.- Specified by:
setToIncludePoint3Din 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:
toStringin classALcd2DEditableBounds
-