#include <OcTreeDrawer.h>
|
void | clearCubes (GLfloat ***glArray, unsigned int &glArraySize, GLfloat **glColorArray=NULL) |
| clear OpenGL visualization More...
|
|
void | clearOcTreeStructure () |
|
void | drawAxes () const |
|
void | drawCubes (GLfloat **cubeArray, unsigned int cubeArraySize, GLfloat *cubeColorArray=NULL) const |
|
void | drawFreeVoxels () const |
|
void | drawOccupiedVoxels () const |
|
void | drawOctreeGrid () const |
|
void | drawSelection () const |
|
unsigned int | generateCube (const octomap::OcTreeVolume &v, const std::vector< octomath::Vector3 > &cube_template, const unsigned int ¤t_array_idx, GLfloat ***glArray) |
| add one cube to arrays More...
|
|
void | generateCubes (const std::list< octomap::OcTreeVolume > &voxels, GLfloat ***glArray, unsigned int &glArraySize, octomath::Pose6D &origin, GLfloat **glColorArray=NULL) |
|
void | initCubeTemplate (const octomath::Pose6D &origin, std::vector< octomath::Vector3 > &cube_template) |
| setup cube template More...
|
|
void | initGLArrays (const unsigned int &num_cubes, unsigned int &glArraySize, GLfloat ***glArray, GLfloat **glColorArray) |
| setup OpenGL arrays More...
|
|
void | initOctreeGridVis () |
|
unsigned int | setCubeColorHeightmap (const octomap::OcTreeVolume &v, const unsigned int ¤t_array_idx, GLfloat **glColorArray) |
|
unsigned int | setCubeColorRGBA (const unsigned char &r, const unsigned char &g, const unsigned char &b, const unsigned char &a, const unsigned int ¤t_array_idx, GLfloat **glColorArray) |
|
void | heightMapColor (double h, GLfloat *glArrayPos) const |
|
void | heightMapGray (double h, GLfloat *glArrayPos) const |
|
Definition at line 32 of file OcTreeDrawer.h.
◆ OcTreeDrawer()
octomap::OcTreeDrawer::OcTreeDrawer |
( |
| ) |
|
◆ ~OcTreeDrawer()
octomap::OcTreeDrawer::~OcTreeDrawer |
( |
| ) |
|
|
virtual |
◆ clear()
void octomap::OcTreeDrawer::clear |
( |
| ) |
|
|
virtual |
◆ clearCubes()
void octomap::OcTreeDrawer::clearCubes |
( |
GLfloat *** |
glArray, |
|
|
unsigned int & |
glArraySize, |
|
|
GLfloat ** |
glColorArray = NULL |
|
) |
| |
|
protected |
◆ clearOcTreeSelection()
void octomap::OcTreeDrawer::clearOcTreeSelection |
( |
| ) |
|
◆ clearOcTreeStructure()
void octomap::OcTreeDrawer::clearOcTreeStructure |
( |
| ) |
|
|
protected |
◆ draw()
void octomap::OcTreeDrawer::draw |
( |
| ) |
const |
|
virtual |
◆ drawAxes()
void octomap::OcTreeDrawer::drawAxes |
( |
| ) |
const |
|
protected |
◆ drawCubes()
void octomap::OcTreeDrawer::drawCubes |
( |
GLfloat ** |
cubeArray, |
|
|
unsigned int |
cubeArraySize, |
|
|
GLfloat * |
cubeColorArray = NULL |
|
) |
| const |
|
protected |
◆ drawFreeVoxels()
void octomap::OcTreeDrawer::drawFreeVoxels |
( |
| ) |
const |
|
protected |
◆ drawOccupiedVoxels()
void octomap::OcTreeDrawer::drawOccupiedVoxels |
( |
| ) |
const |
|
protected |
◆ drawOctreeGrid()
void octomap::OcTreeDrawer::drawOctreeGrid |
( |
| ) |
const |
|
protected |
◆ drawSelection()
void octomap::OcTreeDrawer::drawSelection |
( |
| ) |
const |
|
protected |
◆ enableAxes()
void octomap::OcTreeDrawer::enableAxes |
( |
bool |
enabled = true | ) |
|
|
inline |
◆ enableFreespace()
void octomap::OcTreeDrawer::enableFreespace |
( |
bool |
enabled = true | ) |
|
|
inline |
◆ enableOcTree()
void octomap::OcTreeDrawer::enableOcTree |
( |
bool |
enabled = true | ) |
|
◆ enableOcTreeCells()
void octomap::OcTreeDrawer::enableOcTreeCells |
( |
bool |
enabled = true | ) |
|
|
inline |
◆ enableSelection()
void octomap::OcTreeDrawer::enableSelection |
( |
bool |
enabled = true | ) |
|
|
inline |
◆ generateCube()
unsigned int octomap::OcTreeDrawer::generateCube |
( |
const octomap::OcTreeVolume & |
v, |
|
|
const std::vector< octomath::Vector3 > & |
cube_template, |
|
|
const unsigned int & |
current_array_idx, |
|
|
GLfloat *** |
glArray |
|
) |
| |
|
protected |
◆ generateCubes()
void octomap::OcTreeDrawer::generateCubes |
( |
const std::list< octomap::OcTreeVolume > & |
voxels, |
|
|
GLfloat *** |
glArray, |
|
|
unsigned int & |
glArraySize, |
|
|
octomath::Pose6D & |
origin, |
|
|
GLfloat ** |
glColorArray = NULL |
|
) |
| |
|
protected |
Initializes the OpenGL visualization for a list of OcTreeVolumes The array is cleared first, if needed rotates cubes to correct reference frame
Definition at line 508 of file OcTreeDrawer.cpp.
◆ initCubeTemplate()
◆ initGLArrays()
void octomap::OcTreeDrawer::initGLArrays |
( |
const unsigned int & |
num_cubes, |
|
|
unsigned int & |
glArraySize, |
|
|
GLfloat *** |
glArray, |
|
|
GLfloat ** |
glColorArray |
|
) |
| |
|
protected |
◆ initOctreeGridVis()
void octomap::OcTreeDrawer::initOctreeGridVis |
( |
| ) |
|
|
protected |
◆ setAlphaOccupied()
void octomap::OcTreeDrawer::setAlphaOccupied |
( |
double |
alpha | ) |
|
◆ setAlternativeDrawing()
void octomap::OcTreeDrawer::setAlternativeDrawing |
( |
bool |
flag | ) |
|
|
inline |
◆ setCubeColorHeightmap()
unsigned int octomap::OcTreeDrawer::setCubeColorHeightmap |
( |
const octomap::OcTreeVolume & |
v, |
|
|
const unsigned int & |
current_array_idx, |
|
|
GLfloat ** |
glColorArray |
|
) |
| |
|
protected |
◆ setCubeColorRGBA()
unsigned int octomap::OcTreeDrawer::setCubeColorRGBA |
( |
const unsigned char & |
r, |
|
|
const unsigned char & |
g, |
|
|
const unsigned char & |
b, |
|
|
const unsigned char & |
a, |
|
|
const unsigned int & |
current_array_idx, |
|
|
GLfloat ** |
glColorArray |
|
) |
| |
|
protected |
◆ setMax_tree_depth()
void octomap::OcTreeDrawer::setMax_tree_depth |
( |
unsigned int |
max_tree_depth | ) |
|
|
inline |
◆ setOcTree() [1/2]
void octomap::OcTreeDrawer::setOcTree |
( |
const AbstractOcTree & |
octree | ) |
|
|
inline |
◆ setOcTree() [2/2]
◆ setOcTreeSelection()
void octomap::OcTreeDrawer::setOcTreeSelection |
( |
const std::list< octomap::OcTreeVolume > & |
selectedPoints | ) |
|
◆ setOrigin()
◆ initial_origin
◆ m_alphaOccupied
double octomap::OcTreeDrawer::m_alphaOccupied |
|
protected |
◆ m_alternativeDrawing
bool octomap::OcTreeDrawer::m_alternativeDrawing |
|
protected |
◆ m_displayAxes
bool octomap::OcTreeDrawer::m_displayAxes |
|
protected |
◆ m_drawFree
bool octomap::OcTreeDrawer::m_drawFree |
|
protected |
◆ m_drawOccupied
bool octomap::OcTreeDrawer::m_drawOccupied |
|
protected |
◆ m_drawOcTreeGrid
bool octomap::OcTreeDrawer::m_drawOcTreeGrid |
|
protected |
◆ m_drawSelection
bool octomap::OcTreeDrawer::m_drawSelection |
|
protected |
◆ m_freeArray
GLfloat** octomap::OcTreeDrawer::m_freeArray |
|
protected |
◆ m_freeSize
unsigned int octomap::OcTreeDrawer::m_freeSize |
|
protected |
◆ m_freeThresArray
GLfloat** octomap::OcTreeDrawer::m_freeThresArray |
|
protected |
◆ m_freeThresSize
unsigned int octomap::OcTreeDrawer::m_freeThresSize |
|
protected |
◆ m_grid_voxels
◆ m_max_tree_depth
unsigned int octomap::OcTreeDrawer::m_max_tree_depth |
|
protected |
◆ m_occupiedArray
GLfloat** octomap::OcTreeDrawer::m_occupiedArray |
|
protected |
◆ m_occupiedColorArray
GLfloat* octomap::OcTreeDrawer::m_occupiedColorArray |
|
protected |
◆ m_occupiedSize
unsigned int octomap::OcTreeDrawer::m_occupiedSize |
|
protected |
◆ m_occupiedThresArray
GLfloat** octomap::OcTreeDrawer::m_occupiedThresArray |
|
protected |
OpenGL representation of Octree cells (cubes)
Definition at line 122 of file OcTreeDrawer.h.
◆ m_occupiedThresColorArray
GLfloat* octomap::OcTreeDrawer::m_occupiedThresColorArray |
|
protected |
Color array for occupied cells (height)
Definition at line 134 of file OcTreeDrawer.h.
◆ m_occupiedThresSize
unsigned int octomap::OcTreeDrawer::m_occupiedThresSize |
|
protected |
◆ m_octree_grid_vis_initialized
bool octomap::OcTreeDrawer::m_octree_grid_vis_initialized |
|
protected |
◆ m_selectionArray
GLfloat** octomap::OcTreeDrawer::m_selectionArray |
|
protected |
◆ m_selectionSize
unsigned int octomap::OcTreeDrawer::m_selectionSize |
|
protected |
◆ m_update
bool octomap::OcTreeDrawer::m_update |
|
mutableprotected |
◆ map_id
int octomap::OcTreeDrawer::map_id |
|
protected |
◆ octree_grid_vertex_array
GLfloat* octomap::OcTreeDrawer::octree_grid_vertex_array |
|
protected |
OpenGL representation of Octree (grid structure)
Definition at line 139 of file OcTreeDrawer.h.
◆ octree_grid_vertex_size
unsigned int octomap::OcTreeDrawer::octree_grid_vertex_size |
|
protected |
◆ origin
The documentation for this class was generated from the following files: