dispmap/svworker.cpp
2014-07-25 12:32:46 +04:00

36 lines
526 B
C++

#include "svworker.h"
SvWorker::SvWorker(QObject *parent) :
QObject(parent)
{
}
SvWorker::SvWorker(SvProcessor *processor, SvKernel *kernel)
{
m_processor = processor;
m_kernel = kernel;
}
void SvWorker::stop()
{
}
void SvWorker::start()
{
SvProcessorTask task;
while(true) {
try {
task = m_processor->nextTask();
} catch (SvNoMoreTasks ex) {
break;
}
m_kernel->exec(task.pointCloud, task.image, task.line);
}
emit finished(m_id);
}