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_ */
lvr2::LVRMeshItem::resetColor
void resetColor()
Definition: LVRMeshItem.cpp:91
lvr2::MeshBufferBridgePtr
boost::shared_ptr< LVRMeshBufferBridge > MeshBufferBridgePtr
Definition: LVRMeshBufferBridge.hpp:106
lvr2::LVRMeshItem::getActor
vtkSmartPointer< vtkActor > getActor()
Definition: LVRMeshItem.cpp:139
lvr2::LVRMeshItem
Definition: LVRMeshItem.hpp:45
lvr2::LVRMeshItem::setColor
void setColor(QColor &c)
Definition: LVRMeshItem.cpp:80
lvr2::LVRMeshItem::m_meshBridge
MeshBufferBridgePtr m_meshBridge
Definition: LVRMeshItem.hpp:66
lvr2::LVRMeshItem::~LVRMeshItem
virtual ~LVRMeshItem()
Definition: LVRMeshItem.cpp:144
lvr2::LVRMeshItem::getWireframeActor
vtkSmartPointer< vtkActor > getWireframeActor()
Definition: LVRMeshItem.cpp:129
lvr2::LVRMeshItem::getOpacity
float getOpacity()
Definition: LVRMeshItem.cpp:96
lvr2::LVRMeshItem::getColor
QColor getColor()
Definition: LVRMeshItem.cpp:75
lvr2::LVRMeshItem::setShading
void setShading(int &shader)
Definition: LVRMeshItem.cpp:123
lvr2::LVRMeshItem::getMeshBuffer
MeshBufferPtr getMeshBuffer()
Definition: LVRMeshItem.cpp:134
lvr2::LVRMeshItem::getVisibility
bool getVisibility()
Definition: LVRMeshItem.cpp:107
lvr2::LVRMeshItem::m_shader
int m_shader
Definition: LVRMeshItem.hpp:73
lvr2::LVRMeshItem::setSelectionColor
void setSelectionColor(QColor &c)
Definition: LVRMeshItem.cpp:86
lvr2::LVRMeshItem::LVRMeshItem
LVRMeshItem(MeshBufferBridgePtr &ptr, QTreeWidgetItem *parent=0)
Definition: LVRMeshItem.cpp:40
lvr2::LVRMeshItem::getShading
int getShading()
Definition: LVRMeshItem.cpp:118
lvr2::LVRMeshItem::m_visible
bool m_visible
Definition: LVRMeshItem.hpp:72
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::MeshBufferPtr
std::shared_ptr< MeshBuffer > MeshBufferPtr
Definition: MeshBuffer.hpp:217
lvr2::LVRMeshItem::m_parent
QTreeWidgetItem * m_parent
Definition: LVRMeshItem.hpp:76
lvr2::LVRMeshItem::m_opacity
float m_opacity
Definition: LVRMeshItem.hpp:71
lvr2::LVRMeshItem::setVisibility
void setVisibility(bool &visiblity)
Definition: LVRMeshItem.cpp:112
lvr2::LVRMeshItem::setOpacity
void setOpacity(float &opacity)
Definition: LVRMeshItem.cpp:101
lvr2::LVRMeshItem::m_color
QColor m_color
Definition: LVRMeshItem.hpp:69
lvr2::LVRMeshItem::addSubItems
virtual void addSubItems()
Definition: LVRMeshItem.cpp:52


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