Interface ILcd2DEditableBounds
- All Superinterfaces:
Cloneable,ILcd2DEditableShape,ILcdBounded,ILcdBounds,ILcdCloneable,ILcdShape,Serializable
- All Known Subinterfaces:
ILcd3DEditableBounds
- All Known Implementing Classes:
ALcd2DEditableBounds,ALcd3DEditableBounds,TLcdCGMRectangle,TLcdGML2Box,TLcdGML31Box,TLcdGML31Envelope,TLcdGML31EnvelopeWithTimePeriod,TLcdGML31Rectangle,TLcdGML32Envelope,TLcdGML32EnvelopeWithTimePeriod,TLcdGML32Rectangle,TLcdLonLatBounds,TLcdLonLatFloatBounds,TLcdLonLatHeightBounds,TLcdXYBounds,TLcdXYFloatBounds,TLcdXYZBounds,TLcdXYZFloatBounds
ILcd2DEditableBounds object is an ILcdBounds object that can be changed in two
dimensions.-
Method Summary
Modifier and TypeMethodDescriptionvoidmove2D(double aX, double aY) Moves thisILcd2DEditableShapeto the given point in the 2D space.voidMoves thisILcd2DEditableShapeto the given point in the 2D space.voidsetHeight(double aHeight) Sets the height of the bounds (the extent along the y-axis).voidsetTo2DIntersection(double aX, double aY, double aWidth, double aHeight) Calculates the 2D intersection of thisILcd2DEditableBoundsobject and a given rectangle.voidsetTo2DIntersection(ILcdBounds aBounds) Calculates the 2D intersection of thisILcd2DEditableBoundsand a givenILcdBounds.voidsetTo2DUnion(double aX, double aY, double aWidth, double aHeight) Calculates the 2D union of thisILcd2DEditableBoundsobject and a given rectangle.voidsetTo2DUnion(ILcdBounds aBounds) Calculates the 2D union of thisILcd2DEditableBoundsand a givenILcdBounds.voidsetToIncludePoint2D(double aX, double aY) Calculates the 2D extension of thisILcd2DEditableBoundsobject that contains a given point.voidsetToIncludePoint2D(ILcdPoint aPoint) Calculates the 2D extension of thisILcd2DEditableBoundsobject that contains a givenILcdPoint.voidsetWidth(double aWidth) Sets the width of the bounds (the extent along the x-axis).voidtranslate2D(double aDeltaX, double aDeltaY) Translates thisILcd2DEditableShapefrom its current position over the given translation vector in the 2D space.Methods 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
-
move2D
Moves 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 theILcdShapeand theILcdPointare considered. The third dimension is left unchanged.If this bounds was
undefined, it becomes defined after the move.- Specified by:
move2Din interfaceILcd2DEditableShape- Parameters:
aPoint- theILcdPointto move to.- See Also:
-
move2D
void move2D(double aX, double aY) Moves 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 interfaceILcd2DEditableShape- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.
-
translate2D
void translate2D(double aDeltaX, double aDeltaY) Translates thisILcd2DEditableShapefrom its current position over the given translation vector in the 2D space. Only the first two dimensions of theILcdShapeare considered. The third dimension is left unchanged.If this bounds was
undefined, it becomes defined after the translation.- Specified by:
translate2Din interfaceILcd2DEditableShape- Parameters:
aDeltaX- the x coordinate of the translation vector.aDeltaY- the y coordinate of the translation vector.
-
setWidth
void setWidth(double aWidth) Sets the width of the bounds (the extent along the x-axis).If this bounds was
undefined, it becomes defined.- Parameters:
aWidth- the new width.
-
setHeight
void setHeight(double aHeight) Sets the height of the bounds (the extent along the y-axis).If this bounds was
undefined, it becomes defined.- Parameters:
aHeight- the new height.
-
setTo2DIntersection
Calculates the 2D intersection of thisILcd2DEditableBoundsand a givenILcdBounds. The result contains at least all the points that are contained in bothILcdBoundsobjects. Only the first two dimensions of theILcdBoundsobjects are considered. ThisILcd2DEditableBoundsobject is updated with the result. Its third dimension is left unchanged.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:
-
setTo2DIntersection
void setTo2DIntersection(double aX, double aY, double aWidth, double aHeight) Calculates the 2D intersection of thisILcd2DEditableBoundsobject and a given rectangle. The result contains at least all the points that are contained both in thisILcdBoundsobjects and in the rectangle. Only the first two dimensions of thisILcdBoundsobject are considered. It is updated with the result. Its third dimension is left unchanged.If this bounds is
undefined, nothing changes.- Parameters:
aX- the x coordinate of the rectangle.aY- the y coordinate of the rectangle.aWidth- the width of the rectangle.aHeight- the height of the rectangle.
-
setTo2DUnion
Calculates the 2D union of thisILcd2DEditableBoundsand a givenILcdBounds. The result contains at least all the points that are contained in either of theILcdBoundsobjects (and typically more). Only the first two dimensions of theILcdBoundsobjects are considered. ThisILcd2DEditableBoundsobject is updated with the result. Its third dimension is left unchanged.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:
-
setTo2DUnion
void setTo2DUnion(double aX, double aY, double aWidth, double aHeight) Calculates the 2D union of thisILcd2DEditableBoundsobject and a given rectangle. The result contains at least all the points that are contained in theILcdBoundsobject and in the rectangle (and typically more). Only the first two dimensions of thisILcdBoundsobject are considered. It is updated with the result. Its third dimension is left unchanged.If this bounds is
undefined, it is set to the arguments.- Parameters:
aX- the x coordinate of the rectangle.aY- the y coordinate of the rectangle.aWidth- the width of the rectangle.aHeight- the height of the rectangle.
-
setToIncludePoint2D
Calculates the 2D extension of thisILcd2DEditableBoundsobject that contains a givenILcdPoint. The result contains at least the given point and all the points that are contained in thisILcd2DEditableBounds(and typically more). Only the first two dimensions of thisILcdBoundsobject and theILcdPointare considered. ThisILcdBoundsobject is updated with the result. Its third dimension is left unchanged.If this bounds is
undefined, it is set to the point.- Parameters:
aPoint- the point that should be inside (or at the edge) after the extension of the bounds.- See Also:
-
setToIncludePoint2D
void setToIncludePoint2D(double aX, double aY) Calculates the 2D extension of thisILcd2DEditableBoundsobject that contains a given point. The result contains at least the given point and all the points that are contained in thisILcd2DEditableBounds(and typically more). Only the first two dimensions of thisILcdBoundsobject are considered. It is updated with the result. Its third dimension is left unchanged.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.
-