iVS3D v2.0.0
Loading...
Searching...
No Matches
Controller Class Reference

The Controller class is the main controller and the starting point of iVS3D. Its responsible for initializing the other controllers, the DataManager, the MainWindow, AlgorithmManager and TransformManager. This includes creating the instances and connecting their signal & slots. The Controller also handels user input on the menu bar. More...

#include <controller.h>

Inheritance diagram for Controller:

Public Slots

void slot_openInputFolder ()
 slot_openInputFolder Slot is called when a folder should be loaded. It will show a file dialog and use the DataManager to import the selected folder.
 
void slot_openInputVideo ()
 slot_openInputVideo Slot is called when a video should be loaded. It will show a file dialog and use the OpenExecutor to import the selected video.
 
void slot_openDragAndDrop (QString filePath)
 slot_openVideoDragAndDrop Slot is called when a file is drop on the VideoPlayer. It will try to import the drop file with the OpenExecutor.
 
void slot_openProject ()
 slot_openProject Slot is called when a project should be loaded It will show a file dialog and use the OpenExecutor to import the selected project.
 
void slot_saveProjectAs ()
 slot_saveProjectAs Slot is called when a project should be saved to a new location It will show a file dialog and use the DataManager to save the current project.
 
void slot_saveProject ()
 slot_saveProject Slot is called when a project should be saved If the project is saved for the firs time slot_saveProjectAs is called Otherwise it will use the DataManager to save the current project.
 
void slot_addReconstructPath ()
 slot_addReconstructPath Slot is called when 'Manage reconstrution tools' is clicked. It will execute a ReconstructionToolsDialog.
 
void slot_changeDefaultInputPath ()
 slot_changeDefaultInputPath Slot is called when 'Set input Path' is clicked. It will show a file dialog and save the selected folder in ApplicationSettings.
 
void slot_toggleColorTheme ()
 slot_toggleColorTheme Slot is called when color theme is changed by the user. Toggles between different themes.
 
void slot_changeColorTheme (ColorTheme theme)
 slot_changeColorTheme Slot is called when a specific color theme is selected.
 
void slot_changeUseCuda (bool useCuda)
 slot_changeUseCuda Slot is called when 'CUDA' is clicked.
 
void slot_changeCreateLogFile (bool createLog)
 slot_changeUseCuda Slot is called when 'create log file' is clicked.
 
void slot_changeInterpolateMetaData (bool interpolate)
 slot_changeInterpolateMetaData Slot is called when 'Interpolate missing meta data' is clicked.
 
void slot_openMetaData ()
 slot_openMetaData Slot is called when Meta Data should be loaded
 

Signals

void sig_hasStatusMessage (QString message)
 [signal] sig_hasStatusMessage() is emitted when the status message is updated.
 
void sig_colorThemeChanged (ColorTheme theme)
 [signal] sig_colorThemeChanged() is emitted when the color theme is changed.
 

Public Member Functions

 Controller (QString inputPath, QString settingsPath, QString outputPath, QString logPath)
 Controllers constructor which creates AlgorithmManager, TransformManager, DataManager and MainWindow and connecting existing signals.
 

Private Member Functions

void onSuccessfulOpen ()
 onSuccessfulOpen is called if a new import was successfully opend
 

Detailed Description

The Controller class is the main controller and the starting point of iVS3D. Its responsible for initializing the other controllers, the DataManager, the MainWindow, AlgorithmManager and TransformManager. This includes creating the instances and connecting their signal & slots. The Controller also handels user input on the menu bar.

If a new Import was successfully loaded Controller will delete all existing controllers and creat new instances of them.

Author
Daniel Brommer
Date
2021/03/5

Member Function Documentation

◆ sig_colorThemeChanged

void Controller::sig_colorThemeChanged ( ColorTheme  theme)
signal

[signal] sig_colorThemeChanged() is emitted when the color theme is changed.

Parameters
themethe new color theme

◆ sig_hasStatusMessage

void Controller::sig_hasStatusMessage ( QString  message)
signal

[signal] sig_hasStatusMessage() is emitted when the status message is updated.

Parameters
messageQString with the new status

◆ slot_changeColorTheme

void Controller::slot_changeColorTheme ( ColorTheme  theme)
slot

slot_changeColorTheme Slot is called when a specific color theme is selected.

Parameters
themeThe selected color theme

◆ slot_changeCreateLogFile

void Controller::slot_changeCreateLogFile ( bool  createLog)
slot

slot_changeUseCuda Slot is called when 'create log file' is clicked.

Parameters
createLogtrue if create log file is marked

◆ slot_changeInterpolateMetaData

void Controller::slot_changeInterpolateMetaData ( bool  interpolate)
slot

slot_changeInterpolateMetaData Slot is called when 'Interpolate missing meta data' is clicked.

Parameters
interpolatetrue if missings meta data is interpolated

◆ slot_changeUseCuda

void Controller::slot_changeUseCuda ( bool  useCuda)
slot

slot_changeUseCuda Slot is called when 'CUDA' is clicked.

Parameters
useCudatrue if CUDA is marked

The documentation for this class was generated from the following files: