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

widget that manages the different modes for the TraceEditingWidget, has a combobox with the mode names and a corresponging stackedWidgets which display the right widget according to the mode selected in the combobox, has semiautomatic and automatic default modes More...

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

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

Public Slots

void SetTheRightMode (int iIndex=-1)
 set the right mode according to the combobox if iIndex is different than -1 and emit a signal to enable/disable the seeds interactor mode based on the name of the selected mode More...
 

Signals

void ResetClicked ()
 
void SetSeedInteractorBehaviour (bool enable)
 

Public Member Functions

void AddAlgoManagerWidget (QGoAlgorithmsManagerWidget *iAlgoManagerWidget, bool ModeNeedSeeds, int iDefaultIndex=0)
 add a QGoAlgorithmsManagerWidget and set the default index of this algo widget to iDefaultIndex More...
 
void AddAlgoWidgetForAutomaticMode (QGoAlgorithmWidget *iAlgoWidget)
 add the iAlgoWidget directly in the QgoAlgomanager corresponding to the Automatic mode More...
 
void AddAlgoWidgetForSemiAutomaticMode (QGoAlgorithmWidget *iAlgoWidget)
 add the iAlgoWidget directly in the QgoAlgomanager corresponding to the Semi Automatic mode More...
 
void AddWidgetForManualMode (QWidget *iWidget, QStringList iListTimePoint, bool ModeNeedSeeds)
 create the "manual" mode and makes it correspond to the provided widget More...
 
void AddWidgetWithModeName (std::string iModeName, QWidget *iWidget, bool ModeNeedSeeds)
 add a widget in the StackedWidget with the mode name that will be added in the combobox. More...
 
std::string GetCurrentImageName ()
 return the number of the selected channel More...
 
std::string GetCurrentModeName ()
 return the mode name currently selected in the combobox More...
 
bool GetIsInvertedOn ()
 
int GetSelectedTimePoint ()
 
 QGoModesManagerWidget (std::vector< QString > iVectChannels, QStringList iListTimePoints, QWidget *iParent=0)
 
void SetTSliceForClassicViewInAllAlgoModes (int iTimePoint)
 
void SetTSliceForDopplerViewInAllAlgoModes (QHash< QString, QColor > iListTimePoints, int iChannelNumber)
 
 ~QGoModesManagerWidget ()
 

Protected Member Functions

void CheckDefaultModes ()
 check that there is something in the default modes, if not, remove the mode name from the combobox More...
 
void Initialize (std::vector< QString > iVectChannels, QStringList iListTimePoints)
 

Protected Attributes

QGoAlgorithmsManagerWidgetm_AutoAlgoManagerWidget
 
QGoAlgorithmsManagerWidgetm_ManualModeManager
 
bool m_ModeAlreadyCleaned
 
QComboBox * m_ModeComboBox
 
QStringList m_ModesWhoNeedSeeds
 
QStackedWidget * m_ModeWidgets
 
QGoAlgorithmsManagerWidgetm_SemiAutoAlgoManagerWidget
 
QVBoxLayout * m_VBoxLayout
 

Detailed Description

widget that manages the different modes for the TraceEditingWidget, has a combobox with the mode names and a corresponging stackedWidgets which display the right widget according to the mode selected in the combobox, has semiautomatic and automatic default modes

Definition at line 53 of file QGoModesManagerWidget.h.

Constructor & Destructor Documentation

QGoModesManagerWidget::QGoModesManagerWidget ( std::vector< QString >  iVectChannels,
QStringList  iListTimePoints,
QWidget *  iParent = 0 
)
explicit

Definition at line 38 of file QGoModesManagerWidget.cxx.

QGoModesManagerWidget::~QGoModesManagerWidget ( )

Definition at line 47 of file QGoModesManagerWidget.cxx.

Member Function Documentation

void QGoModesManagerWidget::AddAlgoManagerWidget ( QGoAlgorithmsManagerWidget iAlgoManagerWidget,
bool  ModeNeedSeeds,
int  iDefaultIndex = 0 
)

add a QGoAlgorithmsManagerWidget and set the default index of this algo widget to iDefaultIndex

Parameters
[in]iAlgoManagerWidget
[in]iDefaultIndexdefault index for the algo widget

Definition at line 119 of file QGoModesManagerWidget.cxx.

void QGoModesManagerWidget::AddAlgoWidgetForAutomaticMode ( QGoAlgorithmWidget iAlgoWidget)

add the iAlgoWidget directly in the QgoAlgomanager corresponding to the Automatic mode

Parameters
[in]iAlgoWidgetwidget to be added for the parameters of the algo

