GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
QGoAlgorithmsManagerWidget Class Reference

manages all the algorithms widget for a same mode, has a combobox with the name of the methods which display a different QGoAlgorithmWidget depending on the method selected in the combobox More...

#include <Code/GUI/lib/TraceEditing/QGoAlgorithmsManagerWidget.h>

Inheritance diagram for QGoAlgorithmsManagerWidget:
Inheritance graph
[legend]
Collaboration diagram for QGoAlgorithmsManagerWidget:
Collaboration graph
[legend]

Signals

void InvertChecked (Qt::CheckState)
 
void ResetClicked ()
 

Public Member Functions

void AddMethod (QGoAlgorithmWidget *iAlgoWidget)
 add a widget in the stacked layout with the name of the method associated in the combobox to display it, including the parameters and the advanced parameters displayed in an expandable box More...
 
void AddWidgetForOnlyOneMethod (QWidget *iWidget)
 add the widget in the stacked_widgets and hide the methodcombobox as there will be only one method in this algomanagerwidget More...
 
std::string GetCurrentImageName ()
 return the number of the selected channel More...
 
std::string GetModeName ()
 return the name of the mode More...
 
int GetSelectedTimePoint ()
 
bool HasMethod ()
 return true if it has at least one QGoAlgorithmWidget in the stackedWidgets More...
 
bool IsInvertChecked ()
 
 QGoAlgorithmsManagerWidget (std::string iModeName, QWidget *iParent=0, std::vector< QString > iVectChannels=std::vector< QString >(), QStringList iListTime=QStringList(), bool iOnlyOneMethod=false, bool NeedApplyResetButton=true)
 
void SetCurrentChannel (QString iChannel)
 
void SetCurrentIndex (int iIndex)
 set the current index in the combobox to iIndex and get the corresponding widget to display More...
 
void SetTSliceForClassicView (QString iTimePoint)
 
void SetTSliceForDopplerView (QHash< QString, QColor > iListTimePoints, int iIndexChannel)
 
 ~QGoAlgorithmsManagerWidget ()
 

Protected Slots

void EmitApplyAlgo ()
 after button clicked signal is emitted, get the current widget of the stackedwidgets and call the method in QGoAlgoWidget to make it emit a signal More...
 

Protected Member Functions

void Initialize (std::vector< QString > iVectChannels=std::vector< QString >(), QStringList iListTime=QStringList(), bool iOnlyOneMethod=false, bool NeedApplyResetButton=true)
 add the different widgets, buttons and fill the comboboxes for channel and timepoint More...
 

Protected Attributes

QComboBox * m_ChannelComboBox
 
QCheckBox * m_InvertBox
 
QStringList m_ListTimePoints
 
QComboBox * m_MethodComboBox
 
QLabel * m_MethodLabel
 
QStackedWidget * m_MethodWidgets
 
std::string m_ModeName
 
QComboBox * m_TimeComboBox
 
QVBoxLayout * m_VBoxLayout
 

Detailed Description

manages all the algorithms widget for a same mode, has a combobox with the name of the methods which display a different QGoAlgorithmWidget depending on the method selected in the combobox

Definition at line 56 of file QGoAlgorithmsManagerWidget.h.

Constructor & Destructor Documentation

QGoAlgorithmsManagerWidget::QGoAlgorithmsManagerWidget ( std::string  iModeName,
QWidget *  iParent = 0,
std::vector< QString >  iVectChannels = std::vector<QString>(),
QStringList  iListTime = QStringList(),
bool  iOnlyOneMethod = false,
bool  NeedApplyResetButton = true 
)
explicit

Definition at line 45 of file QGoAlgorithmsManagerWidget.cxx.

QGoAlgorithmsManagerWidget::~QGoAlgorithmsManagerWidget ( )

Definition at line 59 of file QGoAlgorithmsManagerWidget.cxx.

Member Function Documentation

void QGoAlgorithmsManagerWidget::AddMethod ( QGoAlgorithmWidget iAlgoWidget)

add a widget in the stacked layout with the name of the method associated in the combobox to display it, including the parameters and the advanced parameters displayed in an expandable box

Parameters
[in]iAlgoWidgetwidget with all the parameters for the algorithm

Definition at line 140 of file QGoAlgorithmsManagerWidget.cxx.

void QGoAlgorithmsManagerWidget::AddWidgetForOnlyOneMethod ( QWidget *  iWidget)

add the widget in the stacked_widgets and hide the methodcombobox as there will be only one method in this algomanagerwidget

