The SamplingWidget class is a graphical user interface to select and edit sampling algorithms and transforms. The algorithm settings can be modified using the QWidget provided by IAlgorithm::getSettingsWidget(). The transfrom settings can be modified using the QWidget provided by ITransform::getSettingsWidget(). The user can select algorithms provided by AlgorithmManager::instance and transforms provided by TransformManager::instance as well as define the image base. Image bases are:
More...
#include <samplingwidget.h>
|
| void | sig_selectedAlgorithmChanged (int idx) |
| | [signal] sig_selectedAlgorithmChanged(...) is emitted on dropdown index changed to an IAlgorithm instance.
|
| |
| void | sig_selectedTransformChanged (int idx) |
| | [signal] sig_selectedTransformChanged(...) is emitted on dropdown index changed to an ITransfrom instance.
|
| |
|
void | sig_startSampling () |
| | [signal] sig_startSampling(...) is emitted on start sampling button pressed.
|
| |
| void | sig_enablePreviewChanged (bool enabled) |
| | [signal] sig_enablePreviewChanged(...) is emitted on enable preview checkbox state changed.
|
| |
| void | sig_resChanged (QString resolution) |
| | [signal] sig_resChanged(...) is emitted if the resolution in the combo box is changed
|
| |
|
| | SamplingWidget (QWidget *parent=nullptr, QStringList algorithmList=QStringList("no algorithm"), QStringList transformList=QStringList("")) |
| | Creates a SamplingWidget with the title displayed up top and the algorithmList to select algorithms from. Returned indices refer to this algorithmList.
|
| |
| void | showAlgorithmSettings (QWidget *algoSettings) |
| | showAlgorithmSettings shows the given QWidget to the user.
|
| |
| int | getSelectedAlgorithm () |
| | getSelectedAlgorithm returns the currently selected Algorithm
|
| |
| int | getSelctedType () |
| | getSelctedType returns the type of the curently selected Algorithm
|
| |
| void | setAlgorithm (int idx) |
| | setAlgorithm sets the currently selceted algoritm to the algorithm corresponding to the index
|
| |
The SamplingWidget class is a graphical user interface to select and edit sampling algorithms and transforms. The algorithm settings can be modified using the QWidget provided by IAlgorithm::getSettingsWidget(). The transfrom settings can be modified using the QWidget provided by ITransform::getSettingsWidget(). The user can select algorithms provided by AlgorithmManager::instance and transforms provided by TransformManager::instance as well as define the image base. Image bases are:
- all images
- keyframes only
- all images (use boundaries)
- keyframes only (use boundaries)
The SamplingWidget provides signals on selected algorithm changed and start button pressed as well as selected transform changed.
- Author
- Dominik Wüst
- Date
- 2021/03/03
◆ SamplingWidget()
| SamplingWidget::SamplingWidget |
( |
QWidget * |
parent = nullptr, |
|
|
QStringList |
algorithmList = QStringList("no algorithm"), |
|
|
QStringList |
transformList = QStringList("") |
|
) |
| |
|
explicit |
Creates a SamplingWidget with the title displayed up top and the algorithmList to select algorithms from. Returned indices refer to this algorithmList.
- Parameters
-
| parent | The parent QWidget for this widget |
| title | Text to display up top |
| algorithmList | The algorithms the user can select |
| transformList | The transforms the user can select |
- See also
- IAlgorithm, ITransform
◆ getSelctedType()
| int SamplingWidget::getSelctedType |
( |
| ) |
|
getSelctedType returns the type of the curently selected Algorithm
- Returns
- 1 if algorithm, 0 if transformation
◆ getSelectedAlgorithm()
| int SamplingWidget::getSelectedAlgorithm |
( |
| ) |
|
getSelectedAlgorithm returns the currently selected Algorithm
- Returns
- int wich corresponds to the index in the pluginlist
◆ setAlgorithm()
| void SamplingWidget::setAlgorithm |
( |
int |
idx | ) |
|
setAlgorithm sets the currently selceted algoritm to the algorithm corresponding to the index
- Parameters
-
| idx | the index in the pluginList |
◆ showAlgorithmSettings()
| void SamplingWidget::showAlgorithmSettings |
( |
QWidget * |
algoSettings | ) |
|
showAlgorithmSettings shows the given QWidget to the user.
- Parameters
-
| algoSettings | the QWidget to display |
◆ sig_enablePreviewChanged
| void SamplingWidget::sig_enablePreviewChanged |
( |
bool |
enabled | ) |
|
|
signal |
[signal] sig_enablePreviewChanged(...) is emitted on enable preview checkbox state changed.
- Parameters
-
| enabled | Is true if enable preview is checked, false otherwise. |
◆ sig_resChanged
| void SamplingWidget::sig_resChanged |
( |
QString |
resolution | ) |
|
|
signal |
[signal] sig_resChanged(...) is emitted if the resolution in the combo box is changed
- Parameters
-
| resolution | The selected resolution as a string |
◆ sig_selectedAlgorithmChanged
| void SamplingWidget::sig_selectedAlgorithmChanged |
( |
int |
idx | ) |
|
|
signal |
[signal] sig_selectedAlgorithmChanged(...) is emitted on dropdown index changed to an IAlgorithm instance.
- See also
- IAlgorithm
- Parameters
-
| idx | The index of the new algorithm refering to algorithmList given to constructor |
◆ sig_selectedTransformChanged
| void SamplingWidget::sig_selectedTransformChanged |
( |
int |
idx | ) |
|
|
signal |
[signal] sig_selectedTransformChanged(...) is emitted on dropdown index changed to an ITransfrom instance.
- See also
- ITransfrom
- Parameters
-
| idx | The index of the new transform refering to transformList |
The documentation for this class was generated from the following files:
- iVS3D/src/iVS3D-core/view/samplingwidget.h
- iVS3D/src/iVS3D-core/view/samplingwidget.cpp