The AlgorithmManager class is a singleton which is responisble for loading and executing the IAlgorithm plugins.
More...
#include <algorithmmanager.h>
|
| QWidget * | getSettingsWidget (QWidget *parent, uint idx) |
| | getSettingsWidget Gets the Settings widget from the algorithm with the given index
|
| |
| std::vector< uint > | sample (std::vector< uint > sharpImages, Progressable *receiver, volatile bool *stopped, int idx, bool useCuda, LogFileParent *logFile) |
| | sample Executes the indexed algorithm
|
| |
|
QStringList | getAlgorithmNames () |
| | **
|
| |
| QString | getPluginNameToIndex (int index) |
| | getIndexToPluginName Takes the index of a plugin and returns it's translated name.
|
| |
| QString | getPluginFileNameToIndex (int index) |
| | getPluginFileNameToIndex Takes the index of a plugin and returns it's file name.
|
| |
| QString | getPluginNameFromFileName (QString FileName) |
| | getPluginNameFromFileName Takes the name of a plugin file and returns it's translated name.
|
| |
| int | getIndexFromFileName (QString FileName) |
| | getIndexFromFileName Takes the name of a plugin file and returns its index.
|
| |
| int | getAlgorithmCount () |
| | getAlgorithmCount returns the number of loaded IAlgorithms
|
| |
| void | initializePlugins (Reader *reader, QMap< QString, QMap< QString, QVariant > > allBuffer) |
| | initializePlugins calls the initialize method on all loaded IAlgorithms
|
| |
| void | setSettings (int idx, QMap< QString, QVariant > settings) |
| | setSettings sets the settings of the indexed plugin
|
| |
| QMap< QString, QVariant > | generateSettings (int idx, Progressable *receiver, bool useCuda, volatile bool *stopped) |
| | generateSettings returns the generated settings of the indexed plugin
|
| |
| QMap< QString, QVariant > | getSettings (int idx) |
| | getSettings gets the settings of the indexed plugin
|
| |
The AlgorithmManager class is a singleton which is responisble for loading and executing the IAlgorithm plugins.
- Author
- Patrick Binder
- Date
- 2021/02/15
◆ generateSettings()
| QMap< QString, QVariant > AlgorithmManager::generateSettings |
( |
int |
idx, |
|
|
Progressable * |
receiver, |
|
|
bool |
useCuda, |
|
|
volatile bool * |
stopped |
|
) |
| |
generateSettings returns the generated settings of the indexed plugin
- Parameters
-
| idx | Index of the plugin |
| receiver | is a progressable, which displays the already made progress |
| buffer | QVariant with the buffered data form last call to sampleImages |
| useCuda | true if cv::cuda can be used |
| stopped | Bool to indicated user stopped the generation of settings |
◆ getAlgorithmCount()
| int AlgorithmManager::getAlgorithmCount |
( |
| ) |
|
getAlgorithmCount returns the number of loaded IAlgorithms
- Returns
- The number of loaded IAlgorithms
◆ getIndexFromFileName()
| int AlgorithmManager::getIndexFromFileName |
( |
QString |
FileName | ) |
|
getIndexFromFileName Takes the name of a plugin file and returns its index.
- Parameters
-
| FileName | nmae of the plugin file |
- Returns
- index Index of the plugin
◆ getPluginFileNameToIndex()
| QString AlgorithmManager::getPluginFileNameToIndex |
( |
int |
index | ) |
|
getPluginFileNameToIndex Takes the index of a plugin and returns it's file name.
- Parameters
-
- Returns
- Name of the plugin file
◆ getPluginNameFromFileName()
| QString AlgorithmManager::getPluginNameFromFileName |
( |
QString |
FileName | ) |
|
getPluginNameFromFileName Takes the name of a plugin file and returns it's translated name.
- Parameters
-
| FileName | nmae of the plugin file |
- Returns
- (possibly) translated name of the plugin
◆ getPluginNameToIndex()
| QString AlgorithmManager::getPluginNameToIndex |
( |
int |
index | ) |
|
getIndexToPluginName Takes the index of a plugin and returns it's translated name.
- Parameters
-
- Returns
- (possibly) translated name of the plugin
◆ getSettings()
| QMap< QString, QVariant > AlgorithmManager::getSettings |
( |
int |
idx | ) |
|
getSettings gets the settings of the indexed plugin
- Parameters
-
- Returns
- Settings map
◆ getSettingsWidget()
| QWidget * AlgorithmManager::getSettingsWidget |
( |
QWidget * |
parent, |
|
|
uint |
idx |
|
) |
| |
getSettingsWidget Gets the Settings widget from the algorithm with the given index
- Parameters
-
| parent | The parent Widget |
| idx | Index of the Algorithm |
- Returns
- Settings widget of the indexed algorithm
◆ initializePlugins()
| void AlgorithmManager::initializePlugins |
( |
Reader * |
reader, |
|
|
QMap< QString, QMap< QString, QVariant > > |
allBuffer |
|
) |
| |
initializePlugins calls the initialize method on all loaded IAlgorithms
- Parameters
-
| reader | The reader needed for the initialize method according to IAlgorithm |
◆ instance()
instance singleton method
- Returns
- The one istance of this class
◆ sample()
| std::vector< uint > AlgorithmManager::sample |
( |
std::vector< uint > |
sharpImages, |
|
|
Progressable * |
receiver, |
|
|
volatile bool * |
stopped, |
|
|
int |
idx, |
|
|
bool |
useCuda, |
|
|
LogFileParent * |
logFile |
|
) |
| |
sample Executes the indexed algorithm
- Parameters
-
| Parameters | according to the IAlgorithm interface |
| idx | Index of the Algorithm |
- Returns
- Keyframe list calculated by the plugin
◆ setSettings()
| void AlgorithmManager::setSettings |
( |
int |
idx, |
|
|
QMap< QString, QVariant > |
settings |
|
) |
| |
setSettings sets the settings of the indexed plugin
- Parameters
-
| idx | Index of the plugin |
| settings | Settings map |
The documentation for this class was generated from the following files:
- iVS3D/src/iVS3D-core/plugin/algorithmmanager.h
- iVS3D/src/iVS3D-core/plugin/algorithmmanager.cpp