1#ifndef EXPORTCONTROLLER_H
2#define EXPORTCONTROLLER_H
4#include "DataManager.h"
5#include "applicationsettings.h"
6#include "modelalgorithm.h"
7#include "exportexecutor.h"
8#include "view/outputwidget.h"
9#include "view/reconstructdialog.h"
10#include "view/cropexport.h"
11#include "view/emptyfolderdialog.h"
12#include "plugin/transformmanager.h"
14#include "logmanager.h"
15#include "stringcontainer.h"
16#include "model/metaData/gpsreader.h"
18#include "colmapwrapper.h"
24#include <QCoreApplication>
29#include <QElapsedTimer>
32#define RESOLUTION_LIST "2560 x 1440 (QHD)|1920 x 1080 (FHD)|1280 x 720 (HD)|1280 x 1024 (HD*)|640 x 480"
76 void setOriginalAltitude(
double altitude);
148 void slot_exportResolutionChanged(QString resolution);
150 void slot_altitudeChanged(
double altitude);
152 void slot_roiChanged(std::optional<ROI> roi);
164 void deleteExportFolder(QString path);
166 bool createDatabaseFile(QString defaultpath, QString targetpath);
167 bool createProjectFile(QString defaultpath, QString targetpath, QMap<QString, QString> projectsettings);
168 bool createShortcutplusBatch(QString reconstructDir, QString startargs, QString exportDir);
169 void updateFormatOptions();
170 bool canCopyImages();
178 std::optional<ROI> m_roi = std::nullopt;
185 QMap<QString, QString> m_currentExports;
187 QElapsedTimer m_timer;
188 uint m_imageOnPlayerId = 0;
192 double m_altitude_original = 0.0;
193 double m_altitude_current = 0.0;
The DataManager class is a Facade for the data holding classes in the model. It delegates most of it'...
Definition DataManager.h:29
The ExportController class is managing signals and slots for the start of an export and opening recon...
Definition exportcontroller.h:48
~ExportController()
ExportController::~ExportController.
Definition exportcontroller.cpp:66
QMap< QString, QVariant > getOutputSettings()
getOutputSettings returns the currently set output settings
Definition exportcontroller.cpp:80
void slot_reconstruct()
slot_reconstruct opens reconstruct dialog Gathers various information needed for the dialog before it...
Definition exportcontroller.cpp:170
bool startReconstruct()
startReconstruct handles starting reconstruct software, preparing its start-arguments,...
Definition exportcontroller.cpp:456
void setOutputSettings(QMap< QString, QVariant > settings)
setOutputSettings sets output settings
Definition exportcontroller.cpp:108
void slot_export()
slot_export starts export and creates a projectfile in the output folder It prepares various Strings ...
Definition exportcontroller.cpp:199
void sig_stopPlay()
sig_stopPlay signal stops video playback. It is used to avoid simultaneous access to model-data
void slot_outputPathChanged(QString path)
slot_outputPathChanged gets triggered if user changes the outputpath manually (without the browse fun...
Definition exportcontroller.cpp:372
void sig_exportFinished(QMap< QString, QVariant > settings)
sig_exportFinished is emitted if an export finished
void sig_exportAborted()
sig_exportAborted is emitted if export aborted
void slot_exportFinished(ExportResult result)
slot_exportFinished triggered by ExportExecutor upon finishing export Disconnects ExportExecutor,...
Definition exportcontroller.cpp:394
void slot_exportAborted()
slot_exportAborted triggered by ExportExecutor, cancelling the export Disconnects ExportExecutor,...
Definition exportcontroller.cpp:377
void slot_nextImageOnPlayer(uint idx)
slot_nextImageOnPlayer triggered when a new image is shown on the video player
Definition exportcontroller.cpp:452
void sig_hasStatusMessage(QString message)
sig_hasStatusMessage is used to display given Text in the status bar on the bottom left
void sig_exportStarted()
sig_exportStarted is emitted if export started
void slot_onKeyframesChanged()
slot_onKeyframesChanged triggered by MIP if keyframes change
Definition exportcontroller.cpp:447
void slot_showExportSettings(QMap< QString, QVariant > exportSettings)
slot_showExportSettings triggered by AutomaticExecSettings shows the given settings and saves the int...
Definition exportcontroller.cpp:442
The ExportExecutor class manages the export and its progress. It encapsules the export process and pr...
Definition exportexecutor.h:38
The LogFile class logs progress as well as information about a process (e.g. Inport,...
Definition logfile.h:23
The ReconstructDialog class handles the dialog for selecting the startup of a reconstruction software...
Definition reconstructdialog.h:22
The Resolution class encapsulates an image resolution (width and height). It provides functionality f...
Definition resolution.h:17
Wrapperclass for integration of COLMAP.
Definition colmapwrapper.h:53
ExportResult holds the result of an export operation.
Definition exportthread.h:62