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
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Property that maps on thecoord
element.static final TLcdDataProperty
Property that maps on thecoordinates
element.static final TLcdDataProperty
Property that maps on thelowerCorner
element.static final TLcdDataProperty
Property that maps on thepos
element.static final TLcdDataProperty
Property that maps on theSRSReferenceGroup
attributes.static final TLcdDataProperty
Property that maps on theupperCorner
element. -
Constructor Summary
ConstructorDescriptionTLcdGML31Envelope
(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 thisILcdBounds
object that is also anILcd2DEditableBounds
.Returns a copy of thisILcdBounds
object that is also anILcd3DEditableBounds
.boolean
contains2D
(double aX, double aY) Checks whether thisILcdShape
contains the given point in the 2D space.boolean
contains2D
(double aX, double aY, double aWidth, double aHeight) Checks whether thisILcdBounds
object contains the given rectangle in the 2D space.boolean
contains2D
(ILcdBounds aBounds) Checks whether thisILcdBounds
object contains the givenILcdBounds
object in the 2D space.boolean
contains2D
(ILcdPoint aPoint) Checks whether thisILcdShape
contains the givenILcdPoint
in the 2D space.boolean
contains3D
(double aX, double aY, double aZ) Checks whether thisILcdShape
contains the given point in the 3D space.boolean
contains3D
(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Checks whether thisILcdBounds
object contains the given box in the 3D space.boolean
contains3D
(ILcdBounds aBounds) Checks whether thisILcdBounds
object contains the givenILcdBounds
object in the 3D space.boolean
contains3D
(ILcdPoint aPoint) Checks whether thisILcdShape
contains the givenILcdPoint
in the 3D space.Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.getCoord()
Gets the value of theCOORD_PROPERTY
property.Gets the value of theCOORDINATES_PROPERTY
property.double
getDepth()
Returns the depth of the bounding box.Returns the focus point of thisILcdShape
.double
Returns the height of the bounding box.Returns the location of the bounding box (smallest x and y coordinates).Gets the value of theLOWER_CORNER_PROPERTY
property.getPos()
Gets the value of thePOS_PROPERTY
property.getSrs()
Gets the value of theSRS_PROPERTY
property.Gets the value of theUPPER_CORNER_PROPERTY
property.double
getWidth()
Returns the width of the bounding box.boolean
interacts2D
(double aX, double aY, double aWidth, double aHeight) Checks whether thisILcdBounds
object interacts with the given rectangle in the 2D space.boolean
interacts2D
(ILcdBounds aBounds) Checks whether thisILcdBounds
object interacts with the givenILcdBounds
object in the 2D space.boolean
interacts3D
(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Checks whether thisILcdBounds
object interacts with the given box in the 3D space.boolean
interacts3D
(ILcdBounds aBounds) Checks whether thisILcdBounds
object interacts with the givenILcdBounds
object.boolean
Indicates whether this bounds object is valid.void
move2D
(double aX, double aY) Moves thisILcd2DEditableShape
to the given point in the 2D space.void
Moves thisILcd2DEditableShape
to the given point in the 2D space.void
move3D
(double aX, double aY, double aZ) Moves thisILcd3DEditableShape
to the given point in the 3D space.void
Moves thisILcd3DEditableShape
to the given point in the 3D space.void
setCoordinates
(TLcdGML31Coordinates aValue) Sets the value of theCOORDINATES_PROPERTY
property.void
setDepth
(double aDepth) Sets the depth of the bounds (the extent along the z-axis).void
setHeight
(double aHeight) Sets the height of the bounds (the extent along the y-axis).void
Sets the value of theLOWER_CORNER_PROPERTY
property.void
setSrs
(ILcdModelReference aValue) Sets the value of theSRS_PROPERTY
property.void
setTo2DIntersection
(double aX, double aY, double aWidth, double aHeight) Calculates the 2D intersection of thisILcd2DEditableBounds
object and a given rectangle.void
setTo2DIntersection
(ILcdBounds aBounds) Calculates the 2D intersection of thisILcd2DEditableBounds
and a givenILcdBounds
.void
setTo2DUnion
(double aX, double aY, double aWidth, double aHeight) Calculates the 2D union of thisILcd2DEditableBounds
object and a given rectangle.void
setTo2DUnion
(ILcdBounds aBounds) Calculates the 2D union of thisILcd2DEditableBounds
and a givenILcdBounds
.void
setTo3DIntersection
(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Calculates the 3D intersection of thisILcd3DEditableBounds
and a given box.void
setTo3DIntersection
(ILcdBounds aBounds) Calculates the 3D intersection of thisILcd3DEditableBounds
and a givenILcdBounds
.void
setTo3DUnion
(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Calculates the 3D union of thisILcd3DEditableBounds
and a given box.void
setTo3DUnion
(ILcdBounds aBounds) Calculates the 3D union of thisILcd3DEditableBounds
and a givenILcdBounds
.void
setToIncludePoint2D
(double aX, double aY) Calculates the 2D extension of thisILcd2DEditableBounds
object that contains a given point.void
setToIncludePoint2D
(ILcdPoint aPoint) Calculates the 2D extension of thisILcd2DEditableBounds
object that contains a givenILcdPoint
.void
setToIncludePoint3D
(double aX, double aY, double aZ) Calculates the 3D extension of thisILcd3DEditableBounds
that contains a givenILcdPoint
.void
setToIncludePoint3D
(ILcdPoint aPoint) Calculates the 3D extension of thisILcd3DEditableBounds
that contains a givenILcdPoint
.void
Sets the value of theUPPER_CORNER_PROPERTY
property.void
setValue
(TLcdDataProperty aProperty, Object aValue) Sets the value of the given property for this data object.void
setWidth
(double aWidth) Sets the width of the bounds (the extent along the x-axis).toString()
void
translate2D
(double aDeltaX, double aDeltaY) Translates thisILcd2DEditableShape
from its current position over the given translation vector in the 2D space.void
translate3D
(double aDeltaX, double aDeltaY, double aDeltaZ) Translates thisILcd3DEditableShape
from 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, setFeature
Methods inherited from class com.luciad.datamodel.TLcdDataObject
getDataType, getValue, getValue, hasValue, hasValue, setValue
-
Field Details
-
SRS_PROPERTY
Property that maps on theSRSReferenceGroup
attributes. Acceptable values for this property are instances ofILcdModelReference
. -
LOWER_CORNER_PROPERTY
Property that maps on thelowerCorner
element. Acceptable values for this property are instances ofcom.luciad.format.gml31.model.TLcdGML31DirectPosition
. -
UPPER_CORNER_PROPERTY
Property that maps on theupperCorner
element. Acceptable values for this property are instances ofcom.luciad.format.gml31.model.TLcdGML31DirectPosition
. -
POS_PROPERTY
Property that maps on thepos
element. Acceptable values for this property are instances ofjava.util.List<com.luciad.format.gml31.model.TLcdGML31DirectPosition>
. -
COORDINATES_PROPERTY
Property that maps on thecoordinates
element. Acceptable values for this property are instances ofcom.luciad.format.gml31.model.TLcdGML31Coordinates
. -
COORD_PROPERTY
Property that maps on thecoord
element. 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_PROPERTY
property.- Returns:
- the value of the
SRS_PROPERTY
property.
-
setSrs
Sets the value of theSRS_PROPERTY
property.- Parameters:
aValue
- the value to set for theSRS_PROPERTY
property.
-
getLowerCorner
Gets the value of theLOWER_CORNER_PROPERTY
property.- Returns:
- the value of the
LOWER_CORNER_PROPERTY
property.
-
setLowerCorner
Sets the value of theLOWER_CORNER_PROPERTY
property.- Parameters:
aValue
- the value to set for theLOWER_CORNER_PROPERTY
property.
-
getUpperCorner
Gets the value of theUPPER_CORNER_PROPERTY
property.- Returns:
- the value of the
UPPER_CORNER_PROPERTY
property.
-
setUpperCorner
Sets the value of theUPPER_CORNER_PROPERTY
property.- Parameters:
aValue
- the value to set for theUPPER_CORNER_PROPERTY
property.
-
getPos
Gets the value of thePOS_PROPERTY
property.- Returns:
- the value of the
POS_PROPERTY
property.
-
getCoordinates
Gets the value of theCOORDINATES_PROPERTY
property.- Returns:
- the value of the
COORDINATES_PROPERTY
property.
-
setCoordinates
Sets the value of theCOORDINATES_PROPERTY
property.- Parameters:
aValue
- the value to set for theCOORDINATES_PROPERTY
property.
-
setValue
Description copied from interface:ILcdDataObject
Sets 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 type
or 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:
setValue
in interfaceILcdDataObject
- Overrides:
setValue
in 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:ILcdBounds
Indicates 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:
isDefined
in interfaceILcdBounds
- Returns:
true
if this object describes actual bounds,false
if not
- If
-
setWidth
public void setWidth(double aWidth) Description copied from interface:ILcd2DEditableBounds
Sets the width of the bounds (the extent along the x-axis).If this bounds was
undefined
, it becomes defined.- Specified by:
setWidth
in interfaceILcd2DEditableBounds
- Parameters:
aWidth
- the new width.
-
setHeight
public void setHeight(double aHeight) Description copied from interface:ILcd2DEditableBounds
Sets the height of the bounds (the extent along the y-axis).If this bounds was
undefined
, it becomes defined.- Specified by:
setHeight
in interfaceILcd2DEditableBounds
- Parameters:
aHeight
- the new height.
-
setDepth
public void setDepth(double aDepth) Description copied from interface:ILcd3DEditableBounds
Sets the depth of the bounds (the extent along the z-axis).If this bounds is
undefined
, it becomes defined.- Specified by:
setDepth
in interfaceILcd3DEditableBounds
- Parameters:
aDepth
- the new depth.
-
getWidth
public double getWidth()Description copied from interface:ILcdBounds
Returns the width of the bounding box. The width has to be larger than or equal to 0.- Specified by:
getWidth
in interfaceILcdBounds
- Returns:
- the width of the bounding box.
-
getHeight
public double getHeight()Description copied from interface:ILcdBounds
Returns the height of the bounding box. The height has to be larger than or equal to 0.- Specified by:
getHeight
in interfaceILcdBounds
- Returns:
- the height of the bounding box.
-
getDepth
public double getDepth()Description copied from interface:ILcdBounds
Returns the depth of the bounding box. The depth has to be larger than or equal to 0.- Specified by:
getDepth
in interfaceILcdBounds
- Returns:
- the depth of the bounding box.
-
getLocation
Description copied from interface:ILcdBounds
Returns the location of the bounding box (smallest x and y coordinates).- Specified by:
getLocation
in interfaceILcdBounds
- Returns:
- the location of the bounding box.
-
clone
Description copied from class:TLcdDataObject
Returns a deep clone of this object. This method delegates toTLcdDataObject.clone(Map)
.- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classTLcdDataObject
- Returns:
- a deep clone of this object
- See Also:
-
clone
Description copied from class:TLcdDataObject
Returns 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
ILcdDeepCloneable
orILcdCloneable
then this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clone
in interfaceILcdDeepCloneable
- Overrides:
clone
in 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:ILcd2DEditableBounds
Moves thisILcd2DEditableShape
to 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 theILcdShape
and theILcdPoint
are considered. The third dimension is left unchanged.If this bounds was
undefined
, it becomes defined after the move.- Specified by:
move2D
in interfaceILcd2DEditableBounds
- Specified by:
move2D
in interfaceILcd2DEditableShape
- Parameters:
aPoint
- theILcdPoint
to move to.- See Also:
-
move2D
public void move2D(double aX, double aY) Description copied from interface:ILcd2DEditableBounds
Moves thisILcd2DEditableShape
to 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 theILcdShape
are considered. The third dimension is left unchanged.If this bounds was
undefined
, it becomes defined after the move.- Specified by:
move2D
in interfaceILcd2DEditableBounds
- Specified by:
move2D
in 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:ILcd2DEditableBounds
Translates thisILcd2DEditableShape
from its current position over the given translation vector in the 2D space. Only the first two dimensions of theILcdShape
are considered. The third dimension is left unchanged.If this bounds was
undefined
, it becomes defined after the translation.- Specified by:
translate2D
in interfaceILcd2DEditableBounds
- Specified by:
translate2D
in interfaceILcd2DEditableShape
- Parameters:
aDeltaX
- the x coordinate of the translation vector.aDeltaY
- the y coordinate of the translation vector.
-
move3D
Description copied from interface:ILcd3DEditableBounds
Moves thisILcd3DEditableShape
to 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:
move3D
in interfaceILcd3DEditableBounds
- Specified by:
move3D
in interfaceILcd3DEditableShape
- Parameters:
aPoint
- theILcdPoint
to move to.- See Also:
-
move3D
public void move3D(double aX, double aY, double aZ) Description copied from interface:ILcd3DEditableBounds
Moves thisILcd3DEditableShape
to 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:
move3D
in interfaceILcd3DEditableBounds
- Specified by:
move3D
in 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:ILcd3DEditableBounds
Translates thisILcd3DEditableShape
from its current position over the given translation vector in the 3D space.If this bounds is
undefined
, it becomes defined.- Specified by:
translate3D
in interfaceILcd3DEditableBounds
- Specified by:
translate3D
in 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:ILcd3DEditableBounds
Calculates the 3D intersection of thisILcd3DEditableBounds
and a givenILcdBounds
. The result contains at least all the points that are contained in bothILcdBounds
objects. ThisILcd3DEditableBounds
object 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:
setTo3DIntersection
in interfaceILcd3DEditableBounds
- Parameters:
aBounds
- the otherILcdBounds
operand 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:ILcd3DEditableBounds
Calculates the 3D intersection of thisILcd3DEditableBounds
and a given box. The result contains at least all the points that are contained both in theILcdBounds
object and in the box. ThisILcd3DEditableBounds
object is updated with the result.If this bounds is
undefined
, nothing changes.- Specified by:
setTo3DIntersection
in 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:ILcd3DEditableBounds
Calculates the 3D union of thisILcd3DEditableBounds
and a givenILcdBounds
. The result contains at least all the points that are contained in either or both of theILcdBounds
objects (and typically more). ThisILcd3DEditableBounds
object 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:
setTo3DUnion
in interfaceILcd3DEditableBounds
- Parameters:
aBounds
- the otherILcdBounds
operand 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:ILcd3DEditableBounds
Calculates the 3D union of thisILcd3DEditableBounds
and a given box. The result contains at least all the points that are contained in theILcdBounds
objects and in the box (and typically more). ThisILcd3DEditableBounds
object is updated with the result.If this bounds is
undefined
, it is set to the arguments.- Specified by:
setTo3DUnion
in 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:ILcd3DEditableBounds
Calculates the 3D extension of thisILcd3DEditableBounds
that contains a givenILcdPoint
. The result contains at least the given point and all the points that are contained in thisILcd3DEditableBounds
(and typically more). ThisILcd3DEditableBounds
object is updated with the result.If this bounds is
undefined
, it is set to the point.- Specified by:
setToIncludePoint3D
in interfaceILcd3DEditableBounds
- Parameters:
aPoint
- theILcdPoint
operand for the union.- See Also:
-
setToIncludePoint3D
public void setToIncludePoint3D(double aX, double aY, double aZ) Description copied from interface:ILcd3DEditableBounds
Calculates the 3D extension of thisILcd3DEditableBounds
that contains a givenILcdPoint
. The result contains at least the given point and all the points that are contained in thisILcd3DEditableBounds
(and typically more). ThisILcd3DEditableBounds
object is updated with the result.If this bounds is
undefined
, it is set to the point.- Specified by:
setToIncludePoint3D
in 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:ILcd2DEditableBounds
Calculates the 2D intersection of thisILcd2DEditableBounds
and a givenILcdBounds
. The result contains at least all the points that are contained in bothILcdBounds
objects. Only the first two dimensions of theILcdBounds
objects are considered. ThisILcd2DEditableBounds
object 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:
setTo2DIntersection
in interfaceILcd2DEditableBounds
- Parameters:
aBounds
- the otherILcdBounds
operand for the intersection.- See Also:
-
setTo2DIntersection
public void setTo2DIntersection(double aX, double aY, double aWidth, double aHeight) Description copied from interface:ILcd2DEditableBounds
Calculates the 2D intersection of thisILcd2DEditableBounds
object and a given rectangle. The result contains at least all the points that are contained both in thisILcdBounds
objects and in the rectangle. Only the first two dimensions of thisILcdBounds
object are considered. It is updated with the result. Its third dimension is left unchanged.If this bounds is
undefined
, nothing changes.- Specified by:
setTo2DIntersection
in 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:ILcd2DEditableBounds
Calculates the 2D union of thisILcd2DEditableBounds
and a givenILcdBounds
. The result contains at least all the points that are contained in either of theILcdBounds
objects (and typically more). Only the first two dimensions of theILcdBounds
objects are considered. ThisILcd2DEditableBounds
object 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:
setTo2DUnion
in interfaceILcd2DEditableBounds
- Parameters:
aBounds
- the otherILcdBounds
operand for the union.- See Also:
-
setTo2DUnion
public void setTo2DUnion(double aX, double aY, double aWidth, double aHeight) Description copied from interface:ILcd2DEditableBounds
Calculates the 2D union of thisILcd2DEditableBounds
object and a given rectangle. The result contains at least all the points that are contained in theILcdBounds
object and in the rectangle (and typically more). Only the first two dimensions of thisILcdBounds
object 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:
setTo2DUnion
in 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:ILcd2DEditableBounds
Calculates the 2D extension of thisILcd2DEditableBounds
object 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 thisILcdBounds
object and theILcdPoint
are considered. ThisILcdBounds
object is updated with the result. Its third dimension is left unchanged.If this bounds is
undefined
, it is set to the point.- Specified by:
setToIncludePoint2D
in 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:ILcd2DEditableBounds
Calculates the 2D extension of thisILcd2DEditableBounds
object 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 thisILcdBounds
object 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:
setToIncludePoint2D
in interfaceILcd2DEditableBounds
- Parameters:
aX
- the x coordinate of the point.aY
- the y coordinate of the point.
-
cloneAs2DEditableBounds
Description copied from interface:ILcdBounds
Returns a copy of thisILcdBounds
object that is also anILcd2DEditableBounds
. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBounds
object may be read-only.- Specified by:
cloneAs2DEditableBounds
in interfaceILcdBounds
- Returns:
- a copy of this
ILcdBounds
object that is also anILcd2DEditableBounds
. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBounds
object may be read-only. - See Also:
-
cloneAs3DEditableBounds
Description copied from interface:ILcdBounds
Returns a copy of thisILcdBounds
object that is also anILcd3DEditableBounds
. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBounds
object may be read-only.- Specified by:
cloneAs3DEditableBounds
in interfaceILcdBounds
- Returns:
- a copy of this
ILcdBounds
object that is also anILcd3DEditableBounds
. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBounds
object may be read-only. - See Also:
-
contains2D
Description copied from interface:ILcdBounds
Checks whether thisILcdBounds
object contains the givenILcdBounds
object in the 2D space. Only the first two dimensions of theILcdBounds
objects are considered.If either bounds is
undefined
, the result is false.- Specified by:
contains2D
in interfaceILcdBounds
- Parameters:
aBounds
- theILcdBounds
to 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:ILcdBounds
Checks whether thisILcdBounds
object contains the given rectangle in the 2D space. Only the first two dimensions of theILcdBounds
object are considered.If this bounds is
undefined
, the result is false.- Specified by:
contains2D
in 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:ILcdBounds
Checks whether thisILcdBounds
object contains the givenILcdBounds
object in the 3D space.If either bounds is
undefined
, the result is false.- Specified by:
contains3D
in interfaceILcdBounds
- Parameters:
aBounds
- theILcdBounds
to 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:ILcdBounds
Checks whether thisILcdBounds
object contains the given box in the 3D space.If this bounds is
undefined
, the result is false.- Specified by:
contains3D
in 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:ILcdBounds
Checks whether thisILcdBounds
object interacts with the givenILcdBounds
object in the 2D space. Only the first two dimensions of theILcdBounds
objects are considered.If either bounds is
undefined
, the result is false.- Specified by:
interacts2D
in interfaceILcdBounds
- Parameters:
aBounds
- theILcdBounds
to 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:ILcdBounds
Checks whether thisILcdBounds
object interacts with the given rectangle in the 2D space. Only the first two dimensions of theILcdBounds
object are considered.If this bounds is
undefined
, the result is false.- Specified by:
interacts2D
in 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:
true
if thisILcdBounds
object touches or overlaps to any extent with the given rectangle,false
otherwise.
-
interacts3D
Description copied from interface:ILcdBounds
Checks whether thisILcdBounds
object interacts with the givenILcdBounds
object.If either bounds is
undefined
, the result is false.- Specified by:
interacts3D
in interfaceILcdBounds
- Parameters:
aBounds
- theILcdBounds
to 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:ILcdBounds
Checks whether thisILcdBounds
object interacts with the given box in the 3D space.If this bounds is
undefined
, the result is false.- Specified by:
interacts3D
in 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:
true
if thisILcdBounds
object touches or overlaps to any extent with the given box,false
otherwise.
-
contains2D
Description copied from interface:ILcdShape
Checks whether thisILcdShape
contains the givenILcdPoint
in the 2D space. Only the first two dimensions of theILcdShape
and theILcdPoint
are considered.- Specified by:
contains2D
in interfaceILcdShape
- Parameters:
aPoint
- theILcdPoint
to test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains2D
public boolean contains2D(double aX, double aY) Description copied from interface:ILcdShape
Checks whether thisILcdShape
contains the given point in the 2D space. Only the first two dimensions of theILcdShape
are considered.- Specified by:
contains2D
in 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:ILcdShape
Checks whether thisILcdShape
contains the givenILcdPoint
in the 3D space.- Specified by:
contains3D
in interfaceILcdShape
- Parameters:
aPoint
- theILcdPoint
to 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:ILcdShape
Checks whether thisILcdShape
contains the given point in the 3D space.- Specified by:
contains3D
in 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:ILcdShape
Returns the focus point of thisILcdShape
.- Specified by:
getFocusPoint
in interfaceILcdShape
- Returns:
- the focus point of this
ILcdShape
.
-
getBounds
Description copied from interface:ILcdBounded
Returns theILcdBounds
by which the geometry of thisILcdBounded
object 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
undefined
bounds. You can create undefined bounds using the default constructors ofTLcdLonLatBounds
orTLcdXYBounds
.- Specified by:
getBounds
in interfaceILcdBounded
- Returns:
- the
ILcdBounds
by which the geometry of thisILcdBounded
object is bounded.
-
toString
- Overrides:
toString
in classTLcdDataObject
-
getCoord
Gets the value of theCOORD_PROPERTY
property.Deprecated with GML 3.0 and included for backwards compatibility with GML 2. Use the "pos" element instead.
- Returns:
- the value of the
COORD_PROPERTY
property.
-