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

30
Classes/MyThread.cpp Normal file
View File

@@ -0,0 +1,30 @@
#include "MyThread.h"
MyThread::MyThread()
{
}
void MyThread::run()
{
if(!pcd.empty())
{
PointCloud<PointXYZRGB>::Ptr cloudPtr(new PointCloud<PointXYZRGB>);
io::loadPCDFile(pcd, *cloudPtr);
cloud = *cloudPtr;
}
}
void MyThread::setPcd(QString str)
{
pcd = str.toStdString();
}
PointCloud<PointXYZRGB> MyThread::getCloud()
{
return cloud;
}
MyThread::~MyThread()
{
}