Medical Imaging Interaction Toolkit  2016.11.0
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,
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 
40  {
41  public:
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 
59  {
60  public:
62  virtual ~PropertyView();
63 
64  void OnModified(const itk::EventObject &e);
65  void OnDelete(const itk::EventObject &e);
66 
67  protected:
69  };
70 
72  {
73  public:
75  virtual ~PropertyEditor();
76 
77  void OnModified(const itk::EventObject &e);
78  void OnDelete(const itk::EventObject &e);
79 
80  protected:
82  };
83 }
84 
85 #endif
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
mitk::BaseProperty * m_Property
Abstract base class for properties.
const mitk::BaseProperty * m_Property