Class TLcdBingMapsCoverageArea
- All Implemented Interfaces:
ILcdBounded
,ILcdBounds
,ILcdShape
,ILcdCloneable
,Serializable
,Cloneable
- Since:
- 11.0
- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdBingMapsCoverageArea
(int aMinLevel, int aMaxLevel, double aLon, double aLat, double aWidth, double aHeight) Creates a new Bing maps coverage area with the specified bounds and minimum and maximum level. -
Method Summary
Modifier and TypeMethodDescriptionclone()
MakesObject.clone()
public.Returns a copy of thisILcdBounds
object that is also anILcd2DEditableBounds
.Returns a copy of thisILcdBounds
object that is also anILcd3DEditableBounds
.boolean
contains2D
(double aLon, double aLat) 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.boolean
Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.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).double
getWidth()
Returns the width of the bounding box.int
hashCode()
boolean
interacts2D
(double aLon, double aLat, 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.boolean
overlaps
(int aMinZoomLevel, int aMaxZoomLevel, ILcdBounds aWGS84Bounds) Returns whether or not this area overlaps with the passed arguments.
-
Constructor Details
-
TLcdBingMapsCoverageArea
public TLcdBingMapsCoverageArea(int aMinLevel, int aMaxLevel, double aLon, double aLat, double aWidth, double aHeight) Creates a new Bing maps coverage area with the specified bounds and minimum and maximum level.- Parameters:
aMinLevel
- the minimum level of the Bing Maps tileset covered by this area.aMaxLevel
- the maximum level of the Bing Maps tileset covered by this area.aLon
- the longitude of the lower left point of the covered area.aLat
- the latitude of the lower left point of the covered area.aWidth
- the width of the covered area.aHeight
- the height of the covered area.
-
-
Method Details
-
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
-
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:
-
equals
-
hashCode
public int hashCode() -
overlaps
Returns whether or not this area overlaps with the passed arguments.- Parameters:
aMinZoomLevel
- the minimum zoom levelaMaxZoomLevel
- the maximum zoom levelaWGS84Bounds
- the lon lat bounds- Returns:
- true if the bounds overlap, and either the passed min or max zoom level is in the local level range.
-
clone
Description copied from interface:ILcdCloneable
Makes
When for example extending fromObject.clone()
public.java.lang.Object
, it can be implemented like this:public Object clone() { try { return super.clone(); } catch ( CloneNotSupportedException e ) { // Cannot happen: extends from Object and implements Cloneable (see also Object.clone) throw new RuntimeException( e ); } }
- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classObject
- See Also:
-
contains2D
public boolean contains2D(double aLon, double aLat) 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:
aLon
- the x coordinate of the point.aLat
- 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:
-
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) 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.
-
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 aLon, double aLat, 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:
aLon
- the x coordinate of the rectangle.aLat
- 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.
-
getFocusPoint
Description copied from interface:ILcdShape
Returns the focus point of thisILcdShape
.- Specified by:
getFocusPoint
in interfaceILcdShape
- Returns:
- the focus point of this
ILcdShape
.
-
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:
-
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.
-
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.
-
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.
-
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.
-