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

A quadtree subdivision scheme. More...

#include <QuadTreeSubdivisionScheme.h>

Inheritance diagram for olp::geo::QuadTreeSubdivisionScheme:
Inheritance graph
[legend]
Collaboration diagram for olp::geo::QuadTreeSubdivisionScheme:
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 quadtree subdivision scheme.

Subdivides tiles at all levels into four equal-sized sub-tiles.

Member Function Documentation

◆ GetLevelSize()

math::Size2u olp::geo::QuadTreeSubdivisionScheme::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::QuadTreeSubdivisionScheme::GetName ( ) const
overridevirtual

Gets the unique scheme name.

Returns
The scheme name.

Implements olp::geo::ISubdivisionScheme.

◆ GetSubdivisionAt()

math::Size2u olp::geo::QuadTreeSubdivisionScheme::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::QuadTreeSubdivisionScheme::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: