Files
Happy-Reconstruction/Classes/MyThread.cpp
2020-05-05 23:30:52 +08:00

33 lines
386 B
C++

#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()
{
}