java.lang.Object | |
↳ | com.carto.core.MapEnvelope |
A bounding area on the map. Can be defined by a map bounds object or by a convex bounding polygon.
This class is intended for conservative object area estimation and fast intersection testing.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MapEnvelope()
Constructs an empty MapEnvelope object.
| |||||||||||
MapEnvelope(MapBounds bounds)
Constructs a MapEnvelope object using map bounds.
| |||||||||||
MapEnvelope(MapPosVector convexHull)
Constructs a MapEnvelope object from a convex bounding polygon.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
contains(MapEnvelope envelope)
Tests whether this map envelope contains another map envelope.
| ||||||||||
synchronized void | delete() | ||||||||||
boolean |
equals(Object obj)
Checks if this object is equal to the specified object.
| ||||||||||
MapBounds |
getBounds()
Returns the map bounds of this map envelope.
| ||||||||||
MapPosVector |
getConvexHull()
Returns the convex hull of this map envelope.
| ||||||||||
int |
hashCode()
Returns the hash value of this object.
| ||||||||||
boolean |
intersects(MapEnvelope envelope)
Tests whether this map envelope intersects with another map envelope.
| ||||||||||
String |
toString()
Creates a string representation of this map envelope, useful for logging.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs an empty MapEnvelope object. Nothing is contained within
this envelope.
Constructs a MapEnvelope object using map bounds.
bounds | The bounds for the envelope. |
---|
Constructs a MapEnvelope object from a convex bounding polygon.
convexHull | The list of convex hull points. |
---|
Tests whether this map envelope contains another map envelope.
envelope | The other map envelope. |
---|
Checks if this object is equal to the specified object.
obj | The reference object. |
---|
Returns the map bounds of this map envelope.
Returns the convex hull of this map envelope.
Returns the hash value of this object.
Tests whether this map envelope intersects with another map envelope.
envelope | The other map envelope. |
---|
Creates a string representation of this map envelope, useful for logging.