|
Maps SDK for C++ 1.0.0
|
RectangleGeographicArea object. More...


Public Member Functions | |
| RectangleGeographicArea () | |
| Default constructor. | |
| RectangleGeographicArea (double minLat, double maxLat, double minLon, double maxLon) | |
| Constructs a RectangleGeographicArea object with minimum and maximum latitudes and longitudes. | |
| RectangleGeographicArea (const Coordinates &coords1, const Coordinates &coords2) | |
| Constructs a RectangleGeographicArea object from top-left and bottom-right coordinates. | |
| RectangleGeographicArea (const Coordinates &coords, double horizRadius, double vertRadius) | |
| Constructs a RectangleGeographicArea object from center coordinates and horizontal/vertical radii. | |
| RectangleGeographicArea (const RectangleGeographicArea &other)=default | |
| Default copy constructor. | |
| RectangleGeographicArea (RectangleGeographicArea &&obj) noexcept | |
| Default move constructor. | |
| RectangleGeographicArea & | operator= (const RectangleGeographicArea &other)=default |
| Default copy assignment. | |
| RectangleGeographicArea & | operator= (RectangleGeographicArea &&obj) noexcept |
| Default move assignment. | |
| Coordinates | getTopLeft () const noexcept |
| Retrieves the coordinates of the top-left point of the rectangle. | |
| RectangleGeographicArea & | setTopLeft (const Coordinates &point) noexcept |
| Sets the top-left point of the rectangle. | |
| Coordinates | getBottomRight () const noexcept |
| Retrieves the coordinates of the bottom-right point of the rectangle. | |
| RectangleGeographicArea & | setBottomRight (const Coordinates &point) noexcept |
| Sets the bottom-right point of the rectangle. | |
| RectangleGeographicArea & | set (double minLatitude, double maxLatitude, double minLongitude, double maxLongitude) noexcept |
| Defines the rectangle using latitude and longitude ranges. | |
| RectangleGeographicArea & | set (const Coordinates &coords, double horizRadius, double vertRadius) noexcept |
| Defines the rectangle based on a central point and dimensions. | |
| RectangleGeographicArea & | set (const Coordinates &coords1, const Coordinates &coords2) |
| Defines teh rectangle from top-left and bottom-right coordinates. | |
| bool | intersects (const RectangleGeographicArea &area) const noexcept |
| Checks if this rectangle intersects with another rectangle. | |
| bool | contains (const RectangleGeographicArea &area) const noexcept |
| Checks if this rectangle completely contains another rectangle. | |
| RectangleGeographicArea & | setIntersection (const RectangleGeographicArea &area) noexcept |
| Sets this rectangle to the intersection of itself and another rectangle. | |
| RectangleGeographicArea & | setUnion (const RectangleGeographicArea &area) noexcept |
| Sets this rectangle to the union of itself and another rectangle. | |
| RectangleGeographicArea | makeIntersection (const RectangleGeographicArea &area) const noexcept |
| Creates a new RectangleGeographicArea as the intersection of this rectangle and another. | |
| RectangleGeographicArea | makeUnion (const RectangleGeographicArea &area) const noexcept |
| Creates a new RectangleGeographicArea as the union of this rectangle and another. | |
| EGeographicAreaType | type () const |
| Retrieves the specific type of the geographic area. | |
| bool | containsCoordinates (Coordinates const &point) const |
| Checks if the specified point is contained within the geographic area. | |
| RectangleGeographicArea | getBoundingBox () const noexcept |
| Get the bounding box. | |
| Coordinates | getCenterPoint () const noexcept |
| Retrieves the center point of the geographic area. | |
| bool | equals (GeographicArea const &other) const noexcept |
| Checks if two geographic areas are considered equal. | |
| bool | operator== (const GeographicArea &area) const noexcept |
| Equality comparison operator for geographic areas. | |
| bool | operator!= (const GeographicArea &area) const noexcept |
| Inequality comparison operator for geographic areas. | |
| template<typename TSubclass> | |
| TSubclass | cast () const noexcept |
| Attempts to cast the current geographic area object to a specified subclass. | |
| bool | isDefault () const override |
| Determines if the current geographic area object is in its default state (unaltered since creation). | |
| operator bool () const noexcept | |
| Boolean conversion operator indicating if the geographic area is valid and not in its default state. | |
| bool | isEmpty () const noexcept |
| Checks if the geographic area is empty. | |
| void | reset () noexcept |
| Resets the geographic area object to its default state. | |
| int | convert (GeographicArea &area) const noexcept |
| Converts the geographic area to another type, if possible. | |
Static Public Member Functions | |
| static constexpr EGeographicAreaType | type () noexcept |
| Get the type of the geographic area. | |
RectangleGeographicArea object.
Implements share-read / copy-on-write Api object over IRectangleGeographicArea.
|
inline |
Constructs a RectangleGeographicArea object with minimum and maximum latitudes and longitudes.
| minLat | Minimum latitude of the rectangle. |
| maxLat | Maximum latitude of the rectangle. |
| minLon | Minimum longitude of the rectangle. |
| maxLon | Maximum longitude of the rectangle. Ensures that the coordinates form a valid rectangle by sorting the inputs. |
|
inline |
Constructs a RectangleGeographicArea object from top-left and bottom-right coordinates.
| coords1 | Coordinates of the top-left corner. |
| coords2 | Coordinates of the bottom-right corner. Ensures that the coordinates form a valid rectangle. |
|
inline |
Constructs a RectangleGeographicArea object from center coordinates and horizontal/vertical radii.
| coords | Center coordinates of the rectangle. |
| horizRadius | Horizontal radius in meters. |
| vertRadius | Vertical radius in meters. |
|
default |
Default copy constructor.
Creates a copy of an existing RectangleGeographicArea object.
| other | The object to copy. |
|
inlinenoexcept |
Default move constructor.
Moves an existing RectangleGeographicArea object into a new instance.
| obj | The object to move into this new instance. |
|
inlinenoexceptinherited |
Attempts to cast the current geographic area object to a specified subclass.
This is a template method.
| TSubclass | The subclass type to cast to. |
|
inlinenoexcept |
Checks if this rectangle completely contains another rectangle.
| area | The RectangleGeographicArea to check containment of. |
|
inlineinherited |
Checks if the specified point is contained within the geographic area.
| point | A Coordinates object representing the point to check. |
|
inlinenoexceptinherited |
Converts the geographic area to another type, if possible.
| area | A GeographicArea object to convert to. |
|
inlinenoexceptinherited |
Checks if two geographic areas are considered equal.
| other | Another GeographicArea object for comparison. |
|
inlinenoexcept |
Retrieves the coordinates of the bottom-right point of the rectangle.
|
inlinenoexceptinherited |
Get the bounding box.
This is the smallest rectangle that can be drawn around the area such that it surrounds this geographic area completely.
If the area is bigger than what is allowed in the WGS 84 coordinate system, the rectangle is truncated to valid WGS 84 coordinate values. The RectangleGeographicArea is always aligned with parallels and meridians.
|
inlinenoexceptinherited |
Retrieves the center point of the geographic area.
Calculates and returns the geographic center of the area.
|
inlinenoexcept |
Retrieves the coordinates of the top-left point of the rectangle.
|
inlinenoexcept |
Checks if this rectangle intersects with another rectangle.
| area | The RectangleGeographicArea to check intersection with. |
|
inlineoverrideinherited |
Determines if the current geographic area object is in its default state (unaltered since creation).
|
inlinenoexceptinherited |
Checks if the geographic area is empty.
|
inlinenoexcept |
Creates a new RectangleGeographicArea as the intersection of this rectangle and another.
| area | The RectangleGeographicArea to intersect with. |
|
inlinenoexcept |
Creates a new RectangleGeographicArea as the union of this rectangle and another.
| area | The RectangleGeographicArea to unite with. |
|
inlineexplicitnoexceptinherited |
Boolean conversion operator indicating if the geographic area is valid and not in its default state.
|
inlinenoexceptinherited |
Inequality comparison operator for geographic areas.
| area | Another GeographicArea object to compare against. |
|
default |
Default copy assignment.
Replaces the contents of this object with a copy of another RectangleGeographicArea object.
| other | The object to copy. |
|
inlinenoexcept |
Default move assignment.
Moves another RectangleGeographicArea object into this instance.
| obj | The object to move into this instance. |
|
inlinenoexceptinherited |
Equality comparison operator for geographic areas.
| area | Another GeographicArea object to compare against. |
|
inlinenoexcept |
Defines the rectangle based on a central point and dimensions.
| coords | Center coordinates of the rectangle. |
| horizRadius | Horizontal radius in meters from the center. |
| vertRadius | Vertical radius in meters from the center. |
|
inline |
Defines teh rectangle from top-left and bottom-right coordinates.
| coords1 | Coordinates of the top-left corner. |
| coords2 | Coordinates of the bottom-right corner. |
|
inlinenoexcept |
Defines the rectangle using latitude and longitude ranges.
| minLatitude | Minimum latitude of the rectangle. |
| maxLatitude | Maximum latitude of the rectangle. |
| minLongitude | Minimum longitude of the rectangle. |
| maxLongitude | Maximum longitude of the rectangle. |
|
inlinenoexcept |
Sets the bottom-right point of the rectangle.
| point | Coordinates of the new bottom-right point. |
|
inlinenoexcept |
Sets this rectangle to the intersection of itself and another rectangle.
| area | The RectangleGeographicArea to intersect with. |
|
inlinenoexcept |
Sets the top-left point of the rectangle.
| point | Coordinates of the new top-left point. |
|
inlinenoexcept |
Sets this rectangle to the union of itself and another rectangle.
| area | The RectangleGeographicArea to unite with. |
|
inlineinherited |
Retrieves the specific type of the geographic area.
|
inlinestaticconstexprnoexcept |
Get the type of the geographic area.