|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Read-only observer for a mitk::BaseProperty. More...
#include <mitkPropertyObserver.h>


Public Member Functions | |
| PropertyView (const mitk::BaseProperty *property) | |
| Constructor. Begins observing the given property. More... | |
| ~PropertyView () override | |
| Destructor. Removes the ITK observer from the property. More... | |
| void | OnModified (const itk::EventObject &e) |
| Callback for itk::ModifiedEvent on the observed property. More... | |
| void | OnDelete (const itk::EventObject &e) |
| Callback for itk::DeleteEvent on the observed property. More... | |
Public Member Functions inherited from mitk::PropertyObserver | |
| PropertyObserver () | |
| Constructor. More... | |
| virtual | ~PropertyObserver () |
| Virtual destructor. More... | |
| virtual void | PropertyChanged ()=0 |
| Called when the observed property value has changed. More... | |
| virtual void | PropertyRemoved ()=0 |
| Called when the observed property is about to be deleted. More... | |
Protected Attributes | |
| const mitk::BaseProperty * | m_Property |
| The observed property (read-only). More... | |
Protected Attributes inherited from mitk::PropertyObserver | |
| unsigned long | m_ModifiedTag |
| ITK observer tag for the ModifiedEvent. More... | |
| unsigned long | m_DeleteTag |
| ITK observer tag for the DeleteEvent. More... | |
| bool | m_SelfCall |
| Guard flag to prevent re-entrant notification. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from mitk::PropertyObserver | |
| void | BeginModifyProperty () |
| Marks the beginning of a self-initiated property modification. More... | |
| void | EndModifyProperty () |
| Marks the end of a self-initiated property modification. More... | |
Read-only observer for a mitk::BaseProperty.
Registers itself as an ITK observer on a const BaseProperty and receives callbacks when the property changes or is deleted.
Definition at line 86 of file mitkPropertyObserver.h.
| mitk::PropertyView::PropertyView | ( | const mitk::BaseProperty * | property | ) |
Constructor. Begins observing the given property.
| property | the property to observe. Must not be nullptr. |
| std::invalid_argument | if property is nullptr. |
|
override |
Destructor. Removes the ITK observer from the property.
| void mitk::PropertyView::OnDelete | ( | const itk::EventObject & | e | ) |
Callback for itk::DeleteEvent on the observed property.
| e | the ITK event object. |
| void mitk::PropertyView::OnModified | ( | const itk::EventObject & | e | ) |
Callback for itk::ModifiedEvent on the observed property.
| e | the ITK event object. |
|
protected |
The observed property (read-only).
Definition at line 112 of file mitkPropertyObserver.h.