#include "MyThread.h" MyThread::MyThread() { } void MyThread::run() { if(!pcd.empty()) { PointCloud::Ptr cloudPtr(new PointCloud); io::loadPCDFile(pcd, *cloudPtr); cloud = *cloudPtr; } } void MyThread::setPcd(QString str) { pcd = str.toStdString(); } PointCloud MyThread::getCloud() { return cloud; } MyThread::~MyThread() { }