LVRCvImageItem.hpp
Go to the documentation of this file.
1 #ifndef LVR2_TOOLS_VIEWER_WIDGETS_LVRCVIMAGEITEM_HPP
2 #define LVR2_TOOLS_VIEWER_WIDGETS_LVRCVIMAGEITEM_HPP
3 
4 #include <QString>
5 #include <QTreeWidgetItem>
6 #include <QAbstractItemModel>
7 #include <QObject>
8 #include <QImage>
9 #include <QLabel>
10 #include <QGraphicsScene>
11 #include <QGraphicsView>
12 #include "LVRGraphicsView.hpp"
13 
14 #include <vtkMatrix4x4.h>
15 
17 
18 
19 namespace lvr2
20 {
21 
22 class LVRCvImageItem : public QTreeWidgetItem
23 {
24  // Q_OBJECT
25 public:
26 
27  LVRCvImageItem(std::shared_ptr<ScanDataManager> sdm,
28  vtkSmartPointer<vtkRenderer> renderer,
29  QString name = "",
30  QTreeWidgetItem *parent = NULL);
31 
33 
34  QString getName() { return m_name; }
35 
36  void setVisibility(bool visible);
37 
38  void openWindow();
39 
40  void closeWindow();
41 
42  void graphicsViewClosed();
43 
44 // public Q_SLOTS:
45 // void graphicsViewClosed();
46 
47 private:
48 
49  QImage* convertCvImageToQt(cv::Mat& cv_img);
50 
51  void reload(vtkSmartPointer<vtkRenderer> renderer);
52 
53  QString m_name;
54  std::shared_ptr<ScanDataManager> m_sdm;
55  size_t m_idx;
56  vtkSmartPointer<vtkRenderer> m_renderer;
57  QLabel* m_label;
58  QGraphicsScene* m_graphics_scene;
60 
61 };
62 
63 } // namespace lvr2
64 
65 #endif
LVRGraphicsView * m_graphics_view
void reload(vtkSmartPointer< vtkRenderer > renderer)
std::shared_ptr< ScanDataManager > m_sdm
QGraphicsScene * m_graphics_scene
void setVisibility(bool visible)
LVRCvImageItem(std::shared_ptr< ScanDataManager > sdm, vtkSmartPointer< vtkRenderer > renderer, QString name="", QTreeWidgetItem *parent=NULL)
vtkSmartPointer< vtkRenderer > m_renderer
QImage * convertCvImageToQt(cv::Mat &cv_img)
#define NULL
Definition: mydefs.hpp:141


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