Files
Happy-Reconstruction/Classes/MyThread.cpp

36 lines
466 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;
}
auto pclData = PointCloudData::getInstance(cloud);
pclData->setCloud(cloud);
}
void MyThread::setPcd(QString str)
{
pcd = str.toStdString();
}
PointCloud<PointXYZRGB> MyThread::getCloud()
{
return cloud;
}
MyThread::~MyThread()
{
}