MainWindow.hpp
Go to the documentation of this file.
1 /*
2  * MainWindow.hpp
3  *
4  * Created on: Jan 26, 2016
5  * Author: twiemann
6  */
7 
8 #ifndef EXT_KINTINUOUS_QT_APP_MAINWINDOW_HPP_
9 #define EXT_KINTINUOUS_QT_APP_MAINWINDOW_HPP_
10 
11 #include <QtGui>
12 
13 #include "../kfusion/include/kfusion/kinfu.hpp"
14 #include <io/capture.hpp>
15 
16 #include "KinfuMainWindow.h"
17 #include "MeshUpdateThread.hpp"
18 
19 #include <vtkSmartPointer.h>
20 #include <vtkActor.h>
21 #include <vtkActorCollection.h>
22 #include <vtkCommand.h>
23 #include <vtkRenderer.h>
24 #include <vtkRendererCollection.h>
25 #include <vtkRenderWindow.h>
26 #include <vtkRenderWindowInteractor.h>
27 #include <vtkViewport.h>
28 #include <vtkObjectFactory.h>
29 #include <vtkGraphicsFactory.h>
30 #include <vtkOrientationMarkerWidget.h>
31 #include <vtkAxesActor.h>
32 
33 /*
34  *
35  */
36 class MainWindow : public QMainWindow, public Ui::MainWindow
37 {
38  Q_OBJECT
39 public:
40  MainWindow(QMainWindow* parent = 0);
41  virtual ~MainWindow();
42 
43 public Q_SLOTS:
44  void pollGPUData();
45  void finalizeMesh();
46  void updateMesh(vtkActor*);
47 
48 private:
49  void setupVTK();
50 
53  QTimer* m_timer;
56  cv::Mat m_deviceImg;
57 
58  vtkSmartPointer<vtkRenderer> m_renderer;
59  vtkSmartPointer<vtkRenderWindowInteractor> m_renderWindowInteractor;
60  vtkSmartPointer<vtkOrientationMarkerWidget> m_axesWidget;
61  vtkSmartPointer<vtkAxesActor> m_axes;
62  vtkActor* m_meshActor;
63 
65  vector<Affine3f> sample_poses_;
66 };
67 
68 #endif /* EXT_KINTINUOUS_QT_APP_MAINWINDOW_HPP_ */
kfusion::KinFu::Ptr m_kinfu
Definition: MainWindow.hpp:52
vtkActor * m_meshActor
Definition: MainWindow.hpp:62
vtkSmartPointer< vtkAxesActor > m_axes
Definition: MainWindow.hpp:61
MeshUpdateThread * m_meshThread
Definition: MainWindow.hpp:64
void updateMesh(vtkActor *)
Definition: MainWindow.cpp:88
cv::Ptr< KinFu > Ptr
Definition: kinfu.hpp:25
vector< Affine3f > sample_poses_
Definition: MainWindow.hpp:65
vtkSmartPointer< vtkOrientationMarkerWidget > m_axesWidget
Definition: MainWindow.hpp:60
vtkSmartPointer< vtkRenderer > m_renderer
Definition: MainWindow.hpp:58
DeviceArray2D class
void finalizeMesh()
Definition: MainWindow.cpp:154
void setupVTK()
Definition: MainWindow.cpp:159
cuda::Image m_viewImage
Definition: MainWindow.hpp:54
void pollGPUData()
Definition: MainWindow.cpp:191
virtual ~MainWindow()
Definition: MainWindow.cpp:311
cuda::Depth m_depth_device
Definition: MainWindow.hpp:55
cv::Mat m_deviceImg
Definition: MainWindow.hpp:56
OpenNISource * m_openNISource
Definition: MainWindow.hpp:51
MainWindow(QMainWindow *parent=0)
Definition: MainWindow.cpp:42
QTimer * m_timer
Definition: MainWindow.hpp:53
vtkSmartPointer< vtkRenderWindowInteractor > m_renderWindowInteractor
Definition: MainWindow.hpp:59


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