36 lines
526 B
C++
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);
|
|
}
|