#include <rtcGraphicsHelper.h>
Public Member Functions | |
void | drawCoordinateFrame (double scale=1.0) |
void | drawGrid (double center_x=0, double center_y=0, int size=100, double resolution=1.0) const |
void | drawSphere (double x, double y, double z, double scale=1.0) |
Vec3uc | getColorFromPalette (int index) |
GraphicsHelper (void) | |
~GraphicsHelper (void) | |
Protected Member Functions | |
void | initializeArrow () |
GLint | initializeSphere () |
Protected Attributes | |
bool | arrow_initialized |
GLuint | arrow_quad_normals_vbo |
GLuint | arrow_quad_vertices_vbo |
GLuint | arrow_triangle_normals_vbo |
GLuint | arrow_triangle_vertices_vbo |
int | num_sphere_vertices |
bool | sphere_display_initialized |
GLint | sphere_display_list |
GLuint | sphere_normals_vbo |
GLuint | sphere_vertices_vbo |
Static Protected Attributes | |
static const unsigned char | graphics_colorpalette [COLOR_PALETTE_SIZE][3] |
static const GLbyte | sphere_face_indicies [180][6] |
static const GLfloat | sphere_normals [102][3] |
static const GLfloat | sphere_vertices [92][3] |
Definition at line 15 of file rtcGraphicsHelper.h.
rtc::GraphicsHelper::GraphicsHelper | ( | void | ) |
Definition at line 9 of file rtcGraphicsHelper.cpp.
rtc::GraphicsHelper::~GraphicsHelper | ( | void | ) |
Definition at line 19 of file rtcGraphicsHelper.cpp.
void rtc::GraphicsHelper::drawCoordinateFrame | ( | double | scale = 1.0 | ) |
Definition at line 348 of file rtcGraphicsHelper.cpp.
void rtc::GraphicsHelper::drawGrid | ( | double | center_x = 0 , |
double | center_y = 0 , |
||
int | size = 100 , |
||
double | resolution = 1.0 |
||
) | const |
Definition at line 426 of file rtcGraphicsHelper.cpp.
void rtc::GraphicsHelper::drawSphere | ( | double | x, |
double | y, | ||
double | z, | ||
double | scale = 1.0 |
||
) |
Definition at line 332 of file rtcGraphicsHelper.cpp.
Vec3uc rtc::GraphicsHelper::getColorFromPalette | ( | int | index | ) |
Definition at line 467 of file rtcGraphicsHelper.cpp.
void rtc::GraphicsHelper::initializeArrow | ( | ) | [protected] |
Definition at line 130 of file rtcGraphicsHelper.cpp.
GLint rtc::GraphicsHelper::initializeSphere | ( | ) | [protected] |
Definition at line 289 of file rtcGraphicsHelper.cpp.
bool rtc::GraphicsHelper::arrow_initialized [protected] |
Definition at line 30 of file rtcGraphicsHelper.h.
GLuint rtc::GraphicsHelper::arrow_quad_normals_vbo [protected] |
Definition at line 34 of file rtcGraphicsHelper.h.
GLuint rtc::GraphicsHelper::arrow_quad_vertices_vbo [protected] |
Definition at line 33 of file rtcGraphicsHelper.h.
GLuint rtc::GraphicsHelper::arrow_triangle_normals_vbo [protected] |
Definition at line 32 of file rtcGraphicsHelper.h.
GLuint rtc::GraphicsHelper::arrow_triangle_vertices_vbo [protected] |
Definition at line 31 of file rtcGraphicsHelper.h.
const unsigned char rtc::GraphicsHelper::graphics_colorpalette [static, protected] |
{ {128,51,128}, {51,128,128}, {255,51,51}, {51,255,51}, {51,51,255}, {51,179,204}, {128,255,51}, {255,128,51}, {51,128,255}, {239,230,0}, {230,0,230}, {0,230,230}, {230,0,0}, }
Definition at line 48 of file rtcGraphicsHelper.h.
int rtc::GraphicsHelper::num_sphere_vertices [protected] |
Definition at line 41 of file rtcGraphicsHelper.h.
bool rtc::GraphicsHelper::sphere_display_initialized [protected] |
Definition at line 37 of file rtcGraphicsHelper.h.
GLint rtc::GraphicsHelper::sphere_display_list [protected] |
Definition at line 38 of file rtcGraphicsHelper.h.
const GLbyte rtc::GraphicsHelper::sphere_face_indicies [static, protected] |
Definition at line 43 of file rtcGraphicsHelper.h.
const GLfloat rtc::GraphicsHelper::sphere_normals [static, protected] |
Definition at line 45 of file rtcGraphicsHelper.h.
GLuint rtc::GraphicsHelper::sphere_normals_vbo [protected] |
Definition at line 40 of file rtcGraphicsHelper.h.
const GLfloat rtc::GraphicsHelper::sphere_vertices [static, protected] |
Definition at line 44 of file rtcGraphicsHelper.h.
GLuint rtc::GraphicsHelper::sphere_vertices_vbo [protected] |
Definition at line 39 of file rtcGraphicsHelper.h.