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

A subdivision scheme used to represent half quadtrees. More...

#include <HalfQuadTreeSubdivisionScheme.h>

Inheritance diagram for olp::geo::HalfQuadTreeSubdivisionScheme:
Inheritance graph
[legend]
Collaboration diagram for olp::geo::HalfQuadTreeSubdivisionScheme:
Collaboration graph
[legend]

Public Member Functions

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

Detailed Description

A subdivision scheme used to represent half quadtrees.

Subdivides tiles of level 0 into left and right parts. At other levels, it subdivides tiles into four equal-sized child tiles.

Member Function Documentation

◆ GetLevelSize()

math::Size2u olp::geo::HalfQuadTreeSubdivisionScheme::GetLevelSize ( unsigned  level) const
overridevirtual

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).

Implements olp::geo::ISubdivisionScheme.

◆ GetName()

const std::string& olp::geo::HalfQuadTreeSubdivisionScheme::GetName ( ) const
overridevirtual

Gets the unique scheme name.

Returns
The scheme name.

Implements olp::geo::ISubdivisionScheme.

◆ GetSubdivisionAt()

math::Size2u olp::geo::HalfQuadTreeSubdivisionScheme::GetSubdivisionAt ( unsigned  level) const
overridevirtual

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).

Implements olp::geo::ISubdivisionScheme.

◆ IsEqualTo()

bool olp::geo::HalfQuadTreeSubdivisionScheme::IsEqualTo ( const ISubdivisionScheme other) const
overridevirtual

Checks whether two schemes are equal.

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

Implements olp::geo::ISubdivisionScheme.


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