Public Member Functions | Protected Attributes

mitk::PropertyEditor Class Reference

#include <mitkPropertyObserver.h>

Inheritance diagram for mitk::PropertyEditor:
Inheritance graph
[legend]
Collaboration diagram for mitk::PropertyEditor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PropertyEditor (mitk::BaseProperty *)
virtual ~PropertyEditor ()
void OnModified (const itk::EventObject &e)
void OnDelete (const itk::EventObject &e)

Protected Attributes

mitk::BasePropertym_Property

Detailed Description

Definition at line 76 of file mitkPropertyObserver.h.


Constructor & Destructor Documentation

mitk::PropertyEditor::PropertyEditor ( mitk::BaseProperty property )

Definition at line 102 of file mitkPropertyObserver.cpp.

References mitk::PropertyObserver::m_DeleteTag, mitk::PropertyObserver::m_ModifiedTag, OnDelete(), and OnModified().

:m_Property(property)
{
  if ( !property ) throw std::invalid_argument("NULL pointer makes no sense in PropertyEditor()"); // no NULL property allowed

  {
    itk::ReceptorMemberCommand<PropertyEditor>::Pointer command = itk::ReceptorMemberCommand<PropertyEditor>::New();
    command->SetCallbackFunction(this, &PropertyEditor::OnModified);
    m_ModifiedTag = property->AddObserver( itk::ModifiedEvent(), command );
  }
  {
    itk::ReceptorMemberCommand<PropertyEditor>::Pointer command = itk::ReceptorMemberCommand<PropertyEditor>::New();
    command->SetCallbackFunction(this, &PropertyEditor::OnDelete);
    m_DeleteTag = property->AddObserver( itk::DeleteEvent(), command );
  }
}
mitk::PropertyEditor::~PropertyEditor (  ) [virtual]

Member Function Documentation

void mitk::PropertyEditor::OnDelete ( const itk::EventObject &  e )
void mitk::PropertyEditor::OnModified ( const itk::EventObject &  e )

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines