LVRPointCloudItem.hpp
Go to the documentation of this file.
1 
34 #ifndef LVRPOINTCLOUDITEM_HPP_
35 #define LVRPOINTCLOUDITEM_HPP_
36 
37 #include "../vtkBridge/LVRPointBufferBridge.hpp"
38 
39 #include <QTreeWidgetItem>
40 #include <QColor>
41 
42 namespace lvr2
43 {
44 
45 class LVRPointCloudItem : public QTreeWidgetItem
46 {
47 public:
48 
49  LVRPointCloudItem(PointBufferBridgePtr ptr, QTreeWidgetItem* parent = 0);
50  virtual ~LVRPointCloudItem();
51  QColor getColor();
52  void setColor(QColor &c);
53  void setSelectionColor(QColor &c);
54  void resetColor();
55  int getPointSize();
56  void setPointSize(int &pointSize);
57  float getOpacity();
58  void setOpacity(float &opacity);
59  bool getVisibility();
60  void setVisibility(bool &visiblity);
61  size_t getNumPoints();
62  void update();
65  vtkSmartPointer<vtkActor> getActor();
66 
67 protected:
68  QTreeWidgetItem* m_parent;
69  QTreeWidgetItem* m_numItem;
70  QTreeWidgetItem* m_normalItem;
71  QTreeWidgetItem* m_colorItem;
72  QTreeWidgetItem* m_specItem;
73 
75  QColor m_color;
77  float m_opacity;
78  bool m_visible;
79 };
80 
81 } /* namespace lvr2 */
82 
83 #endif /* LVRPOINTCLOUDITEM_HPP_ */
QTreeWidgetItem * m_numItem
boost::shared_ptr< LVRPointBufferBridge > PointBufferBridgePtr
PointBufferPtr getPointBuffer()
QTreeWidgetItem * m_parent
PointBufferBridgePtr m_pointBridge
QTreeWidgetItem * m_colorItem
std::shared_ptr< PointBuffer > PointBufferPtr
void setVisibility(bool &visiblity)
void setOpacity(float &opacity)
vtkSmartPointer< vtkActor > getActor()
QTreeWidgetItem * m_normalItem
QTreeWidgetItem * m_specItem
void setSelectionColor(QColor &c)
void setPointSize(int &pointSize)
PointBufferBridgePtr getPointBufferBridge()
LVRPointCloudItem(PointBufferBridgePtr ptr, QTreeWidgetItem *parent=0)


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:08