Medical Imaging Interaction Toolkit
2024.06.99-c70462f2
Medical Imaging Interaction Toolkit
berryParameterType.h
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#ifndef BERRYPARAMETERTYPE_H_
14
#define BERRYPARAMETERTYPE_H_
15
16
#include "
common/berryHandleObject.h
"
17
#include "
berryIParameterTypeListener.h
"
18
#include "
berryIParameterValueConverter.h
"
19
20
#include <QSharedPointer>
21
22
namespace
berry
23
{
24
25
struct
IParameterValueConverter;
26
56
class
BERRY_COMMANDS
ParameterType
:
public
HandleObject
57
{
//implements Comparable {
58
59
public
:
60
61
berryObjectMacro
(
ParameterType
);
62
70
void
AddListener(
IParameterTypeListener
* listener);
71
82
bool
operator<
(
const
Object
*
object
)
const override
;
83
102
void
Define(
const
QString& type,
103
const
QSharedPointer<IParameterValueConverter>
& parameterTypeConverter);
104
113
IParameterValueConverter
* GetValueConverter()
const
;
114
128
bool
IsCompatible(
const
QObject*
const
value)
const
;
129
139
void
RemoveListener(
IParameterTypeListener
* listener);
140
147
QString ToString()
const override
;
148
153
void
Undefine()
override
;
154
155
protected
:
156
157
friend
class
CommandManager
;
158
170
ParameterType
(
const
QString&
id
);
171
172
private
:
173
182
void
FireParameterTypeChanged(
const
SmartPointer<ParameterTypeEvent>
event);
183
188
QSharedPointer<IParameterValueConverter>
parameterTypeConverter;
189
195
QString type;
196
197
IParameterTypeListener::Events
parameterTypeEvents;
198
199
};
200
201
}
202
203
#endif
/* BERRYPARAMETERTYPE_H_ */
berry::CommandManager
Definition:
berryCommandManager.h:49
berry::IParameterTypeListener::Events
Definition:
berryIParameterTypeListener.h:40
mitk::modelFit::operator<
bool operator<(const StaticParameterMap::ValueType &a, const StaticParameterMap::ValueType &b)
Compares two var lists and returns true if the first list's first item is lower than the second one's...
Definition:
mitkModelFitStaticParameterMap.h:139
berry::SmartPointer
Implements transparent reference counting.
Definition:
berryICommandCategoryListener.h:21
berryIParameterTypeListener.h
BERRY_COMMANDS
#define BERRY_COMMANDS
Definition:
org_blueberry_core_commands_Export.h:26
berry::Object
Light weight base class for most BlueBerry classes.
Definition:
berryObject.h:72
berry::IParameterValueConverter
Definition:
berryIParameterValueConverter.h:50
QSharedPointer
Definition:
berryILog.h:16
berryIParameterValueConverter.h
berry::IParameterTypeListener
Definition:
berryIParameterTypeListener.h:37
berry::HandleObject
Definition:
berryHandleObject.h:48
berryObjectMacro
#define berryObjectMacro(...)
Definition:
berryMacros.h:31
berryHandleObject.h
berry
Definition:
QmitkPropertyItemModel.h:24
berry::ParameterType
Definition:
berryParameterType.h:56
src
MITK
Plugins
org.blueberry.core.commands
src
berryParameterType.h
Generated on Thu Oct 31 2024 02:18:02 for Medical Imaging Interaction Toolkit by
1.8.17