iVS3D v2.0.9
Loading...
Searching...
No Matches
exportexecutor.h
1#ifndef EXPORTEXECUTOR_H
2#define EXPORTEXECUTOR_H
3
4
5#include <QCoreApplication>
6#include <memory>
7
8
9#include "progressable.h"
10#include "DataManager.h"
11#include "exportthread.h"
12#include "logfile.h"
13#include "stringcontainer.h"
14
38{
39 Q_OBJECT
40
41public:
48 explicit ExportExecutor(QObject* parent, DataManager* dataManager, std::shared_ptr<PluginThread> pluginThread);
49
56 void startExport(const ExportConfig& config, std::shared_ptr<LogFile> logFile);
57
58public slots:
62 void slot_abort();
63
67 void slot_finished();
68
69signals:
74
79
84 void sig_warning(QString warning);
85
91
92private:
93 void closeThread();
94 volatile bool m_stopped = false;
95 DataManager* m_dataManager;
96 ExportThread* m_exportThread;
97 QObject* m_parent;
98
99 QPoint m_boundaries = QPoint(0, 0);
100 std::shared_ptr<PluginThread> m_pluginThread;
101};
102
103#endif // EXPORTEXECUTOR_H
The DataManager class is a Facade for the data holding classes in the model. It delegates most of it'...
Definition DataManager.h:29
The ExportExecutor class manages the export and its progress. It encapsules the export process and pr...
Definition exportexecutor.h:38
void startExport(const ExportConfig &config, std::shared_ptr< LogFile > logFile)
startExport starts a new Export with the currently selected keyframes in ModelInputPictures provided ...
Definition exportexecutor.cpp:13
void sig_exportFinished(ExportResult result)
[signal] sig_exportFinished is emitted after an export finished.
void slot_finished()
[slot] slot_finished is invoked from the export thread on finish.
Definition exportexecutor.cpp:64
void sig_exportStarted()
[signal] sig_exportStarted is emitted after an export started.
void slot_abort()
[slot] slot_abort stops the export.
Definition exportexecutor.cpp:51
void sig_exportAborted()
[signal] sig_exportAborted is emitted after an export was aborted.
void sig_warning(QString warning)
[signal] sig_warning is emitted for non-fatal export warnings.
The ExportThread class provides functionality to export images with given resolution,...
Definition exportthread.h:117
The Progressable interface is used to by multithreaded actions such as sampling or exporting to repor...
Definition progressable.h:18
Definition exportthread.h:51
ExportResult holds the result of an export operation.
Definition exportthread.h:78