MRPT  1.9.9
Namespaces | Functions | Variables
COctoMapVoxels.cpp File Reference
#include "opengl-precomp.h"
#include <mrpt/opengl/COctoMapVoxels.h>
#include <mrpt/opengl/opengl_api.h>
#include <mrpt/serialization/CArchive.h>
#include <mrpt/serialization/stl_serialization.h>
Include dependency graph for COctoMapVoxels.cpp:

Go to the source code of this file.

Namespaces

 mrpt::opengl
 The namespace for 3D scene representation and rendering.
 

Functions

CArchivemrpt::opengl::operator<< (CArchive &out, const COctoMapVoxels::TInfoPerVoxelSet &a)
 
CArchivemrpt::opengl::operator>> (CArchive &in, COctoMapVoxels::TInfoPerVoxelSet &a)
 
CArchivemrpt::opengl::operator<< (CArchive &out, const COctoMapVoxels::TGridCube &a)
 
CArchivemrpt::opengl::operator>> (CArchive &in, COctoMapVoxels::TGridCube &a)
 
CArchivemrpt::opengl::operator<< (CArchive &out, const COctoMapVoxels::TVoxel &a)
 
CArchivemrpt::opengl::operator>> (CArchive &in, COctoMapVoxels::TVoxel &a)
 
bool sort_voxels_z (const COctoMapVoxels::TVoxel &a, const COctoMapVoxels::TVoxel &b)
 

Variables

static const uint8_t grid_line_indices []
 
static const uint8_t cube_indices [2 *6 *3]
 
static const mrpt::math::TPoint3Df normals_cube [6 *2]
 

Function Documentation

◆ sort_voxels_z()

bool sort_voxels_z ( const COctoMapVoxels::TVoxel a,
const COctoMapVoxels::TVoxel b 
)

Definition at line 315 of file COctoMapVoxels.cpp.

References mrpt::opengl::COctoMapVoxels::TVoxel::coords, and mrpt::math::TPoint3D_data< T >::z.

Referenced by mrpt::opengl::COctoMapVoxels::sort_voxels_by_z().

Here is the caller graph for this function:

Variable Documentation

◆ cube_indices

const uint8_t cube_indices[2 *6 *3]
static
Initial value:
= {
0, 1, 2, 0, 2, 3,
3, 4, 0, 4, 5, 0,
0, 5, 6, 6, 1, 0,
1, 6, 7, 7, 2, 1,
7, 3, 4, 2, 3, 7,
4, 7, 6, 5, 6, 4}

Definition at line 80 of file COctoMapVoxels.cpp.

Referenced by mrpt::opengl::COctoMapVoxels::onUpdateBuffers_Triangles().

◆ grid_line_indices

const uint8_t grid_line_indices[]
static
Initial value:
= {0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6,
6, 7, 7, 4, 0, 5, 1, 6, 2, 7, 3, 4}

Definition at line 77 of file COctoMapVoxels.cpp.

Referenced by mrpt::opengl::COctoMapVoxels::onUpdateBuffers_Wireframe().

◆ normals_cube

const mrpt::math::TPoint3Df normals_cube[6 *2]
static
Initial value:
= {
{1, 0, 0}, {1, 0, 0},
{0, 1, 0}, {0, 1, 0},
{0, 0, 1}, {0, 0, 1},
{0, -1, 0}, {0, -1, 0},
{0, 0, -1}, {0, 0, -1},
{-1, 0, 0}, {-1, 0, 0}}

Definition at line 95 of file COctoMapVoxels.cpp.

Referenced by mrpt::opengl::COctoMapVoxels::onUpdateBuffers_Triangles().




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020