Class TLcdGML31Envelope
- All Implemented Interfaces:
ILcdDataObject,ILcdBounded,ILcdBounds,ILcdShape,ILcd2DEditableBounds,ILcd2DEditableShape,ILcd3DEditableBounds,ILcd3DEditableShape,ILcdCloneable,ILcdDeepCloneable,ILcdFeatured,ILcdSelfDescribedFeatured,Serializable,Cloneable
- Direct Known Subclasses:
TLcdGML31Box,TLcdGML31EnvelopeWithTimePeriod
Domain class for the GML envelope.
Envelope defines an extent using a pair of positions defining opposite corners in arbitrary dimensions. The first direct position is the "lower corner" (a coordinate position consisting of all the minimal ordinates for each dimension for all points within the envelope), the second one the "upper corner" (a coordinate position consisting of all the maximal ordinates for each dimension for all points within the envelope).
The use of the properties "coordinates" and "pos" has been deprecated. The explicitly named properties "lowerCorner" and "upperCorner" shall be used instead.
- Since:
- 10.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyProperty that maps on thecoordelement.static final TLcdDataPropertyProperty that maps on thecoordinateselement.static final TLcdDataPropertyProperty that maps on thelowerCornerelement.static final TLcdDataPropertyProperty that maps on theposelement.static final TLcdDataPropertyProperty that maps on theSRSReferenceGroupattributes.static final TLcdDataPropertyProperty that maps on theupperCornerelement. -
Constructor Summary
ConstructorsConstructorDescriptionTLcdGML31Envelope(TLcdDataType aType) TLcdGML31Envelope(TLcdDataType aDataType, ILcdModelReference aSrs) Constructs an envelope and initializes its model reference (srs).Constructs an envelope and initializes its model reference (srs). -
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 aX, double aY, double aWidth, double aHeight) Checks whether thisILcdBoundsobject contains the given rectangle in the 2D space.booleancontains2D(ILcdBounds aBounds) 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 aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Checks whether thisILcdBoundsobject contains the given box in the 3D space.booleancontains3D(ILcdBounds aBounds) 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.getCoord()Gets the value of theCOORD_PROPERTYproperty.Gets the value of theCOORDINATES_PROPERTYproperty.doublegetDepth()Returns the depth of the bounding box.Returns the focus point of thisILcdShape.doubleReturns the height of the bounding box.Returns the location of the bounding box (smallest x and y coordinates).Gets the value of theLOWER_CORNER_PROPERTYproperty.getPos()Gets the value of thePOS_PROPERTYproperty.getSrs()Gets the value of theSRS_PROPERTYproperty.Gets the value of theUPPER_CORNER_PROPERTYproperty.doublegetWidth()Returns the width of the bounding box.booleaninteracts2D(double aX, double aY, double aWidth, double aHeight) Checks whether thisILcdBoundsobject interacts with the given rectangle in the 2D space.booleaninteracts2D(ILcdBounds aBounds) Checks whether thisILcdBoundsobject interacts with the givenILcdBoundsobject in the 2D space.booleaninteracts3D(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Checks whether thisILcdBoundsobject interacts with the given box in the 3D space.booleaninteracts3D(ILcdBounds aBounds) 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.voidsetCoordinates(TLcdGML31Coordinates aValue) Sets the value of theCOORDINATES_PROPERTYproperty.voidsetDepth(double aDepth) Sets the depth of the bounds (the extent along the z-axis).voidsetHeight(double aHeight) Sets the height of the bounds (the extent along the y-axis).voidSets the value of theLOWER_CORNER_PROPERTYproperty.voidsetSrs(ILcdModelReference aValue) Sets the value of theSRS_PROPERTYproperty.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.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.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.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.voidSets the value of theUPPER_CORNER_PROPERTYproperty.voidsetValue(TLcdDataProperty aProperty, Object aValue) Sets the value of the given property for this data object.voidsetWidth(double aWidth) Sets the width of the bounds (the extent along the x-axis).toString()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.TLcdFeaturedDataObject
canSetFeature, getFeature, getFeature, getFeatureCount, getFeaturedDescriptor, setFeature, setFeatureMethods inherited from class com.luciad.datamodel.TLcdDataObject
getDataType, getValue, getValue, hasValue, hasValue, setValue
-
Field Details
-
SRS_PROPERTY
Property that maps on theSRSReferenceGroupattributes. Acceptable values for this property are instances ofILcdModelReference. -
LOWER_CORNER_PROPERTY
Property that maps on thelowerCornerelement. Acceptable values for this property are instances ofcom.luciad.format.gml31.model.TLcdGML31DirectPosition. -
UPPER_CORNER_PROPERTY
Property that maps on theupperCornerelement. Acceptable values for this property are instances ofcom.luciad.format.gml31.model.TLcdGML31DirectPosition. -
POS_PROPERTY
Property that maps on theposelement. Acceptable values for this property are instances ofjava.util.List<com.luciad.format.gml31.model.TLcdGML31DirectPosition>. -
COORDINATES_PROPERTY
Property that maps on thecoordinateselement. Acceptable values for this property are instances ofcom.luciad.format.gml31.model.TLcdGML31Coordinates. -
COORD_PROPERTY
Property that maps on thecoordelement. Acceptable values for this property are instances ofjava.util.List<com.luciad.format.gml31.model.TLcdGML31Coord>.
-
-
Constructor Details
-
TLcdGML31Envelope
public TLcdGML31Envelope() -
TLcdGML31Envelope
-
TLcdGML31Envelope
Constructs an envelope and initializes its model reference (srs).- Parameters:
aSrs- the model reference for this object- See Also:
-
TLcdGML31Envelope
Constructs an envelope and initializes its model reference (srs).- Parameters:
aDataType- the data type for this objectaSrs- the model reference for this object- See Also:
-
-
Method Details
-
getSrs
Gets the value of theSRS_PROPERTYproperty.- Returns:
- the value of the
SRS_PROPERTYproperty.
-
setSrs
Sets the value of theSRS_PROPERTYproperty.- Parameters:
aValue- the value to set for theSRS_PROPERTYproperty.
-
getLowerCorner
Gets the value of theLOWER_CORNER_PROPERTYproperty.- Returns:
- the value of the
LOWER_CORNER_PROPERTYproperty.
-
setLowerCorner
Sets the value of theLOWER_CORNER_PROPERTYproperty.- Parameters:
aValue- the value to set for theLOWER_CORNER_PROPERTYproperty.
-
getUpperCorner
Gets the value of theUPPER_CORNER_PROPERTYproperty.- Returns:
- the value of the
UPPER_CORNER_PROPERTYproperty.
-
setUpperCorner
Sets the value of theUPPER_CORNER_PROPERTYproperty.- Parameters:
aValue- the value to set for theUPPER_CORNER_PROPERTYproperty.
-
getPos
Gets the value of thePOS_PROPERTYproperty.- Returns:
- the value of the
POS_PROPERTYproperty.
-
getCoordinates
Gets the value of theCOORDINATES_PROPERTYproperty.- Returns:
- the value of the
COORDINATES_PROPERTYproperty.
-
setCoordinates
Sets the value of theCOORDINATES_PROPERTYproperty.- Parameters:
aValue- the value to set for theCOORDINATES_PROPERTYproperty.
-
setValue
Description copied from interface:ILcdDataObjectSets the value of the given property for this data object. The implementation is allowed to throw an exception if the given value can't be set.
The given property must be declared in thedata object's typeor in one of its super types. In other words, getDataType().getProperties().contains( aProperty ) should always be true. Otherwise, the implementation should throw anIllegalArgumentException.- Specified by:
setValuein interfaceILcdDataObject- Overrides:
setValuein classTLcdDataObject- Parameters:
aProperty- the property for which the value is to be setaValue- the value to set- See Also:
-
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
-
setWidth
public void setWidth(double aWidth) 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:
aWidth- the new width.
-
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.
-
setDepth
public void setDepth(double aDepth) 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:
aDepth- the new depth.
-
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.
-
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.
-
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.
-
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.
-
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
-
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.
-
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.
-
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:
aBounds- the otherILcdBoundsoperand for the intersection.- See Also:
-
setTo3DIntersection
public void setTo3DIntersection(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) 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:
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
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:
aBounds- the otherILcdBoundsoperand for the union.- See Also:
-
setTo3DUnion
public void setTo3DUnion(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) 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:
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
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:
aPoint- theILcdPointoperand for the union.- See Also:
-
setToIncludePoint3D
public void setToIncludePoint3D(double aX, double aY, double aZ) 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:
aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.
-
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 aX, double aY, double aWidth, double aHeight) 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:
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
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:
aBounds- the otherILcdBoundsoperand for the union.- See Also:
-
setTo2DUnion
public void setTo2DUnion(double aX, double aY, double aWidth, double aHeight) 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:
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
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:
aPoint- the point that should be inside (or at the edge) after the extension of the bounds.- See Also:
-
setToIncludePoint2D
public void setToIncludePoint2D(double aX, double aY) 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:
aX- the x coordinate of the point.aY- the y coordinate of the point.
-
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
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:
aBounds- theILcdBoundsto compare with.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains2D
public boolean contains2D(double aX, double aY, double aWidth, double aHeight) 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:
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.- Returns:
- the boolean result of the containment test.
-
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:
aBounds- theILcdBoundsto compare with.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
public boolean contains3D(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) 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:
aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.aWidth- the width of the box.aHeight- the height of the box.aDepth- the depth of the box.- Returns:
- the boolean result of the containment test.
- See Also:
-
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:
aBounds- theILcdBoundsto compare with.- Returns:
- the boolean result of the interaction test.
- See Also:
-
interacts2D
public boolean interacts2D(double aX, double aY, double aWidth, double aHeight) 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:
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.- Returns:
trueif thisILcdBoundsobject touches or overlaps to any extent with the given rectangle,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:
aBounds- theILcdBoundsto compare with.- Returns:
- the boolean result of the interaction test.
- See Also:
-
interacts3D
public boolean interacts3D(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) 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:
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.- Returns:
trueif thisILcdBoundsobject touches or overlaps to any extent with the given box,falseotherwise.
-
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- 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- 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- 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- 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.
-
getFocusPoint
Description copied from interface:ILcdShapeReturns the focus point of thisILcdShape.- Specified by:
getFocusPointin interfaceILcdShape- Returns:
- the focus point of this
ILcdShape.
-
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- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
toString
- Overrides:
toStringin classTLcdDataObject
-
getCoord
Gets the value of theCOORD_PROPERTYproperty.Deprecated with GML 3.0 and included for backwards compatibility with GML 2. Use the "pos" element instead.
- Returns:
- the value of the
COORD_PROPERTYproperty.
-