#include <rtcRenderer.h>
Public Types | |
typedef std::vector< RenderNode * > | TRenderNodeList |
Public Member Functions | |
void | addRenderNode (RenderNode *node) |
int | bitmapStringWidth (void *font, char *string) |
virtual void | clear () |
void | clearRenderNode () |
void | drawCoordinateFrame (double scale=1.0) |
void | drawDashedLine3D (double x1, double y1, double z1, double x2, double y2, double z2, double stripe_len) const |
void | drawGrid (double center_x=0, double center_y=0, int size=100, double resolution=1.0) const |
void | forceRedraw (void) |
void | get2DPosition (int x, int y, double *xout, double *yout) |
void | get3DPosition (double x, double y, double z, double *xout, double *yout, double *zout) |
camera_pose_p | getCameraPose () |
int | getMode (void) |
eRenderMode | getRenderMode () |
int | getWindowHeight () |
int | getWindowId () |
int | getWindowWidth () |
virtual void | initialize (RenderManager *render_manager, int window_x, int window_y, int window_width, int window_height, const char *title) |
void | initialize (int argc, char **argv, int window_x, int window_y, int window_width, int window_height, double fps) |
void | pickPoint (int mouse_x, int mouse_y, double *scene_x, double *scene_y) |
void | recenter (void) |
void | recenter2D (void) |
void | renderBitmapString (float x, float y, void *font, char *string) |
void | renderBitmapString3D (float x, float y, float z, void *font, char *string) |
void | renderBitmapStringCentered (float x, float y, void *font, char *string) |
Renderer (RenderManager *render_manager, int window_x, int window_y, int window_width, int window_height, const char *title) | |
Renderer () | |
void | set2DCameraParams (double zoom_sensitivity, double rotate_sensivitity, double move_sensitivity) |
void | set2DWarping (double warp_x, double warp_y) |
void | setCameraParams (double zoom_sensitivity, double rotate_sensitivity, double move_sensitivity, double min_zoom_range, double camera_fov, double min_clip_range, double max_clip_range) |
void | setCameraPose (camera_pose_t camera_pose) |
void | setDisplayFunc (display_func display) |
void | setDisplayMode2D (int w, int h) |
void | setDisplayMode3D (int w, int h, float fov, float zNear, float zFar) |
void | setIdleFunc (idle_func idle) |
void | setInitial2DCameraPos (double x_offset, double y_offset, double rotation, double zoom) |
void | setInitialCameraPos (double pan, double tilt, double range, double x_offset, double y_offset, double z_offset) |
void | setKeyboardFunc (keyboard_func keyboard) |
void | setMode (int mode) |
void | setMode2D (void) |
void | setMode3D (void) |
void | setMotionFunc (motion_func motion) |
void | setMouseFunc (mouse_func mouse) |
void | setPassiveMotionFunc (passive_motion_func motion) |
void | setRasterPos (double winx, double winy, double winz=0.0) |
void | setRenderMode (eRenderMode render_mode) |
void | setTimerFunc (timer_func timer) |
void | switchTo2DMode (void) |
void | switchTo3DMode (void) |
void | takeScreenShot (const char *filename) |
void | takeScreenShot () |
Vec3d | unProject (double winx, double winy, double winz=0.0) |
virtual | ~Renderer () |
Public Attributes | |
double | camera_fov |
camera_pose_t | camera_pose |
double | fps |
float | GLUI_x_offset |
float | GLUI_y_offset |
ILuint | image_id |
bool | is_initialized |
int | last_mouse_x |
int | last_mouse_y |
float | m_fps |
int | m_frame |
int | m_time |
int | m_timebase |
double | max_clip_range |
double | min_clip_range |
double | min_zoom_range |
int | mode |
double | move_sensitivity |
double | move_sensitivity_2D |
bool | received_input |
eRenderMode | render_mode |
TRenderNodeList | render_nodes |
double | rotate_sensitivity |
double | rotate_sensitivity_2D |
int | screen_shot_number |
display_func | user_display_func |
idle_func | user_idle_func |
keyboard_func | user_keyboard_func |
motion_func | user_motion_func |
mouse_func | user_mouse_func |
passive_motion_func | user_passive_motion_func |
timer_func | user_timer_func |
int | window_height |
int | window_id |
int | window_width |
double | zoom_sensitivity |
double | zoom_sensitivity_2D |
Protected Member Functions | |
void | display (void) |
void | idle () |
void | keyboard (unsigned char key, int x, int y) |
void | motion (int x, int y) |
void | mouse (int button, int state, int x, int y) |
void | move_camera (double dx, double dy) |
void | move_camera_2D (double dx, double dy) |
void | passive_motion (int x, int y) |
void | reshape (int w, int h) |
void | rotate_camera (double dx, double dy) |
void | rotate_camera_2D (double dx) |
void | special (int key, int x, int y) |
void | timer () |
void | visibility (int visible) |
void | zoom_camera (double dy) |
void | zoom_camera_2D (double dx) |
Private Member Functions | |
void | initializeArrow () |
Private Attributes | |
bool | arrow_initialized |
GLuint | arrow_quad_normals_vbo |
GLuint | arrow_quad_vertices_vbo |
GLuint | arrow_triangle_normals_vbo |
GLuint | arrow_triangle_vertices_vbo |
Friends | |
class | RenderManager |
Definition at line 43 of file rtcRenderer.h.
typedef std::vector<RenderNode*> rtc::Renderer::TRenderNodeList |
Definition at line 210 of file rtcRenderer.h.
rtc::Renderer::Renderer | ( | RenderManager * | render_manager, |
int | window_x, | ||
int | window_y, | ||
int | window_width, | ||
int | window_height, | ||
const char * | title | ||
) |
Definition at line 142 of file rtcRenderer.cpp.
Definition at line 160 of file rtcRenderer.cpp.
rtc::Renderer::~Renderer | ( | ) | [virtual] |
Definition at line 166 of file rtcRenderer.cpp.
void rtc::Renderer::addRenderNode | ( | RenderNode * | node | ) |
Definition at line 336 of file rtcRenderer.cpp.
int rtc::Renderer::bitmapStringWidth | ( | void * | font, |
char * | string | ||
) |
Definition at line 926 of file rtcRenderer.cpp.
void rtc::Renderer::clear | ( | ) | [virtual] |
Definition at line 321 of file rtcRenderer.cpp.
void rtc::Renderer::clearRenderNode | ( | ) |
Definition at line 341 of file rtcRenderer.cpp.
void rtc::Renderer::display | ( | void | ) | [protected] |
Definition at line 811 of file rtcRenderer.cpp.
void rtc::Renderer::drawCoordinateFrame | ( | double | scale = 1.0 | ) |
Definition at line 1017 of file rtcRenderer.cpp.
void rtc::Renderer::drawDashedLine3D | ( | double | x1, |
double | y1, | ||
double | z1, | ||
double | x2, | ||
double | y2, | ||
double | z2, | ||
double | stripe_len | ||
) | const |
Definition at line 1119 of file rtcRenderer.cpp.
void rtc::Renderer::drawGrid | ( | double | center_x = 0 , |
double | center_y = 0 , |
||
int | size = 100 , |
||
double | resolution = 1.0 |
||
) | const |
Definition at line 1095 of file rtcRenderer.cpp.
void rtc::Renderer::forceRedraw | ( | void | ) |
Definition at line 519 of file rtcRenderer.cpp.
void rtc::Renderer::get2DPosition | ( | int | x, |
int | y, | ||
double * | xout, | ||
double * | yout | ||
) |
Definition at line 561 of file rtcRenderer.cpp.
void rtc::Renderer::get3DPosition | ( | double | x, |
double | y, | ||
double | z, | ||
double * | xout, | ||
double * | yout, | ||
double * | zout | ||
) |
Definition at line 573 of file rtcRenderer.cpp.
Definition at line 890 of file rtcRenderer.cpp.
int rtc::Renderer::getMode | ( | void | ) |
Definition at line 450 of file rtcRenderer.cpp.
Definition at line 331 of file rtcRenderer.cpp.
int rtc::Renderer::getWindowHeight | ( | ) |
Definition at line 910 of file rtcRenderer.cpp.
int rtc::Renderer::getWindowId | ( | ) |
Definition at line 900 of file rtcRenderer.cpp.
int rtc::Renderer::getWindowWidth | ( | ) |
Definition at line 905 of file rtcRenderer.cpp.
void rtc::Renderer::idle | ( | ) | [protected] |
Definition at line 884 of file rtcRenderer.cpp.
void rtc::Renderer::initialize | ( | RenderManager * | render_manager, |
int | window_x, | ||
int | window_y, | ||
int | window_width, | ||
int | window_height, | ||
const char * | title | ||
) | [virtual] |
Definition at line 170 of file rtcRenderer.cpp.
void rtc::Renderer::initialize | ( | int | argc, |
char ** | argv, | ||
int | window_x, | ||
int | window_y, | ||
int | window_width, | ||
int | window_height, | ||
double | fps | ||
) |
void rtc::Renderer::initializeArrow | ( | ) | [private] |
Definition at line 987 of file rtcRenderer.cpp.
void rtc::Renderer::keyboard | ( | unsigned char | key, |
int | x, | ||
int | y | ||
) | [protected] |
Definition at line 725 of file rtcRenderer.cpp.
void rtc::Renderer::motion | ( | int | x, |
int | y | ||
) | [protected] |
Definition at line 752 of file rtcRenderer.cpp.
void rtc::Renderer::mouse | ( | int | button, |
int | state, | ||
int | x, | ||
int | y | ||
) | [protected] |
Definition at line 732 of file rtcRenderer.cpp.
void rtc::Renderer::move_camera | ( | double | dx, |
double | dy | ||
) | [protected] |
Definition at line 399 of file rtcRenderer.cpp.
void rtc::Renderer::move_camera_2D | ( | double | dx, |
double | dy | ||
) | [protected] |
Definition at line 407 of file rtcRenderer.cpp.
void rtc::Renderer::passive_motion | ( | int | x, |
int | y | ||
) | [protected] |
Definition at line 863 of file rtcRenderer.cpp.
void rtc::Renderer::pickPoint | ( | int | mouse_x, |
int | mouse_y, | ||
double * | scene_x, | ||
double * | scene_y | ||
) |
Definition at line 543 of file rtcRenderer.cpp.
void rtc::Renderer::recenter | ( | void | ) |
Definition at line 530 of file rtcRenderer.cpp.
void rtc::Renderer::recenter2D | ( | void | ) |
Definition at line 537 of file rtcRenderer.cpp.
void rtc::Renderer::renderBitmapString | ( | float | x, |
float | y, | ||
void * | font, | ||
char * | string | ||
) |
Definition at line 915 of file rtcRenderer.cpp.
void rtc::Renderer::renderBitmapString3D | ( | float | x, |
float | y, | ||
float | z, | ||
void * | font, | ||
char * | string | ||
) |
Definition at line 936 of file rtcRenderer.cpp.
void rtc::Renderer::renderBitmapStringCentered | ( | float | x, |
float | y, | ||
void * | font, | ||
char * | string | ||
) |
Definition at line 949 of file rtcRenderer.cpp.
void rtc::Renderer::reshape | ( | int | w, |
int | h | ||
) | [protected] |
Definition at line 792 of file rtcRenderer.cpp.
void rtc::Renderer::rotate_camera | ( | double | dx, |
double | dy | ||
) | [protected] |
Definition at line 374 of file rtcRenderer.cpp.
void rtc::Renderer::rotate_camera_2D | ( | double | dx | ) | [protected] |
Definition at line 424 of file rtcRenderer.cpp.
void rtc::Renderer::set2DCameraParams | ( | double | zoom_sensitivity, |
double | rotate_sensivitity, | ||
double | move_sensitivity | ||
) |
Definition at line 364 of file rtcRenderer.cpp.
void rtc::Renderer::set2DWarping | ( | double | warp_x, |
double | warp_y | ||
) |
Definition at line 524 of file rtcRenderer.cpp.
void rtc::Renderer::setCameraParams | ( | double | zoom_sensitivity, |
double | rotate_sensitivity, | ||
double | move_sensitivity, | ||
double | min_zoom_range, | ||
double | camera_fov, | ||
double | min_clip_range, | ||
double | max_clip_range | ||
) |
Definition at line 346 of file rtcRenderer.cpp.
void rtc::Renderer::setCameraPose | ( | camera_pose_t | camera_pose | ) |
Definition at line 895 of file rtcRenderer.cpp.
void rtc::Renderer::setDisplayFunc | ( | display_func | display | ) |
Definition at line 296 of file rtcRenderer.cpp.
void rtc::Renderer::setDisplayMode2D | ( | int | w, |
int | h | ||
) |
Definition at line 584 of file rtcRenderer.cpp.
void rtc::Renderer::setDisplayMode3D | ( | int | w, |
int | h, | ||
float | fov, | ||
float | zNear, | ||
float | zFar | ||
) |
Definition at line 594 of file rtcRenderer.cpp.
void rtc::Renderer::setIdleFunc | ( | idle_func | idle | ) |
Definition at line 286 of file rtcRenderer.cpp.
void rtc::Renderer::setInitial2DCameraPos | ( | double | x_offset, |
double | y_offset, | ||
double | rotation, | ||
double | zoom | ||
) |
Definition at line 504 of file rtcRenderer.cpp.
void rtc::Renderer::setInitialCameraPos | ( | double | pan, |
double | tilt, | ||
double | range, | ||
double | x_offset, | ||
double | y_offset, | ||
double | z_offset | ||
) |
Definition at line 492 of file rtcRenderer.cpp.
void rtc::Renderer::setKeyboardFunc | ( | keyboard_func | keyboard | ) |
Definition at line 301 of file rtcRenderer.cpp.
void rtc::Renderer::setMode | ( | int | mode | ) |
Definition at line 455 of file rtcRenderer.cpp.
void rtc::Renderer::setMode2D | ( | void | ) |
Definition at line 440 of file rtcRenderer.cpp.
void rtc::Renderer::setMode3D | ( | void | ) |
Definition at line 445 of file rtcRenderer.cpp.
void rtc::Renderer::setMotionFunc | ( | motion_func | motion | ) |
Definition at line 311 of file rtcRenderer.cpp.
void rtc::Renderer::setMouseFunc | ( | mouse_func | mouse | ) |
Definition at line 306 of file rtcRenderer.cpp.
void rtc::Renderer::setPassiveMotionFunc | ( | passive_motion_func | motion | ) |
Definition at line 316 of file rtcRenderer.cpp.
void rtc::Renderer::setRasterPos | ( | double | winx, |
double | winy, | ||
double | winz = 0.0 |
||
) |
Definition at line 1157 of file rtcRenderer.cpp.
void rtc::Renderer::setRenderMode | ( | eRenderMode | render_mode | ) |
Definition at line 326 of file rtcRenderer.cpp.
void rtc::Renderer::setTimerFunc | ( | timer_func | timer | ) |
Definition at line 291 of file rtcRenderer.cpp.
void rtc::Renderer::special | ( | int | key, |
int | x, | ||
int | y | ||
) | [protected] |
Definition at line 608 of file rtcRenderer.cpp.
void rtc::Renderer::switchTo2DMode | ( | void | ) |
Definition at line 460 of file rtcRenderer.cpp.
void rtc::Renderer::switchTo3DMode | ( | void | ) |
Definition at line 470 of file rtcRenderer.cpp.
void rtc::Renderer::takeScreenShot | ( | const char * | filename | ) |
Definition at line 970 of file rtcRenderer.cpp.
void rtc::Renderer::takeScreenShot | ( | ) |
Definition at line 979 of file rtcRenderer.cpp.
void rtc::Renderer::timer | ( | ) | [protected] |
Definition at line 873 of file rtcRenderer.cpp.
Vec3d rtc::Renderer::unProject | ( | double | winx, |
double | winy, | ||
double | winz = 0.0 |
||
) |
Definition at line 1144 of file rtcRenderer.cpp.
void rtc::Renderer::visibility | ( | int | visible | ) | [protected] |
Definition at line 868 of file rtcRenderer.cpp.
void rtc::Renderer::zoom_camera | ( | double | dy | ) | [protected] |
Definition at line 390 of file rtcRenderer.cpp.
void rtc::Renderer::zoom_camera_2D | ( | double | dx | ) | [protected] |
Definition at line 429 of file rtcRenderer.cpp.
friend class RenderManager [friend] |
Definition at line 44 of file rtcRenderer.h.
bool rtc::Renderer::arrow_initialized [private] |
Definition at line 175 of file rtcRenderer.h.
GLuint rtc::Renderer::arrow_quad_normals_vbo [private] |
Definition at line 179 of file rtcRenderer.h.
GLuint rtc::Renderer::arrow_quad_vertices_vbo [private] |
Definition at line 178 of file rtcRenderer.h.
GLuint rtc::Renderer::arrow_triangle_normals_vbo [private] |
Definition at line 177 of file rtcRenderer.h.
GLuint rtc::Renderer::arrow_triangle_vertices_vbo [private] |
Definition at line 176 of file rtcRenderer.h.
double rtc::Renderer::camera_fov |
Definition at line 238 of file rtcRenderer.h.
Definition at line 222 of file rtcRenderer.h.
double rtc::Renderer::fps |
Definition at line 221 of file rtcRenderer.h.
Definition at line 220 of file rtcRenderer.h.
Definition at line 220 of file rtcRenderer.h.
ILuint rtc::Renderer::image_id |
Definition at line 247 of file rtcRenderer.h.
Definition at line 206 of file rtcRenderer.h.
Definition at line 223 of file rtcRenderer.h.
Definition at line 223 of file rtcRenderer.h.
float rtc::Renderer::m_fps |
Definition at line 216 of file rtcRenderer.h.
Definition at line 213 of file rtcRenderer.h.
Definition at line 214 of file rtcRenderer.h.
Definition at line 215 of file rtcRenderer.h.
Definition at line 240 of file rtcRenderer.h.
Definition at line 239 of file rtcRenderer.h.
Definition at line 237 of file rtcRenderer.h.
Definition at line 245 of file rtcRenderer.h.
Definition at line 236 of file rtcRenderer.h.
Definition at line 244 of file rtcRenderer.h.
Definition at line 224 of file rtcRenderer.h.
Definition at line 208 of file rtcRenderer.h.
Definition at line 211 of file rtcRenderer.h.
Definition at line 235 of file rtcRenderer.h.
Definition at line 243 of file rtcRenderer.h.
Definition at line 248 of file rtcRenderer.h.
Definition at line 228 of file rtcRenderer.h.
Definition at line 226 of file rtcRenderer.h.
Definition at line 229 of file rtcRenderer.h.
Definition at line 231 of file rtcRenderer.h.
Definition at line 230 of file rtcRenderer.h.
Definition at line 232 of file rtcRenderer.h.
Definition at line 227 of file rtcRenderer.h.
Definition at line 219 of file rtcRenderer.h.
Definition at line 218 of file rtcRenderer.h.
Definition at line 219 of file rtcRenderer.h.
Definition at line 234 of file rtcRenderer.h.
Definition at line 242 of file rtcRenderer.h.