ui 0.10 增加多线程读入pcd文件处理,提示用户等待加载,qvtk部分代码重构,ui修改

This commit is contained in:
ZESl
2020-04-19 21:59:33 +08:00
parent 9bca2d1482
commit 6226f3f909
9 changed files with 356 additions and 156 deletions

25
Classes/MyThread.h Normal file
View File

@@ -0,0 +1,25 @@
#pragma once
#include <qthread.h>
#include <pcl/point_types.h>
#include <pcl/io/vtk_lib_io.h>
using namespace std;
using namespace pcl;
class MyThread :
public QThread
{
public:
MyThread();
~MyThread();
void setPcd(QString str);
PointCloud<PointXYZRGB> getCloud();
private:
string pcd;
PointCloud<PointXYZRGB> cloud;
protected:
void run();
};