LVRMeshItem.hpp
Go to the documentation of this file.
1 
34 #ifndef LVRMESHITEM_H_
35 #define LVRMESHITEM_H_
36 
37 #include <QTreeWidgetItem>
38 #include <QColor>
39 
40 #include "../vtkBridge/LVRMeshBufferBridge.hpp"
41 
42 namespace lvr2
43 {
44 
45 class LVRMeshItem : public QTreeWidgetItem
46 {
47 public:
48  LVRMeshItem(MeshBufferBridgePtr& ptr, QTreeWidgetItem* parent = 0);
49  virtual ~LVRMeshItem();
50  QColor getColor();
51  void setColor(QColor &c);
52  void setSelectionColor(QColor &c);
53  void resetColor();
54  float getOpacity();
55  void setOpacity(float &opacity);
56  bool getVisibility();
57  void setVisibility(bool &visiblity);
58  int getShading();
59  void setShading(int &shader);
60  vtkSmartPointer<vtkActor> getWireframeActor();
62  vtkSmartPointer<vtkActor> getActor();
63 
64 protected:
65  virtual void addSubItems();
67 
68 private:
69  QColor m_color;
70 
71  float m_opacity;
72  bool m_visible;
73  int m_shader;
74 
75 protected:
76  QTreeWidgetItem* m_parent;
77 };
78 
79 } /* namespace lvr2 */
80 
81 #endif /* LVRMESHITEM_H_ */
virtual ~LVRMeshItem()
virtual void addSubItems()
Definition: LVRMeshItem.cpp:52
void setSelectionColor(QColor &c)
Definition: LVRMeshItem.cpp:86
MeshBufferBridgePtr m_meshBridge
Definition: LVRMeshItem.hpp:66
void setColor(QColor &c)
Definition: LVRMeshItem.cpp:80
std::shared_ptr< MeshBuffer > MeshBufferPtr
Definition: MeshBuffer.hpp:217
vtkSmartPointer< vtkActor > getActor()
void setShading(int &shader)
boost::shared_ptr< LVRMeshBufferBridge > MeshBufferBridgePtr
LVRMeshItem(MeshBufferBridgePtr &ptr, QTreeWidgetItem *parent=0)
Definition: LVRMeshItem.cpp:40
void setVisibility(bool &visiblity)
vtkSmartPointer< vtkActor > getWireframeActor()
QTreeWidgetItem * m_parent
Definition: LVRMeshItem.hpp:76
MeshBufferPtr getMeshBuffer()
void setOpacity(float &opacity)


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