-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathSLPointCloudWidgetOld.h
More file actions
31 lines (27 loc) · 877 Bytes
/
SLPointCloudWidgetOld.h
File metadata and controls
31 lines (27 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef SLPOINTCLOUDWIDGET_H
#define SLPOINTCLOUDWIDGET_H
#include <QtGui>
#include <QGLWidget>
#include <opencv2/opencv.hpp>
class SLPointCloudWidget : public QGLWidget {
Q_OBJECT
public:
SLPointCloudWidget(QWidget * parent = 0) : QGLWidget(parent), rotationX(0), rotationY(0), rotationZ(0){}
public slots:
void updatePointCloud(cv::Mat _pointCloud, cv::Mat _shading);
protected:
void initializeGL();
void resizeGL(int w, int h);
void paintGL();
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mouseDoubleClickEvent(QMouseEvent*);
private:
cv::Mat pointCloud;
cv::Mat shading;
QPoint lastMousePos;
float rotationX, rotationY, rotationZ;
signals:
void newPointCloudDisplayed();
};
#endif // SLPOINTCLOU_H