MeshUpdateThread.hpp
Go to the documentation of this file.
1 /*
2  * MeshUpdateThread.hpp
3  *
4  * Created on: Jan 29, 2016
5  * Author: twiemann
6  */
7 
8 #ifndef EXT_KINTINUOUS_QT_APP_MESHUPDATETHREAD_HPP_
9 #define EXT_KINTINUOUS_QT_APP_MESHUPDATETHREAD_HPP_
10 
11 #include <kfusion/kinfu.hpp>
12 #include <QThread>
13 
14 #include <vtkSmartPointer.h>
15 #include <vtkActor.h>
16 
17 class MeshUpdateThread : public QThread
18 {
19  Q_OBJECT
20 Q_SIGNALS:
21  void meshUpdate(vtkActor* actor);
22 
23 public:
25  virtual ~MeshUpdateThread();
26 
27 
28 
29 //private:
30  typedef lvr::HalfEdgeVertex<cVertex, lvr::Normal<float> >* VertexPtr;
31 
32  void run();
33  void computeMeshActor(HMesh* meshbuffer);
34 
36  unordered_map<VertexPtr, size_t> m_indexMap;
37  vtkActor* m_meshActor;
38  vtkSmartPointer<vtkActor> m_wireframeActor;
39 
40  vector<float> m_vertices;
41  vector<int> m_faces;
42 };
43 
44 #endif /* EXT_KINTINUOUS_QT_APP_MESHUPDATETHREAD_HPP_ */
MeshUpdateThread::m_wireframeActor
vtkSmartPointer< vtkActor > m_wireframeActor
Definition: MeshUpdateThread.hpp:38
HMesh
HalfEdgeKinFuMesh< cVertex, lvr::Normal< float > > HMesh
Definition: FusionStage.hpp:62
MeshUpdateThread::VertexPtr
lvr::HalfEdgeVertex< cVertex, lvr::Normal< float > > * VertexPtr
Definition: MeshUpdateThread.hpp:30
kinfu.hpp
MeshUpdateThread::~MeshUpdateThread
virtual ~MeshUpdateThread()
Definition: MeshUpdateThread.cpp:175
MeshUpdateThread::m_vertices
vector< float > m_vertices
Definition: MeshUpdateThread.hpp:40
MeshUpdateThread::meshUpdate
void meshUpdate(vtkActor *actor)
MeshUpdateThread::m_indexMap
unordered_map< VertexPtr, size_t > m_indexMap
Definition: MeshUpdateThread.hpp:36
MeshUpdateThread::run
void run()
Definition: MeshUpdateThread.cpp:165
MeshUpdateThread
Definition: MeshUpdateThread.hpp:17
kfusion::KinFu::Ptr
cv::Ptr< KinFu > Ptr
Definition: kinfu.hpp:25
MeshUpdateThread::m_faces
vector< int > m_faces
Definition: MeshUpdateThread.hpp:41
MeshUpdateThread::m_kinfu
kfusion::KinFu::Ptr m_kinfu
Definition: MeshUpdateThread.hpp:35
MeshUpdateThread::m_meshActor
vtkActor * m_meshActor
Definition: MeshUpdateThread.hpp:37
MeshUpdateThread::computeMeshActor
void computeMeshActor(HMesh *meshbuffer)
Definition: MeshUpdateThread.cpp:33
MeshUpdateThread::MeshUpdateThread
MeshUpdateThread(kfusion::KinFu::Ptr kinfu)
Definition: MeshUpdateThread.cpp:26


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