olp-cpp-sdk  1.22.0
Public Member Functions | List of all members
olp::geo::ISubdivisionScheme Class Referenceabstract

An abstract tiling subdivision scheme. More...

#include <ISubdivisionScheme.h>

Inheritance diagram for olp::geo::ISubdivisionScheme:
Inheritance graph
[legend]

Public Member Functions

virtual bool IsEqualTo (const ISubdivisionScheme &other) const =0
 Checks whether two schemes are equal. More...
 
virtual const std::string & GetName () const =0
 Gets the unique scheme name. More...
 
virtual math::Size2u GetSubdivisionAt (unsigned level) const =0
 Gets the number of child tiles into which a tile splits at a given level. More...
 
virtual math::Size2u GetLevelSize (unsigned level) const =0
 Gets the size of a given level. More...
 

Detailed Description

An abstract tiling subdivision scheme.

Member Function Documentation

◆ GetLevelSize()

virtual math::Size2u olp::geo::ISubdivisionScheme::GetLevelSize ( unsigned  level) const
pure virtual

Gets the size of a given level.

Parameters
[in]levelThe subdivision level.
Returns
The horizontal and vertical numbers of tiles (for example, 2^level × 2^level).

Implemented in olp::geo::QuadTreeSubdivisionScheme, and olp::geo::HalfQuadTreeSubdivisionScheme.

◆ GetName()

virtual const std::string& olp::geo::ISubdivisionScheme::GetName ( ) const
pure virtual

Gets the unique scheme name.

Returns
The scheme name.

Implemented in olp::geo::QuadTreeSubdivisionScheme, and olp::geo::HalfQuadTreeSubdivisionScheme.

◆ GetSubdivisionAt()

virtual math::Size2u olp::geo::ISubdivisionScheme::GetSubdivisionAt ( unsigned  level) const
pure virtual

Gets the number of child tiles into which a tile splits at a given level.

Parameters
[in]levelThe subdivision level.
Returns
The horizontal and vertical numbers of child tiles (for example, 2 × 2).

Implemented in olp::geo::QuadTreeSubdivisionScheme, and olp::geo::HalfQuadTreeSubdivisionScheme.

◆ IsEqualTo()

virtual bool olp::geo::ISubdivisionScheme::IsEqualTo ( const ISubdivisionScheme other) const
pure virtual

Checks whether two schemes are equal.

Parameters
[in]otherThe other scheme.
Returns
True if the schemes are equal; false otherwise.

Implemented in olp::geo::QuadTreeSubdivisionScheme, and olp::geo::HalfQuadTreeSubdivisionScheme.


The documentation for this class was generated from the following file: