EasyNav Plugins
Loading...
Searching...
No Matches
VoxelGrid< DataT >::ConstAccessor Class Reference

#include <bonxai.hpp>

Inheritance diagram for VoxelGrid< DataT >::ConstAccessor:
Collaboration diagram for VoxelGrid< DataT >::ConstAccessor:

Public Member Functions

 ConstAccessor (const VoxelGrid &grid)
const LeafGridgetLeafGrid (const CoordT &coord) const
bool isCellOn (const CoordT &coord) const
 isCellOn only check if a cell is in "On" state
const InnerGridlastInnerGrid () const
 lastInnerGrid returns the pointer to the InnerGrid in the cache.
const LeafGridlastLeafGrid () const
 lastLeafGrid returns the pointer to the LeafGrid in the cache.
const DataT * value (const CoordT &coord) const
 value getter.

Protected Attributes

const VoxelGridgrid_
CoordT prev_inner_coord_ = {std::numeric_limits<int32_t>::max(), 0, 0}
const InnerGridprev_inner_ptr_ = nullptr
const LeafGridprev_leaf_ptr_ = nullptr
CoordT prev_root_coord_ = {std::numeric_limits<int32_t>::max(), 0, 0}

Constructor & Destructor Documentation

◆ ConstAccessor()

template<typename DataT>
ConstAccessor ( const VoxelGrid & grid)

Member Function Documentation

◆ getLeafGrid()

template<typename DataT>
const VoxelGrid< DataT >::LeafGrid * getLeafGrid ( const CoordT & coord) const
nodiscard

◆ isCellOn()

template<typename DataT>
bool isCellOn ( const CoordT & coord) const
nodiscard

isCellOn only check if a cell is in "On" state

Parameters
coordinateof the cell.

◆ lastInnerGrid()

template<typename DataT>
const InnerGrid * lastInnerGrid ( ) const
nodiscard

lastInnerGrid returns the pointer to the InnerGrid in the cache.

◆ lastLeafGrid()

template<typename DataT>
const LeafGrid * lastLeafGrid ( ) const
nodiscard

lastLeafGrid returns the pointer to the LeafGrid in the cache.

◆ value()

template<typename DataT>
const DataT * value ( const CoordT & coord) const
nodiscard

value getter.

Parameters
coordcoordinate of the cell.
Returns
return the pointer to the value or nullptr if not set.

Member Data Documentation

◆ grid_

template<typename DataT>
const VoxelGrid& grid_
protected

◆ prev_inner_coord_

template<typename DataT>
CoordT prev_inner_coord_ = {std::numeric_limits<int32_t>::max(), 0, 0}
mutableprotected

◆ prev_inner_ptr_

template<typename DataT>
const InnerGrid* prev_inner_ptr_ = nullptr
mutableprotected

◆ prev_leaf_ptr_

template<typename DataT>
const LeafGrid* prev_leaf_ptr_ = nullptr
mutableprotected

◆ prev_root_coord_

template<typename DataT>
CoordT prev_root_coord_ = {std::numeric_limits<int32_t>::max(), 0, 0}
mutableprotected

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