-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpointcloudviewer.h
More file actions
29 lines (25 loc) · 872 Bytes
/
pointcloudviewer.h
File metadata and controls
29 lines (25 loc) · 872 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
#ifndef POINTCLOUDVIEWER_H
#define POINTCLOUDVIEWER_H
#include <QWidget>
#include <QVTKWidget.h>
#include "pcl/visualization/pcl_visualizer.h"
#include "pcl/ModelCoefficients.h"
#include <pcl/visualization/cloud_viewer.h>
#include "Segment2D.h"
class PointCloudViewer: public QVTKWidget
{
Q_OBJECT
public:
PointCloudViewer(QWidget *parent);
private:
pcl::visualization::PCLVisualizer visualizer;
bool firstCloudSet,firstShapeSet,firstBoxesSet,firstLineSet;
public slots:
void showPlane(pcl::ModelCoefficients::Ptr plane);
void showCloud(pcl::PointCloud<pcl::PointXYZRGBA>::ConstPtr Cloud);
void ShowBoxes(const std::vector<std::pair<pcl::PointXYZ,pcl::PointXYZ> >&);
void ShowLines(const std::vector<Segment3D>& );
void windowToJPG(vtkRenderWindow *rw, const char *filename);
void clearScreen();
};
#endif // POINTCLOUDVIEWER_H