PointCloudSegmentsTable.h
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4
5#include <QTableWidget>
6
7#include <pcl/PointIndices.h>
8#include <pcl/point_cloud.h>
9#include <pcl/point_types.h>
10
11#include <RobotAPI/interface/visualization/DebugDrawerInterface.h>
12
13namespace Ui
14{
15 class PointCloudSegmentsTable;
16}
17
18namespace visionx
19{
20
21 class PointCloudSegmentsTable : public QTableWidget
22 {
23 Q_OBJECT
24
25 public:
26 using Label = uint32_t;
27
28 public:
29 explicit PointCloudSegmentsTable(QWidget* parent = nullptr);
31
32
33 void setData(const pcl::PointCloud<pcl::PointXYZRGBL>& pointCloud,
34 bool excludeZero = false);
35 void setData(const std::map<Label, pcl::PointIndices>& segmentMap);
36
37
38 private:
39 Ui::PointCloudSegmentsTable* ui;
40 };
41
42} // namespace visionx
PointCloudSegmentsTable(QWidget *parent=nullptr)
void setData(const pcl::PointCloud< pcl::PointXYZRGBL > &pointCloud, bool excludeZero=false)
ArmarX Headers.
ArmarX headers.