public class TLcdISO19115GeographicBoundingBox extends TLcdISO19115GeographicExtent implements ILcdBounds
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
EAST_BOUND_LONGITUDE_PROPERTY
Data property that maps to the
eastBoundLongitude element. |
static TLcdDataProperty |
NORTH_BOUND_LATITUDE_PROPERTY
Data property that maps to the
northBoundLatitude element. |
static TLcdDataProperty |
SOUTH_BOUND_LATITUDE_PROPERTY
Data property that maps to the
southBoundLatitude element. |
static TLcdDataProperty |
WEST_BOUND_LONGITUDE_PROPERTY
Data property that maps to the
westBoundLongitude element. |
EXTENT_TYPE_CODE_PROPERTY
ID_PROPERTY, UUID_PROPERTY
Constructor and Description |
---|
TLcdISO19115GeographicBoundingBox() |
TLcdISO19115GeographicBoundingBox(double aMinLon,
double aMaxLon,
double aMinLat,
double aMaxLat)
Creates a new box using the given longitude and latitude values.
|
TLcdISO19115GeographicBoundingBox(ILcdBounds aBounds)
Creates a new box initialized to match the values of the
specified bounds.
|
TLcdISO19115GeographicBoundingBox(TLcdDataType aType) |
Modifier and Type | Method and Description |
---|---|
TLcdISO19115GeographicBoundingBox |
clone(Map aObjectDictionary)
Returns a deep clone of this object.
|
ILcd2DEditableBounds |
cloneAs2DEditableBounds()
Returns a copy of this
ILcdBounds object that is also an ILcd2DEditableBounds . |
ILcd3DEditableBounds |
cloneAs3DEditableBounds()
Returns a copy of this
ILcdBounds object that is also an ILcd3DEditableBounds . |
boolean |
contains2D(double aX,
double aY)
Checks whether this
ILcdShape contains the given point in
the 2D space. |
boolean |
contains2D(double aX,
double aY,
double aWidth,
double aHeight)
Checks whether this
ILcdBounds object contains the given rectangle in
the 2D space. |
boolean |
contains2D(ILcdBounds aBounds)
Checks whether this
ILcdBounds object contains the given ILcdBounds
object in the 2D space. |
boolean |
contains2D(ILcdPoint aPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 2D space. |
boolean |
contains3D(double aX,
double aY,
double aZ)
Checks whether this
ILcdShape contains the given point in
the 3D space. |
boolean |
contains3D(double aX,
double aY,
double aZ,
double aWidth,
double aHeight,
double aDepth)
Checks whether this
ILcdBounds object contains the given box in the 3D
space. |
boolean |
contains3D(ILcdBounds aBounds)
Checks whether this
ILcdBounds object contains the given ILcdBounds
object in the 3D space. |
boolean |
contains3D(ILcdPoint aPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 3D space. |
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
double |
getDepth()
Returns the depth of the bounding box.
|
Double |
getEastBoundLongitude()
Returns the role value contained in the value of the
EAST_BOUND_LONGITUDE_PROPERTY property. |
ILcdPoint |
getFocusPoint()
Returns the focus point of this
ILcdShape . |
double |
getHeight()
Returns the height of the bounding box.
|
ILcdPoint |
getLocation()
Returns the location of the bounding box (smallest x and y coordinates).
|
Double |
getNorthBoundLatitude()
Returns the role value contained in the value of the
NORTH_BOUND_LATITUDE_PROPERTY property. |
Double |
getSouthBoundLatitude()
Returns the role value contained in the value of the
SOUTH_BOUND_LATITUDE_PROPERTY property. |
Double |
getWestBoundLongitude()
Returns the role value contained in the value of the
WEST_BOUND_LONGITUDE_PROPERTY property. |
double |
getWidth()
Returns the width of the bounding box.
|
boolean |
interacts2D(double aX,
double aY,
double aWidth,
double aHeight)
Checks whether this
ILcdBounds object interacts with the given rectangle in
the 2D space. |
boolean |
interacts2D(ILcdBounds aBounds)
Checks whether this
ILcdBounds object interacts with the given ILcdBounds
object in the 2D space. |
boolean |
interacts3D(double aX,
double aY,
double aZ,
double aWidth,
double aHeight,
double aDepth)
Checks whether this
ILcdBounds object interacts with the given box in
the 3D space. |
boolean |
interacts3D(ILcdBounds aBounds)
Checks whether this
ILcdBounds object interacts with the given ILcdBounds
object. |
boolean |
isDefined()
Indicates whether this bounds object is valid.
|
void |
setEastBoundLongitude(Double aValue)
Sets the value of the property that maps to the
eastBoundLongitude element. |
void |
setNorthBoundLatitude(Double aValue)
Sets the value of the property that maps to the
northBoundLatitude element. |
void |
setSouthBoundLatitude(Double aValue)
Sets the value of the property that maps to the
southBoundLatitude element. |
void |
setWestBoundLongitude(Double aValue)
Sets the value of the property that maps to the
westBoundLongitude element. |
getExtentTypeCode, setExtentTypeCode
getId, getUuid, setId, setUuid
clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCenter, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ
clone
public static final TLcdDataProperty WEST_BOUND_LONGITUDE_PROPERTY
westBoundLongitude
element.
The possible values for this property are instances of TLcdISO19115Optional<Double>
.public static final TLcdDataProperty EAST_BOUND_LONGITUDE_PROPERTY
eastBoundLongitude
element.
The possible values for this property are instances of TLcdISO19115Optional<Double>
.public static final TLcdDataProperty SOUTH_BOUND_LATITUDE_PROPERTY
southBoundLatitude
element.
The possible values for this property are instances of TLcdISO19115Optional<Double>
.public static final TLcdDataProperty NORTH_BOUND_LATITUDE_PROPERTY
northBoundLatitude
element.
The possible values for this property are instances of TLcdISO19115Optional<Double>
.public TLcdISO19115GeographicBoundingBox()
public TLcdISO19115GeographicBoundingBox(ILcdBounds aBounds)
aBounds
- the bounds to use for this bounding boxpublic TLcdISO19115GeographicBoundingBox(double aMinLon, double aMaxLon, double aMinLat, double aMaxLat)
aMinLon
- the west bound longitudeaMaxLon
- the east bound longitudeaMinLat
- the south bound longitudeaMaxLat
- the north bound longitudepublic TLcdISO19115GeographicBoundingBox(TLcdDataType aType)
public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
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
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public boolean isDefined()
ILcdBounds
true
, this bounds describes a valid geographic region.false
, this bounds does not represent a geographic region, and its
location, width, height and depth should not be used.isDefined
in interface ILcdBounds
true
if this object describes actual bounds, false
if notpublic ILcd2DEditableBounds cloneAs2DEditableBounds()
ILcdBounds
ILcdBounds
object that is also an ILcd2DEditableBounds
.
This makes sure that the first two dimensions of the copy are writable,
even if the original ILcdBounds
object may be read-only.cloneAs2DEditableBounds
in interface ILcdBounds
ILcdBounds
object that is also an ILcd2DEditableBounds
.
This makes sure that the first two dimensions of the copy are writable,
even if the original ILcdBounds
object may be read-only.ILcd2DEditableBounds
public ILcd3DEditableBounds cloneAs3DEditableBounds()
ILcdBounds
ILcdBounds
object that is also an ILcd3DEditableBounds
.
This makes sure that all three dimensions of the copy are writable,
even if the original ILcdBounds
object may be read-only.cloneAs3DEditableBounds
in interface ILcdBounds
ILcdBounds
object that is also an ILcd3DEditableBounds
.
This makes sure that all three dimensions of the copy are writable,
even if the original ILcdBounds
object may be read-only.ILcd3DEditableBounds
public boolean contains2D(ILcdBounds aBounds)
ILcdBounds
ILcdBounds
object contains the given ILcdBounds
object in the 2D space. Only the first two dimensions of the ILcdBounds
objects
are considered.
If either bounds is undefined
, the result is false.
contains2D
in interface ILcdBounds
aBounds
- the ILcdBounds
to compare with.ILcdBounds.contains2D(double, double, double, double)
public boolean contains2D(double aX, double aY, double aWidth, double aHeight)
ILcdBounds
ILcdBounds
object contains the given rectangle in
the 2D space. Only the first two dimensions of the ILcdBounds
object
are considered.
If this bounds is undefined
, the result is false.
contains2D
in interface ILcdBounds
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.public boolean contains3D(ILcdBounds aBounds)
ILcdBounds
ILcdBounds
object contains the given ILcdBounds
object in the 3D space.
If either bounds is undefined
, the result is false.
contains3D
in interface ILcdBounds
aBounds
- the ILcdBounds
to compare with.ILcdBounds.contains3D(double, double, double, double, double, double)
public boolean contains3D(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth)
ILcdBounds
ILcdBounds
object contains the given box in the 3D
space.
If this bounds is undefined
, the result is false.
contains3D
in interface ILcdBounds
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.ILcdBounds.contains2D(double, double, double, double)
public double getDepth()
ILcdBounds
getDepth
in interface ILcdBounds
public double getHeight()
ILcdBounds
getHeight
in interface ILcdBounds
public ILcdPoint getLocation()
ILcdBounds
getLocation
in interface ILcdBounds
public double getWidth()
ILcdBounds
getWidth
in interface ILcdBounds
public boolean interacts2D(ILcdBounds aBounds)
ILcdBounds
ILcdBounds
object interacts with the given ILcdBounds
object in the 2D space. Only the first two dimensions of the ILcdBounds
objects
are considered.
If either bounds is undefined
, the result is false.
interacts2D
in interface ILcdBounds
aBounds
- the ILcdBounds
to compare with.ILcdBounds.interacts2D(double, double, double, double)
public boolean interacts2D(double aX, double aY, double aWidth, double aHeight)
ILcdBounds
ILcdBounds
object interacts with the given rectangle in
the 2D space. Only the first two dimensions of the ILcdBounds
object
are considered.
If this bounds is undefined
, the result is false.
interacts2D
in interface ILcdBounds
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.true
if this ILcdBounds
object touches or overlaps to
any extent with the given rectangle, false
otherwise.public boolean interacts3D(ILcdBounds aBounds)
ILcdBounds
ILcdBounds
object interacts with the given ILcdBounds
object.
If either bounds is undefined
, the result is false.
interacts3D
in interface ILcdBounds
aBounds
- the ILcdBounds
to compare with.ILcdBounds.interacts3D(double, double, double, double, double, double)
public boolean interacts3D(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth)
ILcdBounds
ILcdBounds
object interacts with the given box in
the 3D space.
If this bounds is undefined
, the result is false.
interacts3D
in interface ILcdBounds
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.true
if this ILcdBounds
object touches or overlaps to
any extent with the given box, false
otherwise.public boolean contains2D(ILcdPoint aPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 2D space.
Only the first two dimensions of the ILcdShape
and the ILcdPoint
are considered.contains2D
in interface ILcdShape
aPoint
- the ILcdPoint
to test.ILcdShape.contains2D(double, double)
public boolean contains2D(double aX, double aY)
ILcdShape
ILcdShape
contains the given point in
the 2D space. Only the first two dimensions of the ILcdShape
are considered.contains2D
in interface ILcdShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.public boolean contains3D(ILcdPoint aPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 3D space.contains3D
in interface ILcdShape
aPoint
- the ILcdPoint
to test.ILcdShape.contains3D(double, double, double)
public boolean contains3D(double aX, double aY, double aZ)
ILcdShape
ILcdShape
contains the given point in
the 3D space.contains3D
in interface ILcdShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.public ILcdPoint getFocusPoint()
ILcdShape
ILcdShape
.getFocusPoint
in interface ILcdShape
ILcdShape
.public TLcdISO19115GeographicBoundingBox clone(Map aObjectDictionary)
TLcdDataObject
ILcdDataObject
, the value is cloned by first creating a new instance via
the value.getDataType().newInstance()
method, and then cloning its properties one by one.ILcdDeepCloneable
or
ILcdCloneable
then this interface is used to clone the value.clone
in interface ILcdDeepCloneable
clone
in class TLcdDataObject
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made,
and their corresponding clone Object.public Double getWestBoundLongitude()
WEST_BOUND_LONGITUDE_PROPERTY
property. Returns null
if the value of the WEST_BOUND_LONGITUDE_PROPERTY
property is null
.WEST_BOUND_LONGITUDE_PROPERTY
property.TLcdISO19115Optional
public void setWestBoundLongitude(Double aValue)
westBoundLongitude
element. to a new instance of the association class TLcdISO19115Optional
initialized with the given role value. In case the given role value is null
, the WEST_BOUND_LONGITUDE_PROPERTY
property is set to null
.aValue
- the role value to set for the WEST_BOUND_LONGITUDE_PROPERTY
property.public Double getEastBoundLongitude()
EAST_BOUND_LONGITUDE_PROPERTY
property. Returns null
if the value of the EAST_BOUND_LONGITUDE_PROPERTY
property is null
.EAST_BOUND_LONGITUDE_PROPERTY
property.TLcdISO19115Optional
public void setEastBoundLongitude(Double aValue)
eastBoundLongitude
element. to a new instance of the association class TLcdISO19115Optional
initialized with the given role value. In case the given role value is null
, the EAST_BOUND_LONGITUDE_PROPERTY
property is set to null
.aValue
- the role value to set for the EAST_BOUND_LONGITUDE_PROPERTY
property.public Double getSouthBoundLatitude()
SOUTH_BOUND_LATITUDE_PROPERTY
property. Returns null
if the value of the SOUTH_BOUND_LATITUDE_PROPERTY
property is null
.SOUTH_BOUND_LATITUDE_PROPERTY
property.TLcdISO19115Optional
public void setSouthBoundLatitude(Double aValue)
southBoundLatitude
element. to a new instance of the association class TLcdISO19115Optional
initialized with the given role value. In case the given role value is null
, the SOUTH_BOUND_LATITUDE_PROPERTY
property is set to null
.aValue
- the role value to set for the SOUTH_BOUND_LATITUDE_PROPERTY
property.public Double getNorthBoundLatitude()
NORTH_BOUND_LATITUDE_PROPERTY
property. Returns null
if the value of the NORTH_BOUND_LATITUDE_PROPERTY
property is null
.NORTH_BOUND_LATITUDE_PROPERTY
property.TLcdISO19115Optional
public void setNorthBoundLatitude(Double aValue)
northBoundLatitude
element. to a new instance of the association class TLcdISO19115Optional
initialized with the given role value. In case the given role value is null
, the NORTH_BOUND_LATITUDE_PROPERTY
property is set to null
.aValue
- the role value to set for the NORTH_BOUND_LATITUDE_PROPERTY
property.