#include <glviewer.h>
Public Member Functions | |
GLViewer (std::vector< std::vector< pcl::PointXYZ > > &points, int flag, QWidget *parent=0) | |
QSize | minimumSizeHint () const |
void | reset () |
QSize | sizeHint () const |
~GLViewer () | |
Protected Member Functions | |
void | drawAxis (float scale) |
void | drawPointCloud () |
void | initializeGL () |
void | keyPressEvent (QKeyEvent *e) |
void | mouseMoveEvent (QMouseEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | paintGL () |
void | resizeGL (int width, int height) |
void | setXRotation (int angle) |
void | setYRotation (int angle) |
void | setZRotation (int angle) |
void | wheelEvent (QWheelEvent *event) |
Private Attributes | |
float | bg_color [4] |
double | fov_ |
int | height_ |
int | label |
QPoint | lastPos |
std::vector< std::vector < pcl::PointXYZ > > & | point_cloud |
double | rotation_step_ |
bool | show_axis_ |
double | translation_step_ |
int | width_ |
int | xRot |
float | xTra |
int | yRot |
float | yTra |
int | zRot |
float | zTra |
Definition at line 51 of file glviewer.h.
GLViewer::GLViewer | ( | std::vector< std::vector< pcl::PointXYZ > > & | points, |
int | flag, | ||
QWidget * | parent = 0 |
||
) |
Definition at line 47 of file glviewer.cpp.
Definition at line 69 of file glviewer.cpp.
void GLViewer::drawAxis | ( | float | scale | ) | [protected] |
Definition at line 164 of file glviewer.cpp.
void GLViewer::drawPointCloud | ( | ) | [protected] |
Definition at line 183 of file glviewer.cpp.
void GLViewer::initializeGL | ( | ) | [protected] |
Definition at line 122 of file glviewer.cpp.
void GLViewer::keyPressEvent | ( | QKeyEvent * | e | ) | [protected] |
Definition at line 279 of file glviewer.cpp.
QSize GLViewer::minimumSizeHint | ( | ) | const |
Definition at line 74 of file glviewer.cpp.
void GLViewer::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected] |
Definition at line 254 of file glviewer.cpp.
void GLViewer::mousePressEvent | ( | QMouseEvent * | event | ) | [protected] |
Definition at line 249 of file glviewer.cpp.
void GLViewer::paintGL | ( | ) | [protected] |
Definition at line 133 of file glviewer.cpp.
void GLViewer::reset | ( | ) |
Definition at line 232 of file glviewer.cpp.
void GLViewer::resizeGL | ( | int | width, |
int | height | ||
) | [protected] |
Definition at line 144 of file glviewer.cpp.
void GLViewer::setXRotation | ( | int | angle | ) | [protected] |
Definition at line 92 of file glviewer.cpp.
void GLViewer::setYRotation | ( | int | angle | ) | [protected] |
Definition at line 102 of file glviewer.cpp.
void GLViewer::setZRotation | ( | int | angle | ) | [protected] |
Definition at line 112 of file glviewer.cpp.
QSize GLViewer::sizeHint | ( | ) | const |
Definition at line 79 of file glviewer.cpp.
void GLViewer::wheelEvent | ( | QWheelEvent * | event | ) | [protected] |
Definition at line 243 of file glviewer.cpp.
float GLViewer::bg_color[4] [private] |
Definition at line 84 of file glviewer.h.
double GLViewer::fov_ [private] |
Definition at line 89 of file glviewer.h.
int GLViewer::height_ [private] |
Definition at line 88 of file glviewer.h.
int GLViewer::label [private] |
Definition at line 83 of file glviewer.h.
QPoint GLViewer::lastPos [private] |
Definition at line 92 of file glviewer.h.
std::vector< std::vector<pcl::PointXYZ> >& GLViewer::point_cloud [private] |
Definition at line 94 of file glviewer.h.
double GLViewer::rotation_step_ [private] |
Definition at line 90 of file glviewer.h.
bool GLViewer::show_axis_ [private] |
Definition at line 93 of file glviewer.h.
double GLViewer::translation_step_ [private] |
Definition at line 90 of file glviewer.h.
int GLViewer::width_ [private] |
Definition at line 88 of file glviewer.h.
int GLViewer::xRot [private] |
Definition at line 85 of file glviewer.h.
float GLViewer::xTra [private] |
Definition at line 86 of file glviewer.h.
int GLViewer::yRot [private] |
Definition at line 85 of file glviewer.h.
float GLViewer::yTra [private] |
Definition at line 86 of file glviewer.h.
int GLViewer::zRot [private] |
Definition at line 85 of file glviewer.h.
float GLViewer::zTra [private] |
Definition at line 86 of file glviewer.h.