Definition at line 156 of file QGoModesManagerWidget.cxx.

void QGoModesManagerWidget::AddAlgoWidgetForSemiAutomaticMode ( QGoAlgorithmWidget iAlgoWidget)

add the iAlgoWidget directly in the QgoAlgomanager corresponding to the Semi Automatic mode

Parameters
[in]iAlgoWidgetwidget to be added for the parameters of the algo

Definition at line 148 of file QGoModesManagerWidget.cxx.

void QGoModesManagerWidget::AddWidgetForManualMode ( QWidget *  iWidget,
QStringList  iListTimePoint,
bool  ModeNeedSeeds 
)

create the "manual" mode and makes it correspond to the provided widget

Parameters
[in]iWidgetwidget to be added for the manual mode

Definition at line 164 of file QGoModesManagerWidget.cxx.

void QGoModesManagerWidget::AddWidgetWithModeName ( std::string  iModeName,
QWidget *  iWidget,
bool  ModeNeedSeeds 
)

add a widget in the StackedWidget with the mode name that will be added in the combobox.

Parameters
[in]iModeNamename of the mode
[in]iWidgetwidget that will be displayed when iModeName is selected
[in]ModeNeedSeedsif true, a signal will be emitted everytime the mode name appear in the combobox

Definition at line 100 of file QGoModesManagerWidget.cxx.

void QGoModesManagerWidget::CheckDefaultModes ( )
protected

check that there is something in the default modes, if not, remove the mode name from the combobox

Definition at line 130 of file QGoModesManagerWidget.cxx.

std::string QGoModesManagerWidget::GetCurrentImageName ( )

return the number of the selected channel

Definition at line 176 of file QGoModesManagerWidget.cxx.

std::string QGoModesManagerWidget::GetCurrentModeName ( )

return the mode name currently selected in the combobox

Definition at line 261 of file QGoModesManagerWidget.cxx.

bool QGoModesManagerWidget::GetIsInvertedOn ( )

Definition at line 196 of file QGoModesManagerWidget.cxx.

int QGoModesManagerWidget::GetSelectedTimePoint ( )

Definition at line 186 of file QGoModesManagerWidget.cxx.

void QGoModesManagerWidget::Initialize ( std::vector< QString >  iVectChannels,
QStringList  iListTimePoints 
)
protected

Definition at line 53 of file QGoModesManagerWidget.cxx.

void QGoModesManagerWidget::ResetClicked ( )
signal
void QGoModesManagerWidget::SetSeedInteractorBehaviour ( bool  enable)
signal
void QGoModesManagerWidget::SetTheRightMode ( int  iIndex = -1)
slot

set the right mode according to the combobox if iIndex is different than -1 and emit a signal to enable/disable the seeds interactor mode based on the name of the selected mode

Definition at line 206 of file QGoModesManagerWidget.cxx.

void QGoModesManagerWidget::SetTSliceForClassicViewInAllAlgoModes ( int  iTimePoint)

Definition at line 232 of file QGoModesManagerWidget.cxx.

void QGoModesManagerWidget::SetTSliceForDopplerViewInAllAlgoModes ( QHash< QString, QColor >  iListTimePoints,
int  iChannelNumber 
)

Definition at line 245 of file QGoModesManagerWidget.cxx.

Member Data Documentation

QGoAlgorithmsManagerWidget* QGoModesManagerWidget::m_AutoAlgoManagerWidget
protected

Definition at line 137 of file QGoModesManagerWidget.h.

QGoAlgorithmsManagerWidget* QGoModesManagerWidget::m_ManualModeManager
protected

Definition at line 138 of file QGoModesManagerWidget.h.

bool QGoModesManagerWidget::m_ModeAlreadyCleaned
protected

Definition at line 139 of file QGoModesManagerWidget.h.

QComboBox* QGoModesManagerWidget::m_ModeComboBox
protected

Definition at line 134 of file QGoModesManagerWidget.h.

QStringList QGoModesManagerWidget::m_ModesWhoNeedSeeds
protected

Definition at line 140 of file QGoModesManagerWidget.h.

QStackedWidget* QGoModesManagerWidget::m_ModeWidgets
protected

Definition at line 135 of file QGoModesManagerWidget.h.

QGoAlgorithmsManagerWidget* QGoModesManagerWidget::m_SemiAutoAlgoManagerWidget
protected

Definition at line 136 of file QGoModesManagerWidget.h.

QVBoxLayout* QGoModesManagerWidget::m_VBoxLayout
protected

Definition at line 133 of file QGoModesManagerWidget.h.


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