UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
Loading...
Searching...
No Matches
ufo::detail::QTPNode< CT, Alpha > Struct Template Reference

Public Types

using value_type = ColorFine< CT, Alpha, false >
 

Public Member Functions

void add (std::uint32_t code, value_type const &color, std::uint32_t level)
 
void addChildData (std::vector< value_type > &data) const
 
bool compress (float threshold_sq)
 
bool compressible (float threshold_sq)
 
bool hasAllChildren () const
 
bool isLeaf () const
 
bool isParent () const
 
std::uint32_t numLeaves () const
 
value_type operator() (std::uint32_t code, std::uint32_t level) const
 

Static Public Member Functions

static std::uint32_t code (std::uint32_t x, std::uint32_t y)
 
static std::uint32_t numLevelsRequired (std::uint32_t x, std::uint32_t y)
 

Public Attributes

std::array< std::unique_ptr< QTPNode >, 4 > children {}
 
value_type data {}
 

Detailed Description

template<ColorType CT, bool Alpha>
struct ufo::detail::QTPNode< CT, Alpha >

Definition at line 68 of file qtp.hpp.

Member Typedef Documentation

◆ value_type

template<ColorType CT, bool Alpha>
using ufo::detail::QTPNode< CT, Alpha >::value_type = ColorFine<CT, Alpha, false>

Definition at line 69 of file qtp.hpp.

Member Function Documentation

◆ add()

template<ColorType CT, bool Alpha>
void ufo::detail::QTPNode< CT, Alpha >::add ( std::uint32_t  code,
value_type const &  color,
std::uint32_t  level 
)
inline

Definition at line 85 of file qtp.hpp.

◆ addChildData()

template<ColorType CT, bool Alpha>
void ufo::detail::QTPNode< CT, Alpha >::addChildData ( std::vector< value_type > &  data) const
inline

Definition at line 132 of file qtp.hpp.

◆ code()

template<ColorType CT, bool Alpha>
static std::uint32_t ufo::detail::QTPNode< CT, Alpha >::code ( std::uint32_t  x,
std::uint32_t  y 
)
inlinestatic

Definition at line 74 of file qtp.hpp.

◆ compress()

template<ColorType CT, bool Alpha>
bool ufo::detail::QTPNode< CT, Alpha >::compress ( float  threshold_sq)
inline

Definition at line 197 of file qtp.hpp.

◆ compressible()

template<ColorType CT, bool Alpha>
bool ufo::detail::QTPNode< CT, Alpha >::compressible ( float  threshold_sq)
inline

Definition at line 150 of file qtp.hpp.

◆ hasAllChildren()

template<ColorType CT, bool Alpha>
bool ufo::detail::QTPNode< CT, Alpha >::hasAllChildren ( ) const
inline

Definition at line 126 of file qtp.hpp.

◆ isLeaf()

template<ColorType CT, bool Alpha>
bool ufo::detail::QTPNode< CT, Alpha >::isLeaf ( ) const
inline

Definition at line 118 of file qtp.hpp.

◆ isParent()

template<ColorType CT, bool Alpha>
bool ufo::detail::QTPNode< CT, Alpha >::isParent ( ) const
inline

Definition at line 124 of file qtp.hpp.

◆ numLeaves()

template<ColorType CT, bool Alpha>
std::uint32_t ufo::detail::QTPNode< CT, Alpha >::numLeaves ( ) const
inline

Definition at line 251 of file qtp.hpp.

◆ numLevelsRequired()

template<ColorType CT, bool Alpha>
static std::uint32_t ufo::detail::QTPNode< CT, Alpha >::numLevelsRequired ( std::uint32_t  x,
std::uint32_t  y 
)
inlinestatic

Definition at line 79 of file qtp.hpp.

◆ operator()()

template<ColorType CT, bool Alpha>
value_type ufo::detail::QTPNode< CT, Alpha >::operator() ( std::uint32_t  code,
std::uint32_t  level 
) const
inline

Definition at line 103 of file qtp.hpp.

Member Data Documentation

◆ children

template<ColorType CT, bool Alpha>
std::array<std::unique_ptr<QTPNode>, 4> ufo::detail::QTPNode< CT, Alpha >::children {}

Definition at line 71 of file qtp.hpp.

◆ data

template<ColorType CT, bool Alpha>
value_type ufo::detail::QTPNode< CT, Alpha >::data {}

Definition at line 72 of file qtp.hpp.


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