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

The AutomaticExecSettings class is used to track the settings for the automatic execution. More...

#include <automaticexecsettings.h>

Inheritance diagram for AutomaticExecSettings:

Public Slots

void slot_addAuto (int idx, bool generate)
 slot_addAuto Connected to the SamplingWidget, used to add a plugin
 
void slot_addAutoOutput ()
 slot_addAutoOutput Connected to the OutputWidget, used to add a export
 
void slot_removedPlugin (int row)
 slot_removedPlugin Connected to the AutomaticWidget, called when the user removes an algorithm
 
void slot_saveConfiguration (QString path)
 slot_saveConfiguration Connected to the AutomaticController, called to save the current settings to a JSON file
 
void slot_loadConfiguration (QString path)
 slot_loadConfiguration Connected to the AutomaticController, called to load a existing JSON file
 
void slot_doubleClickedItem (int row)
 slot_doubleClickedItem Connected to the AutomaticWidget, called when a algorithm is double clicked to show its settings on the ui
 
void slot_autoOrderChanged (int first, int second)
 slot_autoOrderChanged Connected to the AutomaticWidget, called when algorithms are moved with the drag&drop feature
 

Signals

void sig_showExportSettings (QMap< QString, QVariant > exportSettings)
 sig_showExportSettings Connected to ExportController, used to set settings in the OutpuWidget
 
void sig_setAlgorithm (int index)
 sig_setAlgorithm Emitted to set the currently shown algorithm on the SamplingWidget
 
void sig_updatedSelectedPlugins (QStringList usedPlugins)
 sig_updatedSelectedPlugins Emitted to set the currently shown plugin list on the AutomaticWidget
 

Public Member Functions

 AutomaticExecSettings ()
 AutomaticExecSettings Constructor which creates neede connects.
 
QList< QPair< QString, QMap< QString, QVariant > > > getPluginList ()
 getPluginList Returns the current automatic settings
 
QStringList getPluginNames ()
 getPluginNames Returns QstringList with name of the alogrithm and its settings
 
void setExportController (ExportController *exportController)
 setExportController ExportController doesn't exists when this class is created, so it has to be set later
 
void loadPluginList (QString path)
 loadPluginList Actually loads the settings from the given file
 

Detailed Description

The AutomaticExecSettings class is used to track the settings for the automatic execution.

Author
Daniel Brommer
Date
2021/06/14

Constructor & Destructor Documentation

◆ AutomaticExecSettings()

AutomaticExecSettings::AutomaticExecSettings ( )

AutomaticExecSettings Constructor which creates neede connects.

Parameters
autoWidgetPointer to the AutomaticWidget
samplingWidgetPointer to the SamplingWidget
outputWidgetPointer to the OutputWidget

Member Function Documentation

◆ getPluginList()

QList< QPair< QString, QMap< QString, QVariant > > > AutomaticExecSettings::getPluginList ( )

getPluginList Returns the current automatic settings

Returns
QList with QPairs. First in the pair is name of the algorithm, second is a QMap with its settings

◆ getPluginNames()

QStringList AutomaticExecSettings::getPluginNames ( )

getPluginNames Returns QstringList with name of the alogrithm and its settings

Returns
QStringList with name + settings

◆ loadPluginList()

void AutomaticExecSettings::loadPluginList ( QString  path)

loadPluginList Actually loads the settings from the given file

Parameters
pathPath to the JSON file

◆ setExportController()

void AutomaticExecSettings::setExportController ( ExportController exportController)

setExportController ExportController doesn't exists when this class is created, so it has to be set later

Parameters
exportControllerPointer to the ExportController

◆ sig_setAlgorithm

void AutomaticExecSettings::sig_setAlgorithm ( int  index)
signal

sig_setAlgorithm Emitted to set the currently shown algorithm on the SamplingWidget

Parameters
index

◆ sig_showExportSettings

void AutomaticExecSettings::sig_showExportSettings ( QMap< QString, QVariant >  exportSettings)
signal

sig_showExportSettings Connected to ExportController, used to set settings in the OutpuWidget

Parameters
exportSettingsSettings of the export

◆ sig_updatedSelectedPlugins

void AutomaticExecSettings::sig_updatedSelectedPlugins ( QStringList  usedPlugins)
signal

sig_updatedSelectedPlugins Emitted to set the currently shown plugin list on the AutomaticWidget

Parameters
usedPluginsQStringList with the plugins

◆ slot_addAuto

void AutomaticExecSettings::slot_addAuto ( int  idx,
bool  generate 
)
slot

slot_addAuto Connected to the SamplingWidget, used to add a plugin

Parameters
idxIndex of the selected plugin
generateBoolean wether settings should be generated or not

◆ slot_autoOrderChanged

void AutomaticExecSettings::slot_autoOrderChanged ( int  first,
int  second 
)
slot

slot_autoOrderChanged Connected to the AutomaticWidget, called when algorithms are moved with the drag&drop feature

Parameters
firstfirst element to be swapped
secondsecond element to be swapped

◆ slot_doubleClickedItem

void AutomaticExecSettings::slot_doubleClickedItem ( int  row)
slot

slot_doubleClickedItem Connected to the AutomaticWidget, called when a algorithm is double clicked to show its settings on the ui

Parameters
rowIndex of the clicked algorithm

◆ slot_removedPlugin

void AutomaticExecSettings::slot_removedPlugin ( int  row)
slot

slot_removedPlugin Connected to the AutomaticWidget, called when the user removes an algorithm

Parameters
rowIndex of the removed algorithm

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