Class TLcdGML32Rectangle
- All Implemented Interfaces:
ILcdDataObject,ILcdBounded,ILcdBounds,ILcdShape,ILcd2DEditableBounds,ILcd2DEditableShape,ILcd3DEditableBounds,ILcd3DEditableShape,ILcdCloneable,ILcdDeepCloneable,Serializable,Cloneable
- Since:
- 10.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theexteriorelement.static final TLcdDataPropertyData property that maps to theinterpolationattribute. -
Constructor Summary
ConstructorsConstructorDescriptionTLcdGML32Rectangle(TLcdDataType aType) TLcdGML32Rectangle(TLcdDataType aDataType, ILcdModelReference aModelReference) Constructs a new instance and sets its exterior to a newTLcdGML32LinearRinginitialized with the given model reference.TLcdGML32Rectangle(ILcdModelReference aModelReference) Constructs a new instance and sets its exterior to a newTLcdGML32LinearRinginitialized with the given model reference. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a deep clone of this object.Returns a deep clone of this object.Returns a copy of thisILcdBoundsobject that is also anILcd2DEditableBounds.Returns a copy of thisILcdBoundsobject that is also anILcd3DEditableBounds.booleancontains2D(double aX, double aY) Checks whether thisILcdShapecontains the given point in the 2D space.booleancontains2D(double aArg0, double aArg1, double aArg2, double aArg3) Checks whether thisILcdBoundsobject contains the given rectangle in the 2D space.booleancontains2D(ILcdBounds aArg0) Checks whether thisILcdBoundsobject contains the givenILcdBoundsobject in the 2D space.booleancontains2D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 2D space.booleancontains3D(double aX, double aY, double aZ) Checks whether thisILcdShapecontains the given point in the 3D space.booleancontains3D(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5) Checks whether thisILcdBoundsobject contains the given box in the 3D space.booleancontains3D(ILcdBounds aArg0) Checks whether thisILcdBoundsobject contains the givenILcdBoundsobject in the 3D space.booleancontains3D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 3D space.Returns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.doublegetDepth()Returns the depth of the bounding box.Returns the role value contained in the value of theEXTERIOR_PROPERTYproperty.Returns the focus point of thisILcdShape.doubleReturns the height of the bounding box.Returns the value of the property that maps to theinterpolationattribute.Returns the location of the bounding box (smallest x and y coordinates).doublegetWidth()Returns the width of the bounding box.booleaninteracts2D(double aArg0, double aArg1, double aArg2, double aArg3) Checks whether thisILcdBoundsobject interacts with the given rectangle in the 2D space.booleaninteracts2D(ILcdBounds aArg0) Checks whether thisILcdBoundsobject interacts with the givenILcdBoundsobject in the 2D space.booleaninteracts3D(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5) Checks whether thisILcdBoundsobject interacts with the given box in the 3D space.booleaninteracts3D(ILcdBounds aArg0) Checks whether thisILcdBoundsobject interacts with the givenILcdBoundsobject.booleanIndicates whether this bounds object is valid.voidmove2D(double aX, double aY) Moves thisILcd2DEditableShapeto the given point in the 2D space.voidMoves thisILcd2DEditableShapeto the given point in the 2D space.voidmove3D(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 aArg0) Sets the depth of the bounds (the extent along the z-axis).voidsetExterior(TLcdGML32AbstractRing aValue) Sets the value of the property that maps to theexteriorelement.voidsetHeight(double aHeight) Sets the height of the bounds (the extent along the y-axis).voidSets the value of the property that maps to theinterpolationattribute.voidsetTo2DIntersection(double aArg0, double aArg1, double aArg2, double aArg3) Calculates the 2D intersection of thisILcd2DEditableBoundsobject and a given rectangle.voidsetTo2DIntersection(ILcdBounds aBounds) Calculates the 2D intersection of thisILcd2DEditableBoundsand a givenILcdBounds.voidsetTo2DUnion(double aArg0, double aArg1, double aArg2, double aArg3) Calculates the 2D union of thisILcd2DEditableBoundsobject and a given rectangle.voidsetTo2DUnion(ILcdBounds aArg0) Calculates the 2D union of thisILcd2DEditableBoundsand a givenILcdBounds.voidsetTo3DIntersection(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5) Calculates the 3D intersection of thisILcd3DEditableBoundsand a given box.voidsetTo3DIntersection(ILcdBounds aArg0) Calculates the 3D intersection of thisILcd3DEditableBoundsand a givenILcdBounds.voidsetTo3DUnion(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5) Calculates the 3D union of thisILcd3DEditableBoundsand a given box.voidsetTo3DUnion(ILcdBounds aArg0) Calculates the 3D union of thisILcd3DEditableBoundsand a givenILcdBounds.voidsetToIncludePoint2D(double aArg0, double aArg1) Calculates the 2D extension of thisILcd2DEditableBoundsobject that contains a given point.voidsetToIncludePoint2D(ILcdPoint aArg0) Calculates the 2D extension of thisILcd2DEditableBoundsobject that contains a givenILcdPoint.voidsetToIncludePoint3D(double aArg0, double aArg1, double aArg2) Calculates the 3D extension of thisILcd3DEditableBoundsthat contains a givenILcdPoint.voidsetToIncludePoint3D(ILcdPoint aArg0) Calculates the 3D extension of thisILcd3DEditableBoundsthat contains a givenILcdPoint.voidsetWidth(double aArg0) 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.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.datamodel.TLcdDataObject
getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue, toString
-
Field Details
-
INTERPOLATION_ATTR_PROPERTY
Data property that maps to theinterpolationattribute. The possible values for this property are instances ofELcdGML32SurfaceInterpolation. -
EXTERIOR_PROPERTY
Data property that maps to theexteriorelement. The possible values for this property are instances ofTLcdGML32AbstractRingProperty.
-
-
Constructor Details
-
TLcdGML32Rectangle
public TLcdGML32Rectangle() -
TLcdGML32Rectangle
-
TLcdGML32Rectangle
Constructs a new instance and sets its exterior to a newTLcdGML32LinearRinginitialized with the given model reference.- Parameters:
aModelReference- the model reference of this object
-
TLcdGML32Rectangle
Constructs a new instance and sets its exterior to a newTLcdGML32LinearRinginitialized with the given model reference.- Parameters:
aDataType- the data type for this objectaModelReference- the model reference of this object
-
-
Method Details
-
isDefined
public boolean isDefined()Description copied from interface:ILcdBoundsIndicates whether this bounds object is valid.- If
true, this bounds describes a valid geographic region. - If
false, this bounds does not represent a geographic region, and its location, width, height and depth should not be used.
- Specified by:
isDefinedin interfaceILcdBounds- Returns:
trueif this object describes actual bounds,falseif not
- If
-
cloneAs2DEditableBounds
Description copied from interface:ILcdBoundsReturns a copy of thisILcdBoundsobject that is also anILcd2DEditableBounds. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only.- Specified by:
cloneAs2DEditableBoundsin interfaceILcdBounds- Returns:
- a copy of this
ILcdBoundsobject that is also anILcd2DEditableBounds. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only. - See Also:
-
cloneAs3DEditableBounds
Description copied from interface:ILcdBoundsReturns a copy of thisILcdBoundsobject that is also anILcd3DEditableBounds. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only.- Specified by:
cloneAs3DEditableBoundsin interfaceILcdBounds- Returns:
- a copy of this
ILcdBoundsobject that is also anILcd3DEditableBounds. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only. - See Also:
-
contains2D
public boolean contains2D(double aArg0, double aArg1, double aArg2, double aArg3) Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject contains the given rectangle in the 2D space. Only the first two dimensions of theILcdBoundsobject are considered.If this bounds is
undefined, the result is false.- Specified by:
contains2Din interfaceILcdBounds- Parameters:
aArg0- the x coordinate of the rectangle.aArg1- the y coordinate of the rectangle.aArg2- the width of the rectangle.aArg3- the height of the rectangle.- Returns:
- the boolean result of the containment test.
-
contains2D
Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject contains the givenILcdBoundsobject in the 2D space. Only the first two dimensions of theILcdBoundsobjects are considered.If either bounds is
undefined, the result is false.- Specified by:
contains2Din interfaceILcdBounds- Parameters:
aArg0- theILcdBoundsto compare with.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
public boolean contains3D(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5) Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject contains the given box in the 3D space.If this bounds is
undefined, the result is false.- Specified by:
contains3Din interfaceILcdBounds- Parameters:
aArg0- the x coordinate of the point.aArg1- the y coordinate of the point.aArg2- the z coordinate of the point.aArg3- the width of the box.aArg4- the height of the box.aArg5- the depth of the box.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject contains the givenILcdBoundsobject in the 3D space.If either bounds is
undefined, the result is false.- Specified by:
contains3Din interfaceILcdBounds- Parameters:
aArg0- theILcdBoundsto compare with.- Returns:
- the boolean result of the containment test.
- See Also:
-
getDepth
public double getDepth()Description copied from interface:ILcdBoundsReturns the depth of the bounding box. The depth has to be larger than or equal to 0.- Specified by:
getDepthin interfaceILcdBounds- Returns:
- the depth of the bounding box.
-
getHeight
public double getHeight()Description copied from interface:ILcdBoundsReturns the height of the bounding box. The height has to be larger than or equal to 0.- Specified by:
getHeightin interfaceILcdBounds- Returns:
- the height of the bounding box.
-
getLocation
Description copied from interface:ILcdBoundsReturns the location of the bounding box (smallest x and y coordinates).- Specified by:
getLocationin interfaceILcdBounds- Returns:
- the location of the bounding box.
-
getWidth
public double getWidth()Description copied from interface:ILcdBoundsReturns the width of the bounding box. The width has to be larger than or equal to 0.- Specified by:
getWidthin interfaceILcdBounds- Returns:
- the width of the bounding box.
-
interacts2D
public boolean interacts2D(double aArg0, double aArg1, double aArg2, double aArg3) Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject interacts with the given rectangle in the 2D space. Only the first two dimensions of theILcdBoundsobject are considered.If this bounds is
undefined, the result is false.- Specified by:
interacts2Din interfaceILcdBounds- Parameters:
aArg0- the x coordinate of the rectangle.aArg1- the y coordinate of the rectangle.aArg2- the width of the rectangle.aArg3- the height of the rectangle.- Returns:
trueif thisILcdBoundsobject touches or overlaps to any extent with the given rectangle,falseotherwise.
-
interacts2D
Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject interacts with the givenILcdBoundsobject in the 2D space. Only the first two dimensions of theILcdBoundsobjects are considered.If either bounds is
undefined, the result is false.- Specified by:
interacts2Din interfaceILcdBounds- Parameters:
aArg0- theILcdBoundsto compare with.- Returns:
- the boolean result of the interaction test.
- See Also:
-
interacts3D
public boolean interacts3D(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5) Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject interacts with the given box in the 3D space.If this bounds is
undefined, the result is false.- Specified by:
interacts3Din interfaceILcdBounds- Parameters:
aArg0- the x coordinate of the box.aArg1- the y coordinate of the box.aArg2- the z coordinate of the box.aArg3- the width of the box.aArg4- the height of the box.aArg5- the depth of the box.- Returns:
trueif thisILcdBoundsobject touches or overlaps to any extent with the given box,falseotherwise.
-
interacts3D
Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject interacts with the givenILcdBoundsobject.If either bounds is
undefined, the result is false.- Specified by:
interacts3Din interfaceILcdBounds- Parameters:
aArg0- theILcdBoundsto compare with.- Returns:
- the boolean result of the interaction test.
- See Also:
-
setDepth
public void setDepth(double aArg0) Description copied from interface:ILcd3DEditableBoundsSets the depth of the bounds (the extent along the z-axis).If this bounds is
undefined, it becomes defined.- Specified by:
setDepthin interfaceILcd3DEditableBounds- Parameters:
aArg0- the new depth.
-
setTo2DUnion
public void setTo2DUnion(double aArg0, double aArg1, double aArg2, double aArg3) Description copied from interface:ILcd2DEditableBoundsCalculates 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.- Specified by:
setTo2DUnionin interfaceILcd2DEditableBounds- Parameters:
aArg0- the x coordinate of the rectangle.aArg1- the y coordinate of the rectangle.aArg2- the width of the rectangle.aArg3- the height of the rectangle.
-
setTo2DUnion
Description copied from interface:ILcd2DEditableBoundsCalculates 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.- Specified by:
setTo2DUnionin interfaceILcd2DEditableBounds- Parameters:
aArg0- the otherILcdBoundsoperand for the union.- See Also:
-
setTo3DIntersection
public void setTo3DIntersection(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5) Description copied from interface:ILcd3DEditableBoundsCalculates 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.- Specified by:
setTo3DIntersectionin interfaceILcd3DEditableBounds- Parameters:
aArg0- the x coordinate of the box.aArg1- the y coordinate of the box.aArg2- the z coordinate of the box.aArg3- the width of the box.aArg4- the height of the box.aArg5- the depth of the box.
-
setTo3DIntersection
Description copied from interface:ILcd3DEditableBoundsCalculates 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.- Specified by:
setTo3DIntersectionin interfaceILcd3DEditableBounds- Parameters:
aArg0- the otherILcdBoundsoperand for the intersection.- See Also:
-
setTo3DUnion
public void setTo3DUnion(double aArg0, double aArg1, double aArg2, double aArg3, double aArg4, double aArg5) Description copied from interface:ILcd3DEditableBoundsCalculates 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.- Specified by:
setTo3DUnionin interfaceILcd3DEditableBounds- Parameters:
aArg0- the x coordinate of the box.aArg1- the y coordinate of the box.aArg2- the z coordinate of the box.aArg3- the width of the box.aArg4- the height of the box.aArg5- the depth of the box.
-
setTo3DUnion
Description copied from interface:ILcd3DEditableBoundsCalculates 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.- Specified by:
setTo3DUnionin interfaceILcd3DEditableBounds- Parameters:
aArg0- the otherILcdBoundsoperand for the union.- See Also:
-
setToIncludePoint2D
public void setToIncludePoint2D(double aArg0, double aArg1) Description copied from interface:ILcd2DEditableBoundsCalculates 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.- Specified by:
setToIncludePoint2Din interfaceILcd2DEditableBounds- Parameters:
aArg0- the x coordinate of the point.aArg1- the y coordinate of the point.
-
setToIncludePoint2D
Description copied from interface:ILcd2DEditableBoundsCalculates 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.- Specified by:
setToIncludePoint2Din interfaceILcd2DEditableBounds- Parameters:
aArg0- the point that should be inside (or at the edge) after the extension of the bounds.- See Also:
-
setToIncludePoint3D
public void setToIncludePoint3D(double aArg0, double aArg1, double aArg2) Description copied from interface:ILcd3DEditableBoundsCalculates 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.- Specified by:
setToIncludePoint3Din interfaceILcd3DEditableBounds- Parameters:
aArg0- the x coordinate of the point.aArg1- the y coordinate of the point.aArg2- the z coordinate of the point.
-
setToIncludePoint3D
Description copied from interface:ILcd3DEditableBoundsCalculates 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.- Specified by:
setToIncludePoint3Din interfaceILcd3DEditableBounds- Parameters:
aArg0- theILcdPointoperand for the union.- See Also:
-
setWidth
public void setWidth(double aArg0) Description copied from interface:ILcd2DEditableBoundsSets the width of the bounds (the extent along the x-axis).If this bounds was
undefined, it becomes defined.- Specified by:
setWidthin interfaceILcd2DEditableBounds- Parameters:
aArg0- the new width.
-
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:
-
move3D
public void move3D(double aX, double aY, double aZ) 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:
aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.
-
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.
-
move2D
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 theILcdShapeand theILcdPointare 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:
aPoint- theILcdPointto move to.- See Also:
-
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.
-
translate2D
public void translate2D(double aDeltaX, double aDeltaY) Description copied from interface:ILcd2DEditableBoundsTranslates 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 interfaceILcd2DEditableBounds- Specified by:
translate2Din interfaceILcd2DEditableShape- Parameters:
aDeltaX- the x coordinate of the translation vector.aDeltaY- the y coordinate of the translation vector.
-
getFocusPoint
Description copied from interface:ILcdShapeReturns the focus point of thisILcdShape.- Specified by:
getFocusPointin interfaceILcdShape- Overrides:
getFocusPointin classTLcdGML32AbstractSurfacePatch- Returns:
- the focus point of this
ILcdShape.
-
contains2D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 2D space. Only the first two dimensions of theILcdShapeand theILcdPointare considered.- Specified by:
contains2Din interfaceILcdShape- Overrides:
contains2Din classTLcdGML32AbstractSurfacePatch- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains2D
public boolean contains2D(double aX, double aY) Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the given point in the 2D space. Only the first two dimensions of theILcdShapeare considered.- Specified by:
contains2Din interfaceILcdShape- Overrides:
contains2Din classTLcdGML32AbstractSurfacePatch- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.- Returns:
- the boolean result of the containment test.
-
contains3D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 3D space.- Specified by:
contains3Din interfaceILcdShape- Overrides:
contains3Din classTLcdGML32AbstractSurfacePatch- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
public boolean contains3D(double aX, double aY, double aZ) Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the given point in the 3D space.- Specified by:
contains3Din interfaceILcdShape- Overrides:
contains3Din classTLcdGML32AbstractSurfacePatch- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.- Returns:
- the boolean result of the containment test.
-
setHeight
public void setHeight(double aHeight) Description copied from interface:ILcd2DEditableBoundsSets the height of the bounds (the extent along the y-axis).If this bounds was
undefined, it becomes defined.- Specified by:
setHeightin interfaceILcd2DEditableBounds- Parameters:
aHeight- the new height.
-
setTo2DIntersection
Description copied from interface:ILcd2DEditableBoundsCalculates 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.- Specified by:
setTo2DIntersectionin interfaceILcd2DEditableBounds- Parameters:
aBounds- the otherILcdBoundsoperand for the intersection.- See Also:
-
setTo2DIntersection
public void setTo2DIntersection(double aArg0, double aArg1, double aArg2, double aArg3) Description copied from interface:ILcd2DEditableBoundsCalculates 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.- Specified by:
setTo2DIntersectionin interfaceILcd2DEditableBounds- Parameters:
aArg0- the x coordinate of the rectangle.aArg1- the y coordinate of the rectangle.aArg2- the width of the rectangle.aArg3- the height of the rectangle.
-
getBounds
Description copied from interface:ILcdBoundedReturns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an
undefinedbounds. You can create undefined bounds using the default constructors ofTLcdLonLatBoundsorTLcdXYBounds.- Specified by:
getBoundsin interfaceILcdBounded- Overrides:
getBoundsin classTLcdGML32AbstractSurfacePatch- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
clone
Description copied from class:TLcdDataObjectReturns a deep clone of this object. This method delegates toTLcdDataObject.clone(Map).- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classTLcdDataObject- Returns:
- a deep clone of this object
- See Also:
-
clone
Description copied from class:TLcdDataObjectReturns a deep clone of this object. If the clone is not already present in the dictionary, a new instance if created as follows:- First, a new instance is created using Java's clone() mechanism.
- Then, all properties of this object are cloned and set on the newly created
instance. A property is cloned as follows:
- If the property value is an
ILcdDataObject, the value is cloned by first creating a new instance via thevalue.getDataType().newInstance()method, and then cloning its properties one by one. - If the value implements
ILcdDeepCloneableorILcdCloneablethen this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clonein interfaceILcdDeepCloneable- Overrides:
clonein classTLcdDataObject- Parameters:
aObjectDictionary- the Object dictionary that keeps track of the objects for which a clone has already been made, and their corresponding clone Object.- Returns:
- a deep clone of this object
-
getInterpolationAttr
Returns the value of the property that maps to theinterpolationattribute.- Returns:
- the value of the
INTERPOLATION_ATTR_PROPERTYproperty.
-
setInterpolationAttr
Sets the value of the property that maps to theinterpolationattribute.- Parameters:
aValue- the value to set for theINTERPOLATION_ATTR_PROPERTYproperty.
-
getExterior
Returns the role value contained in the value of theEXTERIOR_PROPERTYproperty. Returnsnullif the value of theEXTERIOR_PROPERTYproperty isnull.A boundary of a surface consists of a number of rings. In the normal 2D case, one of these rings is distinguished as being the exterior boundary. In a general manifold this is not always possible, in which case all boundaries shall be listed as interior boundaries, and the exterior will be empty.
- Returns:
- the role value of the
EXTERIOR_PROPERTYproperty. - See Also:
-
setExterior
Sets the value of the property that maps to theexteriorelement. to a new instance of the association classTLcdGML32AbstractRingPropertyinitialized with the given role value. In case the given role value isnull, theEXTERIOR_PROPERTYproperty is set tonull.A boundary of a surface consists of a number of rings. In the normal 2D case, one of these rings is distinguished as being the exterior boundary. In a general manifold this is not always possible, in which case all boundaries shall be listed as interior boundaries, and the exterior will be empty.
- Parameters:
aValue- the role value to set for theEXTERIOR_PROPERTYproperty.
-