GOFIGURE2
0.9.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
Code
GUI
lib
TraceEditing
QGoModesManagerWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
Authors: The GoFigure Dev. Team.
3
at Megason Lab, Systems biology, Harvard Medical school, 2009-11
4
5
Copyright (c) 2009-11, President and Fellows of Harvard College.
6
All rights reserved.
7
8
Redistribution and use in source and binary forms, with or without
9
modification, are permitted provided that the following conditions are met:
10
11
Redistributions of source code must retain the above copyright notice,
12
this list of conditions and the following disclaimer.
13
Redistributions in binary form must reproduce the above copyright notice,
14
this list of conditions and the following disclaimer in the documentation
15
and/or other materials provided with the distribution.
16
Neither the name of the President and Fellows of Harvard College
17
nor the names of its contributors may be used to endorse or promote
18
products derived from this software without specific prior written
19
permission.
20
21
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
25
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
26
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
27
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
28
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
30
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
31
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
33
=========================================================================*/
34
35
#ifndef __QGoModesManagerWidget_h
36
#define __QGoModesManagerWidget_h
37
38
#include <QWidget>
39
#include <QStackedWidget>
40
#include <QVBoxLayout>
41
#include <QComboBox>
42
#include <QHash>
43
#include "
QGoAlgorithmsManagerWidget.h
"
44
53
class
QGoModesManagerWidget
:
54
public
QWidget
55
{
56
Q_OBJECT
57
public
:
58
explicit
QGoModesManagerWidget
(std::vector<QString> iVectChannels,
59
QStringList
iListTimePoints,
QWidget
*iParent = 0);
60
~QGoModesManagerWidget
();
61
70
void
AddWidgetWithModeName
(std::string iModeName,
QWidget
* iWidget,
71
bool
ModeNeedSeeds);
72
79
void
AddAlgoManagerWidget
(
QGoAlgorithmsManagerWidget
* iAlgoManagerWidget,
80
bool
ModeNeedSeeds,
int
iDefaultIndex = 0);
81
87
void
AddAlgoWidgetForSemiAutomaticMode
(
QGoAlgorithmWidget
* iAlgoWidget);
88
94
void
AddAlgoWidgetForAutomaticMode
(
QGoAlgorithmWidget
* iAlgoWidget);
95
101
void
AddWidgetForManualMode
(
QWidget
* iWidget,
102
QStringList
iListTimePoint,
bool
ModeNeedSeeds);
103
107
std::string
GetCurrentImageName
();
108
int
GetSelectedTimePoint
();
109
bool
GetIsInvertedOn
();
110
111
void
SetTSliceForClassicViewInAllAlgoModes
(
int
iTimePoint);
112
void
SetTSliceForDopplerViewInAllAlgoModes
(
113
QHash<QString, QColor>
iListTimePoints,
int
iChannelNumber);
114
118
std::string
GetCurrentModeName
();
119
120
public
slots:
126
void
SetTheRightMode
(
int
iIndex = -1);
127
128
signals:
129
void
SetSeedInteractorBehaviour
(
bool
enable);
130
void
ResetClicked
();
131
132
protected
:
133
QVBoxLayout
*
m_VBoxLayout
;
134
QComboBox
*
m_ModeComboBox
;
135
QStackedWidget
*
m_ModeWidgets
;
136
QGoAlgorithmsManagerWidget
*
m_SemiAutoAlgoManagerWidget
;
137
QGoAlgorithmsManagerWidget
*
m_AutoAlgoManagerWidget
;
138
QGoAlgorithmsManagerWidget
*
m_ManualModeManager
;
139
bool
m_ModeAlreadyCleaned
;
140
QStringList
m_ModesWhoNeedSeeds
;
141
142
void
Initialize
(std::vector<QString> iVectChannels,
QStringList
iListTimePoints);
143
148
void
CheckDefaultModes
();
149
150
151
};
152
#endif
QWidget
QGoModesManagerWidget::GetCurrentImageName
std::string GetCurrentImageName()
return the number of the selected channel
Definition:
QGoModesManagerWidget.cxx:176
QGoModesManagerWidget::SetTSliceForDopplerViewInAllAlgoModes
void SetTSliceForDopplerViewInAllAlgoModes(QHash< QString, QColor > iListTimePoints, int iChannelNumber)
Definition:
QGoModesManagerWidget.cxx:245
QGoModesManagerWidget::m_ModeAlreadyCleaned
bool m_ModeAlreadyCleaned
Definition:
QGoModesManagerWidget.h:139
QGoModesManagerWidget::m_ModesWhoNeedSeeds
QStringList m_ModesWhoNeedSeeds
Definition:
QGoModesManagerWidget.h:140
QGoModesManagerWidget::AddAlgoWidgetForSemiAutomaticMode
void AddAlgoWidgetForSemiAutomaticMode(QGoAlgorithmWidget *iAlgoWidget)
add the iAlgoWidget directly in the QgoAlgomanager corresponding to the Semi Automatic mode ...
Definition:
QGoModesManagerWidget.cxx:148
QGoModesManagerWidget::GetIsInvertedOn
bool GetIsInvertedOn()
Definition:
QGoModesManagerWidget.cxx:196
QGoAlgorithmsManagerWidget
manages all the algorithms widget for a same mode, has a combobox with the name of the methods which ...
Definition:
QGoAlgorithmsManagerWidget.h:56
QGoModesManagerWidget::m_VBoxLayout
QVBoxLayout * m_VBoxLayout
Definition:
QGoModesManagerWidget.h:133
QGoModesManagerWidget::QGoModesManagerWidget
QGoModesManagerWidget(std::vector< QString > iVectChannels, QStringList iListTimePoints, QWidget *iParent=0)
Definition:
QGoModesManagerWidget.cxx:38
QGoAlgorithmsManagerWidget.h
QGoModesManagerWidget
widget that manages the different modes for the TraceEditingWidget, has a combobox with the mode name...
Definition:
QGoModesManagerWidget.h:53
QGoModesManagerWidget::SetTheRightMode
void SetTheRightMode(int iIndex=-1)
set the right mode according to the combobox if iIndex is different than -1 and emit a signal to enab...
Definition:
QGoModesManagerWidget.cxx:206
QHash
QGoModesManagerWidget::m_ModeWidgets
QStackedWidget * m_ModeWidgets
Definition:
QGoModesManagerWidget.h:135
QGoModesManagerWidget::AddWidgetWithModeName
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.
Definition:
QGoModesManagerWidget.cxx:100
QVBoxLayout
QStackedWidget
QGoModesManagerWidget::SetSeedInteractorBehaviour
void SetSeedInteractorBehaviour(bool enable)
QStringList
QGoModesManagerWidget::CheckDefaultModes
void CheckDefaultModes()
check that there is something in the default modes, if not, remove the mode name from the combobox ...
Definition:
QGoModesManagerWidget.cxx:130
QGoModesManagerWidget::m_AutoAlgoManagerWidget
QGoAlgorithmsManagerWidget * m_AutoAlgoManagerWidget
Definition:
QGoModesManagerWidget.h:137
QGoModesManagerWidget::m_ManualModeManager
QGoAlgorithmsManagerWidget * m_ManualModeManager
Definition:
QGoModesManagerWidget.h:138
QGoModesManagerWidget::Initialize
void Initialize(std::vector< QString > iVectChannels, QStringList iListTimePoints)
Definition:
QGoModesManagerWidget.cxx:53
QGoAlgorithmWidget
Definition:
QGoAlgorithmWidget.h:52
QGoModesManagerWidget::~QGoModesManagerWidget
~QGoModesManagerWidget()
Definition:
QGoModesManagerWidget.cxx:47
QGoModesManagerWidget::AddAlgoWidgetForAutomaticMode
void AddAlgoWidgetForAutomaticMode(QGoAlgorithmWidget *iAlgoWidget)
add the iAlgoWidget directly in the QgoAlgomanager corresponding to the Automatic mode ...
Definition:
QGoModesManagerWidget.cxx:156
QGoModesManagerWidget::AddAlgoManagerWidget
void AddAlgoManagerWidget(QGoAlgorithmsManagerWidget *iAlgoManagerWidget, bool ModeNeedSeeds, int iDefaultIndex=0)
add a QGoAlgorithmsManagerWidget and set the default index of this algo widget to iDefaultIndex ...
Definition:
QGoModesManagerWidget.cxx:119
QGoModesManagerWidget::ResetClicked
void ResetClicked()
QGoModesManagerWidget::GetSelectedTimePoint
int GetSelectedTimePoint()
Definition:
QGoModesManagerWidget.cxx:186
QGoModesManagerWidget::m_ModeComboBox
QComboBox * m_ModeComboBox
Definition:
QGoModesManagerWidget.h:134
QGoModesManagerWidget::AddWidgetForManualMode
void AddWidgetForManualMode(QWidget *iWidget, QStringList iListTimePoint, bool ModeNeedSeeds)
create the "manual" mode and makes it correspond to the provided widget
Definition:
QGoModesManagerWidget.cxx:164
QGoModesManagerWidget::GetCurrentModeName
std::string GetCurrentModeName()
return the mode name currently selected in the combobox
Definition:
QGoModesManagerWidget.cxx:261
QGoModesManagerWidget::SetTSliceForClassicViewInAllAlgoModes
void SetTSliceForClassicViewInAllAlgoModes(int iTimePoint)
Definition:
QGoModesManagerWidget.cxx:232
QGoModesManagerWidget::m_SemiAutoAlgoManagerWidget
QGoAlgorithmsManagerWidget * m_SemiAutoAlgoManagerWidget
Definition:
QGoModesManagerWidget.h:136
QComboBox
Generated on Fri Dec 13 2013 08:25:46 for GOFIGURE2 by
1.8.5