This class only helps to dynamic cast the octant to the right type and builds the base of nodes and blocks.
More...
#include <octant.hpp>
|
| template<typename DerT , typename DatT , int BS> |
| class | BlockSingleRes |
| |
| template<typename DatT , int BS, typename DerT > |
| class | BlockMultiRes |
| |
| template<typename DatT , typename DerT > |
| class | NodeMultiRes |
| |
This class only helps to dynamic cast the octant to the right type and builds the base of nodes and blocks.
◆ OctantBase()
| se::OctantBase::OctantBase |
( |
const bool |
is_block, |
|
|
const Eigen::Vector3i & |
coord, |
|
|
OctantBase * |
parent_ptr = nullptr |
|
) |
| |
Setup a octant via its parent.
- Parameters
-
| is_block | The block state of the octant |
| coord | The voxel coordinates of the octant |
| parent_ptr | The pointer to the parent of the octant |
◆ isBlock()
| bool se::OctantBase::isBlock |
( |
| ) |
const |
|
inline |
Verify if an octant is a block.
- Returns
- True if the octant is a block, false otherwise
◆ getCoord()
| Eigen::Vector3i se::OctantBase::getCoord |
( |
| ) |
const |
|
inline |
Get the voxel coordinates of the octant.
- Returns
- The voxel coordinates of the octant
◆ getParent() [1/2]
Get the parent pointer of the octant.
- Returns
- The parent pointer of the octant
◆ getParent() [2/2]
◆ getTimeStamp()
| int se::OctantBase::getTimeStamp |
( |
| ) |
const |
|
inline |
Get the time stamp of an octant.
- Note
- The time stamp is defined as an integer
- Returns
- The time stamp of the octant
◆ setTimeStamp()
| void se::OctantBase::setTimeStamp |
( |
const int |
time_stamp | ) |
|
|
inline |
Set the time stamp of an octant.
- Note
- The time stamp is defined as an integer
- Parameters
-
| [in] | time_stamp | The time stamp of the octant |
◆ getActive()
| bool se::OctantBase::getActive |
( |
| ) |
const |
|
inline |
Get the active state of an octant.
- Returns
- The active state of the octant
◆ setActive()
| void se::OctantBase::setActive |
( |
bool |
is_active | ) |
|
|
inline |
Set the active state of an octant.
- Parameters
-
| [in] | is_active | The active state of the octant |
◆ getChildrenMask()
| unsigned int se::OctantBase::getChildrenMask |
( |
| ) |
const |
|
inline |
◆ clearChildrenMask()
| void se::OctantBase::clearChildrenMask |
( |
| ) |
|
|
inline |
Clear the children mask.
- Warning
- Only use this function if all children pointer are 'nullptr's.
◆ BlockSingleRes
template<typename DerT , typename DatT , int BS>
◆ BlockMultiRes
template<typename DatT , int BS, typename DerT >
◆ NodeMultiRes
template<typename DatT , typename DerT >
◆ is_block_
| const bool se::OctantBase::is_block_ |
|
protected |
◆ parent_ptr_
Every node/block (other than root) needs a parent.
◆ coord_
| const Eigen::Vector3i se::OctantBase::coord_ |
|
protected |
The coordinates of the block (left, front , bottom corner)
◆ time_stamp_
| int se::OctantBase::time_stamp_ |
|
protected |
The frame of the last update.
◆ is_active_
| bool se::OctantBase::is_active_ |
|
protected |
The active state of the octant.
◆ children_mask_
| unsigned int se::OctantBase::children_mask_ |
|
protected |
The documentation for this class was generated from the following file: