Medical Imaging Interaction Toolkit  2021.10.99-fd647480
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 MITK_BASEPROPERTYOBSERVER_H_INCLUDED
14 #define MITK_BASEPROPERTYOBSERVER_H_INCLUDED
15 
16 #include "MitkCoreExports.h"
17 #include "mitkCommon.h"
18 #include <itkEventObject.h>
19 
20 namespace mitk
21 {
33  class BaseProperty;
34 
36  {
37  public:
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 
55  {
56  public:
58  ~PropertyView() override;
59 
60  void OnModified(const itk::EventObject &e);
61  void OnDelete(const itk::EventObject &e);
62 
63  protected:
65  };
66 
68  {
69  public:
71  ~PropertyEditor() override;
72 
73  void OnModified(const itk::EventObject &e);
74  void OnDelete(const itk::EventObject &e);
75 
76  protected:
78  };
79 }
80 
81 #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