Takes a pcl::PointCloud and turns it into raw pointers for opengl rendering. More...
Public Types | |
typedef pcl::PointCloud< Point > | Cloud |
typedef pcl::PointXYZRGB | Point |
typedef unsigned char | UByte |
Public Member Functions | |
void | bind () const |
CloudRawRGB (const Cloud &cloud) | |
CloudRawRGB () | |
void | loadIntoGLBuffer () |
Static Public Member Functions | |
static const UByte * | GetColors (const Cloud &cloud) |
static const float * | GetVerts (const Cloud &cloud) |
Public Attributes | |
const UByte * | colors |
the color pointer colors[i*STEP_C] should give the R channel of each color. | |
GLuint | glbuffer |
bool | loaded |
size_t | n |
number of points | |
const float * | verts |
the vertice pointer verts[i*STEP_V] should give the X of each vertice. | |
Static Public Attributes | |
static const size_t | PER_C = 3 |
static const size_t | PER_V = 3 |
static const size_t | STEP_C = sizeof(Point) / sizeof(UByte) |
static const size_t | STEP_V = sizeof(Point) / sizeof(UByte) |
Takes a pcl::PointCloud and turns it into raw pointers for opengl rendering.
Definition at line 146 of file gl_code.cpp.
typedef pcl::PointCloud<Point> CloudRawRGB::Cloud |
Definition at line 149 of file gl_code.cpp.
typedef pcl::PointXYZRGB CloudRawRGB::Point |
Definition at line 148 of file gl_code.cpp.
typedef unsigned char CloudRawRGB::UByte |
Definition at line 151 of file gl_code.cpp.
CloudRawRGB::CloudRawRGB | ( | ) | [inline] |
Definition at line 160 of file gl_code.cpp.
CloudRawRGB::CloudRawRGB | ( | const Cloud & | cloud | ) | [inline] |
Definition at line 163 of file gl_code.cpp.
void CloudRawRGB::bind | ( | ) | const [inline] |
Definition at line 169 of file gl_code.cpp.
Definition at line 192 of file gl_code.cpp.
static const float* CloudRawRGB::GetVerts | ( | const Cloud & | cloud | ) | [inline, static] |
Definition at line 187 of file gl_code.cpp.
void CloudRawRGB::loadIntoGLBuffer | ( | ) | [inline] |
Definition at line 173 of file gl_code.cpp.
const UByte* CloudRawRGB::colors |
the color pointer colors[i*STEP_C] should give the R channel of each color.
Definition at line 157 of file gl_code.cpp.
GLuint CloudRawRGB::glbuffer |
Definition at line 200 of file gl_code.cpp.
bool CloudRawRGB::loaded |
Definition at line 201 of file gl_code.cpp.
size_t CloudRawRGB::n |
number of points
Definition at line 158 of file gl_code.cpp.
const size_t CloudRawRGB::PER_C = 3 [static] |
Definition at line 155 of file gl_code.cpp.
const size_t CloudRawRGB::PER_V = 3 [static] |
Definition at line 153 of file gl_code.cpp.
const size_t CloudRawRGB::STEP_C = sizeof(Point) / sizeof(UByte) [static] |
Definition at line 154 of file gl_code.cpp.
const size_t CloudRawRGB::STEP_V = sizeof(Point) / sizeof(UByte) [static] |
Definition at line 152 of file gl_code.cpp.
const float* CloudRawRGB::verts |
the vertice pointer verts[i*STEP_V] should give the X of each vertice.
Definition at line 156 of file gl_code.cpp.