Definition at line 276 of file QGoAlgorithmsManagerWidget.cxx.

void QGoAlgorithmsManagerWidget::EmitApplyAlgo ( )
protectedslot

after button clicked signal is emitted, get the current widget of the stackedwidgets and call the method in QGoAlgoWidget to make it emit a signal

Definition at line 243 of file QGoAlgorithmsManagerWidget.cxx.

std::string QGoAlgorithmsManagerWidget::GetCurrentImageName ( )

return the number of the selected channel

Definition at line 252 of file QGoAlgorithmsManagerWidget.cxx.

std::string QGoAlgorithmsManagerWidget::GetModeName ( )

return the name of the mode

Returns
the name of the mode

Definition at line 163 of file QGoAlgorithmsManagerWidget.cxx.

int QGoAlgorithmsManagerWidget::GetSelectedTimePoint ( )

Definition at line 269 of file QGoAlgorithmsManagerWidget.cxx.

bool QGoAlgorithmsManagerWidget::HasMethod ( )

return true if it has at least one QGoAlgorithmWidget in the stackedWidgets

Returns
false if there is no algorithm

Definition at line 236 of file QGoAlgorithmsManagerWidget.cxx.

void QGoAlgorithmsManagerWidget::Initialize ( std::vector< QString >  iVectChannels = std::vector<QString>(),
QStringList  iListTime = QStringList(),
bool  iOnlyOneMethod = false,
bool  NeedApplyResetButton = true 
)
protected

add the different widgets, buttons and fill the comboboxes for channel and timepoint

Parameters
[in]iListChannelslist of the names of the channels
[in]iListTimelist of the timepoints

Definition at line 65 of file QGoAlgorithmsManagerWidget.cxx.

void QGoAlgorithmsManagerWidget::InvertChecked ( Qt::CheckState  )
signal
bool QGoAlgorithmsManagerWidget::IsInvertChecked ( )

Definition at line 286 of file QGoAlgorithmsManagerWidget.cxx.

void QGoAlgorithmsManagerWidget::ResetClicked ( )
signal
void QGoAlgorithmsManagerWidget::SetCurrentChannel ( QString  iChannel)

Definition at line 170 of file QGoAlgorithmsManagerWidget.cxx.

void QGoAlgorithmsManagerWidget::SetCurrentIndex ( int  iIndex)

set the current index in the combobox to iIndex and get the corresponding widget to display

Parameters
[in]iIndexindex to be displayed as the current one

Definition at line 152 of file QGoAlgorithmsManagerWidget.cxx.

void QGoAlgorithmsManagerWidget::SetTSliceForClassicView ( QString  iTimePoint)

Definition at line 178 of file QGoAlgorithmsManagerWidget.cxx.

void QGoAlgorithmsManagerWidget::SetTSliceForDopplerView ( QHash< QString, QColor >  iListTimePoints,
int  iIndexChannel 
)

Definition at line 196 of file QGoAlgorithmsManagerWidget.cxx.

Member Data Documentation

QComboBox* QGoAlgorithmsManagerWidget::m_ChannelComboBox
protected

Definition at line 132 of file QGoAlgorithmsManagerWidget.h.

QCheckBox* QGoAlgorithmsManagerWidget::m_InvertBox
protected

Definition at line 136 of file QGoAlgorithmsManagerWidget.h.

QStringList QGoAlgorithmsManagerWidget::m_ListTimePoints
protected

Definition at line 134 of file QGoAlgorithmsManagerWidget.h.

QComboBox* QGoAlgorithmsManagerWidget::m_MethodComboBox
protected

Definition at line 129 of file QGoAlgorithmsManagerWidget.h.

QLabel* QGoAlgorithmsManagerWidget::m_MethodLabel
protected

Definition at line 135 of file QGoAlgorithmsManagerWidget.h.

QStackedWidget* QGoAlgorithmsManagerWidget::m_MethodWidgets
protected

Definition at line 130 of file QGoAlgorithmsManagerWidget.h.

std::string QGoAlgorithmsManagerWidget::m_ModeName
protected

Definition at line 131 of file QGoAlgorithmsManagerWidget.h.

QComboBox* QGoAlgorithmsManagerWidget::m_TimeComboBox
protected

Definition at line 133 of file QGoAlgorithmsManagerWidget.h.

QVBoxLayout* QGoAlgorithmsManagerWidget::m_VBoxLayout
protected

Definition at line 128 of file QGoAlgorithmsManagerWidget.h.


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