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
lvr2::LVRCvImageItem::reload
void reload(vtkSmartPointer< vtkRenderer > renderer)
Definition: LVRCvImageItem.cpp:22
ScanDataManager.hpp
lvr2::LVRCvImageItem::setVisibility
void setVisibility(bool visible)
Definition: LVRCvImageItem.cpp:27
lvr2::LVRCvImageItem::m_name
QString m_name
Definition: LVRCvImageItem.hpp:53
lvr2::LVRCvImageItem::m_label
QLabel * m_label
Definition: LVRCvImageItem.hpp:57
lvr2::LVRCvImageItem::getName
QString getName()
Definition: LVRCvImageItem.hpp:34
NULL
#define NULL
Definition: mydefs.hpp:141
lvr2::LVRCvImageItem::LVRCvImageItem
LVRCvImageItem(std::shared_ptr< ScanDataManager > sdm, vtkSmartPointer< vtkRenderer > renderer, QString name="", QTreeWidgetItem *parent=NULL)
Definition: LVRCvImageItem.cpp:9
lvr2::LVRCvImageItem::openWindow
void openWindow()
Definition: LVRCvImageItem.cpp:38
lvr2::LVRGraphicsView
Definition: LVRGraphicsView.hpp:12
lvr2::LVRCvImageItem::~LVRCvImageItem
~LVRCvImageItem()
Definition: LVRCvImageItem.cpp:132
lvr2::LVRCvImageItem::m_sdm
std::shared_ptr< ScanDataManager > m_sdm
Definition: LVRCvImageItem.hpp:54
lvr2::LVRCvImageItem::convertCvImageToQt
QImage * convertCvImageToQt(cv::Mat &cv_img)
Definition: LVRCvImageItem.cpp:112
lvr2
Definition: BaseBufferManipulators.hpp:39
LVRGraphicsView.hpp
lvr2::LVRCvImageItem::m_graphics_scene
QGraphicsScene * m_graphics_scene
Definition: LVRCvImageItem.hpp:58
lvr2::LVRCvImageItem::m_idx
size_t m_idx
Definition: LVRCvImageItem.hpp:55
lvr2::LVRCvImageItem::m_renderer
vtkSmartPointer< vtkRenderer > m_renderer
Definition: LVRCvImageItem.hpp:56
lvr2::LVRCvImageItem::closeWindow
void closeWindow()
Definition: LVRCvImageItem.cpp:107
lvr2::LVRCvImageItem::graphicsViewClosed
void graphicsViewClosed()
Definition: LVRCvImageItem.cpp:127
lvr2::LVRCvImageItem::m_graphics_view
LVRGraphicsView * m_graphics_view
Definition: LVRCvImageItem.hpp:59
lvr2::LVRCvImageItem
Definition: LVRCvImageItem.hpp:22


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