mirror of
https://gitlab.ethz.ch/gfattori/glocalize.git
synced 2026-05-03 13:44:26 +02:00
27 lines
449 B
C++
27 lines
449 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <atomic>
|
|
|
|
class vtkImageData;
|
|
|
|
class VolumePrepWorker : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit VolumePrepWorker(QObject* parent = nullptr);
|
|
|
|
public slots:
|
|
void run(vtkImageData* input);
|
|
void abort();
|
|
|
|
signals:
|
|
void finished(vtkImageData* prepared);
|
|
void error(QString msg);
|
|
void progress(double percent);
|
|
void aborted();
|
|
|
|
private:
|
|
std::atomic_bool m_abort{false};
|
|
};
|