forked from victl/VeloSLAM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimpleviewer.h
More file actions
69 lines (50 loc) · 1.22 KB
/
simpleviewer.h
File metadata and controls
69 lines (50 loc) · 1.22 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef SIMPLEVIEWER_H
#define SIMPLEVIEWER_H
#include <iostream>
#include <deque>
// Qt
#include <QMainWindow>
// Point Cloud Library
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <boost/intrusive_ptr.hpp>
// Visualization Toolkit (VTK)
#include <vtkRenderWindow.h>
typedef pcl::PointXYZI PointT;
typedef pcl::PointCloud<PointT> PointCloudT;
class HDLManager;
class HDLFrame;
namespace Ui
{
class SimpleViewer;
}
class SimpleViewer : public QMainWindow
{
Q_OBJECT
public:
explicit SimpleViewer (QWidget *parent = 0);
~SimpleViewer ();
public slots:
protected:
boost::shared_ptr<pcl::visualization::PCLVisualizer> viewer;
PointCloudT::Ptr dispCloud;
PointCloudT::Ptr inputCloud;
PointCloudT::Ptr groundlessCloud;
private slots:
void on_btnPrev_clicked();
void on_btnNext_clicked();
void updateViewer();
void on_btnHold_clicked();
void on_btnDiscard_clicked();
void on_btnMerge_clicked();
void on_btnGo_clicked();
private:
Ui::SimpleViewer *ui;
HDLManager* hdlMgr;
std::vector<boost::shared_ptr<HDLFrame> > frames;
boost::intrusive_ptr<HDLFrame> f;
std::deque<int> seq;
int id;
};
#endif // SIMPLEVIEWER_H