Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
berryNamedHandleObjectWithState.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 BERRYNAMEDHANDLEOBJECTWITHSTATE_H_
14
#define BERRYNAMEDHANDLEOBJECTWITHSTATE_H_
15
16
#include "
common/berryNamedHandleObject.h
"
17
#include "
berryIObjectWithState.h
"
18
19
#include <QHash>
20
21
namespace
berry
{
22
32
class
BERRY_COMMANDS
NamedHandleObjectWithState
:
public
NamedHandleObject
,
public
IObjectWithState
{
33
34
public
:
35
36
berryObjectMacro
(
berry::NamedHandleObjectWithState
);
37
38
void
AddState(
const
QString& stateId,
const
SmartPointer<State>
& state)
override
;
39
40
QString GetDescription()
const override
;
41
42
QString GetName()
const override
;
43
44
SmartPointer<State>
GetState(
const
QString& stateId)
const override
;
45
46
QList<QString> GetStateIds()
const override
;
47
48
void
RemoveState(
const
QString&
id
)
override
;
49
50
private
:
51
56
QHash<QString, SmartPointer<State> > states;
57
58
protected
:
59
66
NamedHandleObjectWithState
(
const
QString&
id
);
67
68
};
69
70
}
71
72
#endif
/*BERRYNAMEDHANDLEOBJECTWITHSTATE_H_*/
berryIObjectWithState.h
berry::NamedHandleObjectWithState
Definition:
berryNamedHandleObjectWithState.h:32
berryNamedHandleObject.h
berry::SmartPointer
Implements transparent reference counting.
Definition:
berryICommandCategoryListener.h:21
BERRY_COMMANDS
#define BERRY_COMMANDS
Definition:
org_blueberry_core_commands_Export.h:26
berry::IObjectWithState
Definition:
berryIObjectWithState.h:35
berry::NamedHandleObject
Definition:
berryNamedHandleObject.h:27
berryObjectMacro
#define berryObjectMacro(...)
Definition:
berryMacros.h:31
berry
Definition:
QmitkPropertyItemModel.h:24
src
MITK
Plugins
org.blueberry.core.commands
src
berryNamedHandleObjectWithState.h
Generated on Mon Jun 17 2024 12:43:21 for Medical Imaging Interaction Toolkit by
1.8.17