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