Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
mitkPropertyObserver.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 mitkPropertyObserver_h
14
#define mitkPropertyObserver_h
15
16
#include "
MitkCoreExports.h
"
17
#include "
mitkCommon.h
"
18
#include <itkEventObject.h>
19
20
namespace
mitk
21
{
33
class
BaseProperty;
34
35
class
MITKCORE_EXPORT
PropertyObserver
36
{
37
public
:
38
PropertyObserver
();
39
virtual
~
PropertyObserver
();
40
41
virtual
void
PropertyChanged() = 0;
42
virtual
void
PropertyRemoved() = 0;
43
44
protected
:
45
void
BeginModifyProperty();
46
void
EndModifyProperty();
47
48
unsigned
long
m_ModifiedTag
;
49
unsigned
long
m_DeleteTag
;
50
51
bool
m_SelfCall
;
52
};
53
54
class
MITKCORE_EXPORT
PropertyView
:
public
PropertyObserver
55
{
56
public
:
57
PropertyView
(
const
mitk::BaseProperty
*);
58
~
PropertyView
()
override
;
59
60
void
OnModified(
const
itk::EventObject &e);
61
void
OnDelete(
const
itk::EventObject &e);
62
63
protected
:
64
const
mitk::BaseProperty
*
m_Property
;
65
};
66
67
class
MITKCORE_EXPORT
PropertyEditor
:
public
PropertyObserver
68
{
69
public
:
70
PropertyEditor
(
mitk::BaseProperty
*);
71
~
PropertyEditor
()
override
;
72
73
void
OnModified(
const
itk::EventObject &e);
74
void
OnDelete(
const
itk::EventObject &e);
75
76
protected
:
77
mitk::BaseProperty
*
m_Property
;
78
};
79
}
80
81
#endif
mitk::BaseProperty
Abstract base class for properties.
Definition:
mitkBaseProperty.h:36
mitk::PropertyObserver::m_DeleteTag
unsigned long m_DeleteTag
Definition:
mitkPropertyObserver.h:49
mitk::PropertyView
Definition:
mitkPropertyObserver.h:54
mitk::PropertyObserver::m_ModifiedTag
unsigned long m_ModifiedTag
Definition:
mitkPropertyObserver.h:48
mitk::PropertyObserver
Definition:
mitkPropertyObserver.h:35
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
MitkCoreExports.h
mitkCommon.h
mitk::PropertyEditor
Definition:
mitkPropertyObserver.h:67
mitk::PropertyEditor::m_Property
mitk::BaseProperty * m_Property
Definition:
mitkPropertyObserver.h:77
mitk::PropertyObserver::m_SelfCall
bool m_SelfCall
Definition:
mitkPropertyObserver.h:51
mitk::PropertyView::m_Property
const mitk::BaseProperty * m_Property
Definition:
mitkPropertyObserver.h:64
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
src
MITK
Modules
Core
include
mitkPropertyObserver.h
Generated on Mon Jun 17 2024 12:43:28 for Medical Imaging Interaction Toolkit by
1.8.17