Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions

mitk::GroupTagProperty Class Reference
[Data Management Classes]

Property class that has no value. More...

#include <mitkGroupTagProperty.h>

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

List of all members.

Public Types

typedef GroupTagProperty Self
typedef BaseProperty Superclass
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer

Public Member Functions

virtual const char * GetClassName () const
virtual ~GroupTagProperty ()
virtual bool operator== (const BaseProperty &property) const
 Subclasses must implement this operator==. Operator== which is used by PropertyList to check whether a property has been changed.
virtual bool Assignable (const BaseProperty &other) const

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 GroupTagProperty ()

Detailed Description

Property class that has no value.

The GroupTag property is used to tag a datatree node to show, that it is member of a group of datatree nodes. This can be used to build groups of datatreenodes without the need to contain them in a specific hiearchic order in the datatree

Definition at line 34 of file mitkGroupTagProperty.h.


Member Typedef Documentation

typedef itk::SmartPointer<const Self> mitk::GroupTagProperty::ConstPointer

Reimplemented from mitk::BaseProperty.

Definition at line 37 of file mitkGroupTagProperty.h.

typedef itk::SmartPointer<Self> mitk::GroupTagProperty::Pointer

Reimplemented from mitk::BaseProperty.

Definition at line 37 of file mitkGroupTagProperty.h.

Reimplemented from mitk::BaseProperty.

Definition at line 37 of file mitkGroupTagProperty.h.

Reimplemented from mitk::BaseProperty.

Definition at line 37 of file mitkGroupTagProperty.h.


Constructor & Destructor Documentation

mitk::GroupTagProperty::~GroupTagProperty (  ) [virtual]

Definition at line 27 of file mitkGroupTagProperty.cpp.

{
}
mitk::GroupTagProperty::GroupTagProperty (  ) [protected]

Definition at line 22 of file mitkGroupTagProperty.cpp.


Member Function Documentation

bool mitk::GroupTagProperty::Assignable ( const BaseProperty other ) const [virtual]

Should be implemented by subclasses to indicate whether they can accept the parameter as the right-hand-side argument of an assignment. This test will most probably include some dynamic_cast.

Reimplemented from mitk::BaseProperty.

Definition at line 37 of file mitkGroupTagProperty.cpp.

{
  try
  {
    dynamic_cast<const Self&>(other); // dear compiler, please don't optimize this away!
    return true; 
  }
  catch (std::bad_cast)
  {
  }
  return false;
}
virtual const char* mitk::GroupTagProperty::GetClassName (  ) const [virtual]

Reimplemented from mitk::BaseProperty.

static Pointer mitk::GroupTagProperty::New (  ) [static]
bool mitk::GroupTagProperty::operator== ( const BaseProperty property ) const [virtual]

Subclasses must implement this operator==. Operator== which is used by PropertyList to check whether a property has been changed.

Implements mitk::BaseProperty.

Definition at line 50 of file mitkGroupTagProperty.cpp.

{
    const Self *other = dynamic_cast<const Self*>(&property);

    return (other!=NULL); // if other property is also a GroupTagProperty, then it is equal to us, because tags have no value themselves
}

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