Subversion Repositories seema-scanner

Rev

Rev 25 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 jakw 1
/*
2
 *
3
 SLStudio - Platform for Real-Time  Structured Light
4
 (c) 2013 -- 2014 Jakob Wilm, DTU, Kgs.Lyngby, Denmark
5
 *
6
*/
7
 
8
#ifndef SMPointCloudWidget_H
9
#define SMPointCloudWidget_H
10
 
11
#include <QTime>
12
 
13
#ifndef Q_MOC_RUN
14
    #include <QVTKWidget.h>
15
    #include <pcl/visualization/pcl_visualizer.h>
16
    #include <Eigen/Eigen>
17
#endif
18
 
19
#include <opencv2/opencv.hpp>
20
 
21
typedef pcl::PointCloud<pcl::PointXYZRGB>::Ptr PointCloudPtr;
22
typedef pcl::PointCloud<pcl::PointXYZRGB>::ConstPtr PointCloudConstPtr;
23
typedef pcl::visualization::PointCloudColorHandler<pcl::PointXYZRGB>* ColorHandlerPtr;
24
typedef const pcl::visualization::PointCloudColorHandler<pcl::PointXYZRGB>* ColorHandlerConstPtr;
25
 
26
class SMPointCloudWidget : public QVTKWidget {
27
    Q_OBJECT
28
    public:
29
        explicit SMPointCloudWidget(QWidget *parent = 0);
30
        ~SMPointCloudWidget();
31
    public slots:
32
        void updatePointCloud(PointCloudConstPtr _pointCloudPCL);
33
        void savePointCloud();
34
        void saveScreenShot();
35
    signals:
36
        void newPointCloudDisplayed();
37
    private:
38
        pcl::visualization::PCLVisualizer *visualizer;
39
        PointCloudConstPtr pointCloudPCL;
40
        ColorHandlerPtr colorHandler;
41
        QTime time;
42
};
43
 
44
#endif // SMPointCloudWidget_H