Voxel Class Reference

A voxel storing whether it is occupied or free and the object label it is occupied by. More...

#include <VisionX/libraries/VoxelGrids/LabelOccupancy/VoxelGrid.h>

Public Member Functions

Label getLabel () const
 Get the label. Voxel must be occupied.
 
bool isFree () const
 Indicate whether this voxel is free (i.e. it is not occupied).
 
bool isOccupied () const
 Indicate whether this voxel is occupied.
 
void setFree ()
 Set the voxel to free, i.e. unoccupied.
 
void setOccupied (Label label)
 Set the voxel to occupied and set its label.
 
 Voxel ()
 Construct an unoccupied voxel.
 
 Voxel (Label label)
 Construct an occupied voxel with given label.
 

Detailed Description

A voxel storing whether it is occupied or free and the object label it is occupied by.

Constructor & Destructor Documentation

◆ Voxel() [1/2]

Voxel ( )

Construct an unoccupied voxel.

◆ Voxel() [2/2]

Voxel ( Label label)

Construct an occupied voxel with given label.

Member Function Documentation

◆ getLabel()

Label getLabel ( ) const

Get the label. Voxel must be occupied.

◆ isFree()

bool isFree ( ) const

Indicate whether this voxel is free (i.e. it is not occupied).

◆ isOccupied()

bool isOccupied ( ) const

Indicate whether this voxel is occupied.

◆ setFree()

void setFree ( )

Set the voxel to free, i.e. unoccupied.

◆ setOccupied()

void setOccupied ( Label label)

Set the voxel to occupied and set its label.


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