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


Public Member Functions | |
| PolygonGeographicArea () | |
| Default constructor. | |
| PolygonGeographicArea (CoordinatesList const &coords) | |
| Constructs a PolygonGeographicArea object with a list of coordinates. | |
| PolygonGeographicArea (Api *api) | |
| Constructs a PolygonGeographicArea object by directly associating it with an existing API interface. | |
| PolygonGeographicArea (const Api &api) | |
| Constructs a PolygonGeographicArea object from an existing API interface by copying. | |
| PolygonGeographicArea (const PolygonGeographicArea &other)=default | |
| Copy constructor. | |
| PolygonGeographicArea (PolygonGeographicArea &&other) noexcept | |
| Move constructor. | |
| PolygonGeographicArea & | operator= (const PolygonGeographicArea &other)=default |
| Copy assignment operator. | |
| PolygonGeographicArea & | operator= (PolygonGeographicArea &&other) noexcept |
| Move assignment operator. | |
| CoordinatesList | getCoordinates () const noexcept |
| Retrieves the coordinates that define the polygon. | |
| PolygonGeographicArea & | setCoordinates (CoordinatesList const &list) noexcept |
| Sets the coordinates that define the polygon. | |
| 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 |
| Retrieves the static type of the geographic area as a polygon. | |
PolygonGeographicArea object.
Implements share-read / copy-on-write Api object over IPolygonGeographicArea.
|
inline |
Default constructor.
Initializes a new instance of the PolygonGeographicArea class without setting coordinates.
|
inline |
Constructs a PolygonGeographicArea object with a list of coordinates.
| coords | A list of coordinates defining the polygon. |
|
inline |
Constructs a PolygonGeographicArea object by directly associating it with an existing API interface.
| api | Pointer to an existing Api interface to associate with this polygon. |
|
inline |
Constructs a PolygonGeographicArea object from an existing API interface by copying.
| api | Reference to an existing Api interface to associate with this polygon. |
|
default |
Copy constructor.
Creates a copy of an existing PolygonGeographicArea object.
| other | The object to copy. |
|
inlinenoexcept |
Move constructor.
Moves an existing PolygonGeographicArea object into a new instance.
| other | 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. |
|
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. |
|
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 that define the polygon.
|
inlineoverrideinherited |
Determines if the current geographic area object is in its default state (unaltered since creation).
|
inlinenoexceptinherited |
Checks if the geographic area is empty.
|
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 |
Copy assignment operator.
Replaces the contents of this object with a copy of another PolygonGeographicArea object.
| other | The object to copy. |
|
inlinenoexcept |
Move assignment operator.
Moves another PolygonGeographicArea object into this instance.
| other | The object to move into this instance. |
|
inlinenoexceptinherited |
Equality comparison operator for geographic areas.
| area | Another GeographicArea object to compare against. |
|
inlinenoexcept |
Sets the coordinates that define the polygon.
| list | A list of coordinates to define the polygon. |
|
inlineinherited |
Retrieves the specific type of the geographic area.
|
inlinestaticconstexprnoexcept |
Retrieves the static type of the geographic area as a polygon.