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_ */
vector< int > m_faces
unordered_map< VertexPtr, size_t > m_indexMap
cv::Ptr< KinFu > Ptr
Definition: kinfu.hpp:25
HalfEdgeKinFuMesh< cVertex, lvr::Normal< float > > HMesh
Definition: FusionStage.hpp:62
MeshUpdateThread(kfusion::KinFu::Ptr kinfu)
void computeMeshActor(HMesh *meshbuffer)
kfusion::KinFu::Ptr m_kinfu
lvr::HalfEdgeVertex< cVertex, lvr::Normal< float > > * VertexPtr
vtkSmartPointer< vtkActor > m_wireframeActor
void meshUpdate(vtkActor *actor)
vector< float > m_vertices


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