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_ */
lvr2::LVRPointCloudItem::m_color
QColor m_color
Definition: LVRPointCloudItem.hpp:75
lvr2::LVRPointCloudItem::getActor
vtkSmartPointer< vtkActor > getActor()
Definition: LVRPointCloudItem.cpp:200
lvr2::LVRPointCloudItem::m_pointBridge
PointBufferBridgePtr m_pointBridge
Definition: LVRPointCloudItem.hpp:74
lvr2::LVRPointCloudItem::getPointBufferBridge
PointBufferBridgePtr getPointBufferBridge()
Definition: LVRPointCloudItem.cpp:195
lvr2::LVRPointCloudItem::getOpacity
float getOpacity()
Definition: LVRPointCloudItem.cpp:163
lvr2::LVRPointCloudItem::getNumPoints
size_t getNumPoints()
Definition: LVRPointCloudItem.cpp:185
lvr2::PointBufferPtr
std::shared_ptr< PointBuffer > PointBufferPtr
Definition: PointBuffer.hpp:130
lvr2::LVRPointCloudItem::m_opacity
float m_opacity
Definition: LVRPointCloudItem.hpp:77
lvr2::LVRPointCloudItem::m_colorItem
QTreeWidgetItem * m_colorItem
Definition: LVRPointCloudItem.hpp:71
lvr2::LVRPointCloudItem::m_visible
bool m_visible
Definition: LVRPointCloudItem.hpp:78
lvr2::LVRPointCloudItem
Definition: LVRPointCloudItem.hpp:45
lvr2::LVRPointCloudItem::LVRPointCloudItem
LVRPointCloudItem(PointBufferBridgePtr ptr, QTreeWidgetItem *parent=0)
Definition: LVRPointCloudItem.cpp:40
lvr2::LVRPointCloudItem::setSelectionColor
void setSelectionColor(QColor &c)
Definition: LVRPointCloudItem.cpp:142
lvr2::LVRPointCloudItem::setVisibility
void setVisibility(bool &visiblity)
Definition: LVRPointCloudItem.cpp:179
lvr2::LVRPointCloudItem::update
void update()
Definition: LVRPointCloudItem.cpp:100
lvr2::LVRPointCloudItem::resetColor
void resetColor()
Definition: LVRPointCloudItem.cpp:147
lvr2::LVRPointCloudItem::m_parent
QTreeWidgetItem * m_parent
Definition: LVRPointCloudItem.hpp:68
lvr2::LVRPointCloudItem::getPointSize
int getPointSize()
Definition: LVRPointCloudItem.cpp:152
lvr2::LVRPointCloudItem::~LVRPointCloudItem
virtual ~LVRPointCloudItem()
Definition: LVRPointCloudItem.cpp:205
lvr2::LVRPointCloudItem::getPointBuffer
PointBufferPtr getPointBuffer()
Definition: LVRPointCloudItem.cpp:190
lvr2::LVRPointCloudItem::getVisibility
bool getVisibility()
Definition: LVRPointCloudItem.cpp:174
lvr2::LVRPointCloudItem::setPointSize
void setPointSize(int &pointSize)
Definition: LVRPointCloudItem.cpp:157
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::LVRPointCloudItem::m_normalItem
QTreeWidgetItem * m_normalItem
Definition: LVRPointCloudItem.hpp:70
lvr2::LVRPointCloudItem::m_specItem
QTreeWidgetItem * m_specItem
Definition: LVRPointCloudItem.hpp:72
lvr2::LVRPointCloudItem::m_pointSize
int m_pointSize
Definition: LVRPointCloudItem.hpp:76
lvr2::PointBufferBridgePtr
boost::shared_ptr< LVRPointBufferBridge > PointBufferBridgePtr
Definition: LVRPointBufferBridge.hpp:116
lvr2::LVRPointCloudItem::m_numItem
QTreeWidgetItem * m_numItem
Definition: LVRPointCloudItem.hpp:69
lvr2::LVRPointCloudItem::getColor
QColor getColor()
Definition: LVRPointCloudItem.cpp:131
lvr2::LVRPointCloudItem::setColor
void setColor(QColor &c)
Definition: LVRPointCloudItem.cpp:136
lvr2::LVRPointCloudItem::setOpacity
void setOpacity(float &opacity)
Definition: LVRPointCloudItem.cpp:168


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 Wed Mar 2 2022 00:37:24