Class VoxelGrid::ConstAccessor

Nested Relationships

This class is a nested type of Template Class VoxelGrid.

Inheritance Relationships

Derived Type

Class Documentation

class ConstAccessor

Subclassed by Bonxai::VoxelGrid< DataT >::Accessor

Public Functions

inline ConstAccessor(const VoxelGrid &grid)
inline const DataT *value(const CoordT &coord) const

value getter.

Parameters:

coord – coordinate of the cell.

Returns:

return the pointer to the value or nullptr if not set.

inline bool isCellOn(const CoordT &coord) const

isCellOn only check if a cell is in “On” state

Parameters:

coordinate – of the cell.

inline const InnerGrid *lastInnerGrid() const

lastInnerGrid returns the pointer to the InnerGrid in the cache.

inline const LeafGrid *lastLeafGrid() const

lastLeafGrid returns the pointer to the LeafGrid in the cache.

inline const LeafGrid *getLeafGrid(const CoordT &coord) const

Protected Attributes

const VoxelGrid &grid_
mutable CoordT prev_root_coord_ = {std::numeric_limits<int32_t>::max(), 0, 0}
mutable CoordT prev_inner_coord_ = {std::numeric_limits<int32_t>::max(), 0, 0}
mutable const InnerGrid *prev_inner_ptr_ = nullptr
mutable const LeafGrid *prev_leaf_ptr_ = nullptr