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_ */
MainWindow::m_depth_device
cuda::Depth m_depth_device
Definition: MainWindow.hpp:55
MainWindow::m_viewImage
cuda::Image m_viewImage
Definition: MainWindow.hpp:54
MeshUpdateThread.hpp
MainWindow::m_renderer
vtkSmartPointer< vtkRenderer > m_renderer
Definition: MainWindow.hpp:58
MainWindow::pollGPUData
void pollGPUData()
Definition: MainWindow.cpp:191
MainWindow::m_renderWindowInteractor
vtkSmartPointer< vtkRenderWindowInteractor > m_renderWindowInteractor
Definition: MainWindow.hpp:59
MainWindow::m_openNISource
OpenNISource * m_openNISource
Definition: MainWindow.hpp:51
MainWindow::finalizeMesh
void finalizeMesh()
Definition: MainWindow.cpp:154
MainWindow::m_deviceImg
cv::Mat m_deviceImg
Definition: MainWindow.hpp:56
kfusion::OpenNISource
Definition: capture.hpp:10
MainWindow::~MainWindow
virtual ~MainWindow()
Definition: MainWindow.cpp:311
MainWindow::m_timer
QTimer * m_timer
Definition: MainWindow.hpp:53
MainWindow::setupVTK
void setupVTK()
Definition: MainWindow.cpp:159
MainWindow::updateMesh
void updateMesh(vtkActor *)
Definition: MainWindow.cpp:88
MainWindow::m_meshThread
MeshUpdateThread * m_meshThread
Definition: MainWindow.hpp:64
MainWindow::m_meshActor
vtkActor * m_meshActor
Definition: MainWindow.hpp:62
capture.hpp
MainWindow::m_kinfu
kfusion::KinFu::Ptr m_kinfu
Definition: MainWindow.hpp:52
MeshUpdateThread
Definition: MeshUpdateThread.hpp:17
kfusion::KinFu::Ptr
cv::Ptr< KinFu > Ptr
Definition: kinfu.hpp:25
MainWindow::m_axesWidget
vtkSmartPointer< vtkOrientationMarkerWidget > m_axesWidget
Definition: MainWindow.hpp:60
MainWindow::MainWindow
MainWindow(QMainWindow *parent=0)
Definition: MainWindow.cpp:42
MainWindow::sample_poses_
vector< Affine3f > sample_poses_
Definition: MainWindow.hpp:65
kfusion::cuda::DeviceArray2D
DeviceArray2D class
Definition: device_array.hpp:117
MainWindow::m_axes
vtkSmartPointer< vtkAxesActor > m_axes
Definition: MainWindow.hpp:61


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