The ExportController class is managing signals and slots for the start of an export and opening reconstruction software. The class manages the output widget on the bottom right plus the reconstruct dialog, having signals for all relevant events triggered by that widget and dialog.
More...
#include <exportcontroller.h>
|
|
void | slot_export () |
| | slot_export starts export and creates a projectfile in the output folder It prepares various Strings needed, plus creates a AlgorithmExecutor and connects its signals&slots before it starts the export itself.
|
| |
|
void | slot_reconstruct () |
| | slot_reconstruct opens reconstruct dialog Gathers various information needed for the dialog before it opens it.
|
| |
| void | slot_outputPathChanged (QString path) |
| | slot_outputPathChanged gets triggered if user changes the outputpath manually (without the browse function)
|
| |
|
void | slot_exportAborted () |
| | slot_exportAborted triggered by ExportExecutor, cancelling the export Disconnects ExportExecutor, removes progress bar and shows export results
|
| |
| void | slot_exportFinished (ExportResult result) |
| | slot_exportFinished triggered by ExportExecutor upon finishing export Disconnects ExportExecutor, removes progress bar and shows export results
|
| |
| void | slot_showExportSettings (QMap< QString, QVariant > exportSettings) |
| | slot_showExportSettings triggered by AutomaticExecSettings shows the given settings and saves the internal
|
| |
|
void | slot_onKeyframesChanged () |
| | slot_onKeyframesChanged triggered by MIP if keyframes change
|
| |
| void | slot_nextImageOnPlayer (uint idx) |
| | slot_nextImageOnPlayer triggered when a new image is shown on the video player
|
| |
|
| void | sig_hasStatusMessage (QString message) |
| | sig_hasStatusMessage is used to display given Text in the status bar on the bottom left
|
| |
|
void | sig_stopPlay () |
| | sig_stopPlay signal stops video playback. It is used to avoid simultaneous access to model-data
|
| |
| void | sig_exportFinished (QMap< QString, QVariant > settings) |
| | sig_exportFinished is emitted if an export finished
|
| |
|
void | sig_exportStarted () |
| | sig_exportStarted is emitted if export started
|
| |
|
void | sig_exportAborted () |
| | sig_exportAborted is emitted if export aborted
|
| |
|
| bool | startReconstruct () |
| | startReconstruct handles starting reconstruct software, preparing its start-arguments, creating batch-files and project-file for Colmap:
|
| |
The ExportController class is managing signals and slots for the start of an export and opening reconstruction software. The class manages the output widget on the bottom right plus the reconstruct dialog, having signals for all relevant events triggered by that widget and dialog.
- Author
- Lennart Ruck
- Date
- 2021/02/08
◆ ExportController()
ExportController is created with a prepared outputWidget and dataManager pointer Connects to GUI, initializes member pointers.
- Parameters
-
◆ getOutputSettings()
| QMap< QString, QVariant > ExportController::getOutputSettings |
( |
| ) |
|
getOutputSettings returns the currently set output settings
- Returns
- QMap with the current output settings
◆ setOutputSettings()
| void ExportController::setOutputSettings |
( |
QMap< QString, QVariant > |
settings | ) |
|
setOutputSettings sets output settings
- Parameters
-
| QMap | with the output settings |
◆ sig_exportFinished
| void ExportController::sig_exportFinished |
( |
QMap< QString, QVariant > |
settings | ) |
|
|
signal |
sig_exportFinished is emitted if an export finished
- Parameters
-
◆ sig_hasStatusMessage
| void ExportController::sig_hasStatusMessage |
( |
QString |
message | ) |
|
|
signal |
sig_hasStatusMessage is used to display given Text in the status bar on the bottom left
- Parameters
-
| message | wanted output as QString |
◆ slot_exportFinished
| void ExportController::slot_exportFinished |
( |
ExportResult |
result | ) |
|
|
slot |
slot_exportFinished triggered by ExportExecutor upon finishing export Disconnects ExportExecutor, removes progress bar and shows export results
- Parameters
-
| result | unused (error code 0=OK, 1=stopped, -1=export failed) |
◆ slot_nextImageOnPlayer
| void ExportController::slot_nextImageOnPlayer |
( |
uint |
idx | ) |
|
|
slot |
slot_nextImageOnPlayer triggered when a new image is shown on the video player
- Parameters
-
| image | mat of the image |
| id | id of the image |
◆ slot_outputPathChanged
| void ExportController::slot_outputPathChanged |
( |
QString |
path | ) |
|
|
slot |
slot_outputPathChanged gets triggered if user changes the outputpath manually (without the browse function)
- Parameters
-
| path | new path input by the user |
◆ slot_showExportSettings
| void ExportController::slot_showExportSettings |
( |
QMap< QString, QVariant > |
exportSettings | ) |
|
|
slot |
slot_showExportSettings triggered by AutomaticExecSettings shows the given settings and saves the internal
- Parameters
-
| QMap | containing the export settings |
◆ startReconstruct()
| bool ExportController::startReconstruct |
( |
| ) |
|
|
private |
startReconstruct handles starting reconstruct software, preparing its start-arguments, creating batch-files and project-file for Colmap:
- creates batch files which can be executed manually which hold given start arguments for later use
- creates project.ini file for colmap (and empty database.db)
- starts colmap if startarguments start with "gui" otherwise starts explorer at path of batch files which can then be executed for the desired result
- Returns
- returns true if everything succeeded, returns false if an error occurs at any point.
The documentation for this class was generated from the following files:
- iVS3D/src/iVS3D-core/controller/exportcontroller.h
- iVS3D/src/iVS3D-core/controller/exportcontroller.cpp