Maps SDK for C++ 1.0.0
Loading...
Searching...
No Matches
gem::TilesCollectionGeographicArea Class Reference

TilesCollectionGeographicArea object. More...

Inheritance diagram for gem::TilesCollectionGeographicArea:
Collaboration diagram for gem::TilesCollectionGeographicArea:

Public Member Functions

 TilesCollectionGeographicArea (const TilesCollectionGeographicArea &)=default
 Default copy constructor.
 TilesCollectionGeographicArea (TilesCollectionGeographicArea &&obj) noexcept
 Default move constructor noexcept is deduced.
TilesCollectionGeographicArea & operator= (const TilesCollectionGeographicArea &obj)=default
 Default copy assignment.
TilesCollectionGeographicArea & operator= (TilesCollectionGeographicArea &&obj)
 Default move assignment noexcept is deduced.
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.

Detailed Description

TilesCollectionGeographicArea object.

Implements share-read / copy-on-write Api object over ITilesCollectionGeographicArea.

Constructor & Destructor Documentation

◆ TilesCollectionGeographicArea()

gem::TilesCollectionGeographicArea::TilesCollectionGeographicArea ( TilesCollectionGeographicArea && obj)
inlinenoexcept

Default move constructor noexcept is deduced.

Parameters
objThe object to move into this new instance.

Member Function Documentation

◆ cast()

template<typename TSubclass>
TSubclass gem::GeographicArea::cast ( ) const
inlinenoexceptinherited

Attempts to cast the current geographic area object to a specified subclass.

This is a template method.

Template Parameters
TSubclassThe subclass type to cast to.
Returns
An object of type TSubclass if the cast is successful; otherwise, a default-constructed object of TSubclass.

◆ containsCoordinates()

bool gem::GeographicArea::containsCoordinates ( Coordinates const & point) const
inlineinherited

Checks if the specified point is contained within the geographic area.

Parameters
pointA Coordinates object representing the point to check.
Returns
True if the point is within the geographic area, false otherwise.

◆ convert()

int gem::GeographicArea::convert ( GeographicArea & area) const
inlinenoexceptinherited

Converts the geographic area to another type, if possible.

Parameters
areaA GeographicArea object to convert to.
Returns
An integer indicating the success or failure of the conversion.

◆ equals()

bool gem::GeographicArea::equals ( GeographicArea const & other) const
inlinenoexceptinherited

Checks if two geographic areas are considered equal.

Parameters
otherAnother GeographicArea object for comparison.
Returns
true if the areas are equal, false otherwise.

◆ getBoundingBox()

RectangleGeographicArea gem::GeographicArea::getBoundingBox ( ) const
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.

Returns
A RectangleGeographicArea object representing the bounding box.

◆ getCenterPoint()

Coordinates gem::GeographicArea::getCenterPoint ( ) const
inlinenoexceptinherited

Retrieves the center point of the geographic area.

Calculates and returns the geographic center of the area.

Returns
Coordinates object representing the center point of the area.

◆ isDefault()

bool gem::GeographicArea::isDefault ( ) const
inlineoverrideinherited

Determines if the current geographic area object is in its default state (unaltered since creation).

Returns
true if the object is default, false otherwise.

◆ isEmpty()

bool gem::GeographicArea::isEmpty ( ) const
inlinenoexceptinherited

Checks if the geographic area is empty.

Returns
true if the area is empty, false otherwise.

◆ operator bool()

gem::GeographicArea::operator bool ( ) const
inlineexplicitnoexceptinherited

Boolean conversion operator indicating if the geographic area is valid and not in its default state.

Returns
true if the object is valid and not default, false otherwise.

◆ operator!=()

bool gem::GeographicArea::operator!= ( const GeographicArea & area) const
inlinenoexceptinherited

Inequality comparison operator for geographic areas.

Parameters
areaAnother GeographicArea object to compare against.
Returns
true if the areas are not equal, false otherwise.

◆ operator=() [1/2]

TilesCollectionGeographicArea & gem::TilesCollectionGeographicArea::operator= ( const TilesCollectionGeographicArea & obj)
default

Default copy assignment.

Parameters
objThe object to copy.
Returns
A reference to this updated instance.

◆ operator=() [2/2]

TilesCollectionGeographicArea & gem::TilesCollectionGeographicArea::operator= ( TilesCollectionGeographicArea && obj)
inline

Default move assignment noexcept is deduced.

Parameters
objThe object to move into this instance.
Returns
A reference to this updated instance.

◆ operator==()

bool gem::GeographicArea::operator== ( const GeographicArea & area) const
inlinenoexceptinherited

Equality comparison operator for geographic areas.

Parameters
areaAnother GeographicArea object to compare against.
Returns
true if the areas are equal, false otherwise.

◆ type() [1/2]

EGeographicAreaType gem::GeographicArea::type ( ) const
inlineinherited

Retrieves the specific type of the geographic area.

Returns
The type of the geographic area as an EGeographicAreaType enumeration.

◆ type() [2/2]

constexpr EGeographicAreaType gem::TilesCollectionGeographicArea::type ( )
inlinestaticconstexprnoexcept

Get the type of the geographic area.

Returns
The type of the geographic area as a tile collection.