Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
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,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
17
#ifndef MITK_BASEPROPERTYOBSERVER_H_INCLUDED
18
#define MITK_BASEPROPERTYOBSERVER_H_INCLUDED
19
20
#include "
MitkCoreExports.h
"
21
#include "
mitkCommon.h
"
22
#include <itkEventObject.h>
23
24
namespace
mitk
25
{
37
class
BaseProperty;
38
39
class
MITKCORE_EXPORT
PropertyObserver
40
{
41
public
:
42
PropertyObserver
();
43
virtual
~
PropertyObserver
();
44
45
virtual
void
PropertyChanged() = 0;
46
virtual
void
PropertyRemoved() = 0;
47
48
protected
:
49
void
BeginModifyProperty();
50
void
EndModifyProperty();
51
52
unsigned
long
m_ModifiedTag
;
53
unsigned
long
m_DeleteTag
;
54
55
bool
m_SelfCall
;
56
};
57
58
class
MITKCORE_EXPORT
PropertyView
:
public
PropertyObserver
59
{
60
public
:
61
PropertyView
(
const
mitk::BaseProperty
*);
62
virtual
~
PropertyView
();
63
64
void
OnModified(
const
itk::EventObject &e);
65
void
OnDelete(
const
itk::EventObject &e);
66
67
protected
:
68
const
mitk::BaseProperty
*
m_Property
;
69
};
70
71
class
MITKCORE_EXPORT
PropertyEditor
:
public
PropertyObserver
72
{
73
public
:
74
PropertyEditor
(
mitk::BaseProperty
*);
75
virtual
~
PropertyEditor
();
76
77
void
OnModified(
const
itk::EventObject &e);
78
void
OnDelete(
const
itk::EventObject &e);
79
80
protected
:
81
mitk::BaseProperty
*
m_Property
;
82
};
83
}
84
85
#endif
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
mitk::PropertyEditor
Definition:
mitkPropertyObserver.h:71
MitkCoreExports.h
mitkCommon.h
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
GeometryOverview.dox:1
mitk::PropertyObserver::m_ModifiedTag
unsigned long m_ModifiedTag
Definition:
mitkPropertyObserver.h:52
mitk::PropertyObserver
Definition:
mitkPropertyObserver.h:39
mitk::PropertyEditor::m_Property
mitk::BaseProperty * m_Property
Definition:
mitkPropertyObserver.h:81
mitk::BaseProperty
Abstract base class for properties.
Definition:
mitkBaseProperty.h:39
mitk::PropertyView
Definition:
mitkPropertyObserver.h:58
mitk::PropertyView::m_Property
const mitk::BaseProperty * m_Property
Definition:
mitkPropertyObserver.h:68
mitk::PropertyObserver::m_DeleteTag
unsigned long m_DeleteTag
Definition:
mitkPropertyObserver.h:53
mitk::PropertyObserver::m_SelfCall
bool m_SelfCall
Definition:
mitkPropertyObserver.h:55
git
MITK
Modules
Core
include
mitkPropertyObserver.h
Generated on Fri Feb 3 2017 20:52:06 for Medical Imaging Interaction Toolkit by
1.8.9.1