ui 0.10 增加多线程读入pcd文件处理,提示用户等待加载,qvtk部分代码重构,ui修改
This commit is contained in:
25
Classes/MyThread.h
Normal file
25
Classes/MyThread.h
Normal 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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user