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

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>

Inheritance diagram for SamplingWidget:

Signals

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
 

Public Member Functions

 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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ 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
parentThe parent QWidget for this widget
titleText to display up top
algorithmListThe algorithms the user can select
transformListThe transforms the user can select
See also
IAlgorithm, ITransform

Member Function Documentation

◆ 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
idxthe index in the pluginList

◆ showAlgorithmSettings()

void SamplingWidget::showAlgorithmSettings ( QWidget *  algoSettings)

showAlgorithmSettings shows the given QWidget to the user.

Parameters
algoSettingsthe QWidget to display

◆ sig_enablePreviewChanged

void SamplingWidget::sig_enablePreviewChanged ( bool  enabled)
signal

[signal] sig_enablePreviewChanged(...) is emitted on enable preview checkbox state changed.

Parameters
enabledIs 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
resolutionThe 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
idxThe 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
idxThe index of the new transform refering to transformList

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