Abstract base class for properties. More...
#include <mitkBaseProperty.h>
Public Types | |
typedef BaseProperty | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer < const Self > | ConstPointer |
Public Member Functions | |
virtual const char * | GetClassName () const |
virtual bool | operator== (const BaseProperty &property) const =0 |
Subclasses must implement this operator==. Operator== which is used by PropertyList to check whether a property has been changed. | |
virtual BaseProperty & | operator= (const BaseProperty &property) |
virtual std::string | GetValueAsString () const |
virtual bool | Assignable (const BaseProperty &) const |
Protected Member Functions | |
BaseProperty () | |
virtual | ~BaseProperty () |
Static Protected Attributes | |
static std::string | VALUE |
Friends | |
class | PropertyList |
Abstract base class for properties.
Base class for properties. Properties are arbitrary additional information (to define a new type of information you have to define a subclass of BaseProperty) that can be added to a PropertyList. Concrete subclasses of BaseProperty should define Set-/Get-methods to assess the property value, which should be stored by value (not by reference). Subclasses must implement an operator==(const BaseProperty& property), which is used by PropertyList to check whether a property has been changed.
Definition at line 40 of file mitkBaseProperty.h.
typedef itk::SmartPointer<const Self> mitk::BaseProperty::ConstPointer |
Reimplemented in mitk::AnnotationProperty, mitk::ClippingProperty, mitk::ColorProperty, mitk::EnumerationProperty, mitk::GenericProperty< T >, mitk::GroupTagProperty, mitk::LevelWindowProperty, mitk::ModalityProperty, mitk::PlaneOrientationProperty, mitk::BoolProperty, mitk::IntProperty, mitk::FloatProperty, mitk::DoubleProperty, mitk::Vector3DProperty, mitk::Point3dProperty, mitk::Point4dProperty, mitk::Point3iProperty, mitk::FloatLookupTableProperty, mitk::BoolLookupTableProperty, mitk::IntLookupTableProperty, mitk::StringLookupTableProperty, mitk::ResliceMethodProperty, mitk::ShaderProperty, mitk::SmartPointerProperty, mitk::StringProperty, mitk::TransferFunctionProperty, mitk::VtkInterpolationProperty, mitk::VtkRepresentationProperty, mitk::VtkResliceInterpolationProperty, mitk::VtkScalarModeProperty, mitk::VtkVolumeRenderingProperty, mitk::WeakPointerProperty, mitk::LookupTableProperty, mitk::OdfNormalizationMethodProperty, mitk::OdfScaleByProperty, mitk::GridRepresentationProperty, mitk::GridVolumeMapperProperty, mitk::OrganTypeProperty, mitk::PlanarFigureControlPointStyleProperty, mitk::GenericProperty< Point4D >, mitk::GenericProperty< double >, mitk::GenericProperty< IntLookupTable >, mitk::GenericProperty< float >, mitk::GenericProperty< Point3I >, mitk::GenericProperty< int >, mitk::GenericProperty< FloatLookupTable >, mitk::GenericProperty< Vector3D >, mitk::GenericProperty< BoolLookupTable >, mitk::GenericProperty< Point3D >, mitk::GenericProperty< bool >, and mitk::GenericProperty< StringLookupTable >.
Definition at line 44 of file mitkBaseProperty.h.
typedef itk::SmartPointer<Self> mitk::BaseProperty::Pointer |
Reimplemented in mitk::AnnotationProperty, mitk::ClippingProperty, mitk::ColorProperty, mitk::EnumerationProperty, mitk::GenericProperty< T >, mitk::GroupTagProperty, mitk::LevelWindowProperty, mitk::ModalityProperty, mitk::PlaneOrientationProperty, mitk::BoolProperty, mitk::IntProperty, mitk::FloatProperty, mitk::DoubleProperty, mitk::Vector3DProperty, mitk::Point3dProperty, mitk::Point4dProperty, mitk::Point3iProperty, mitk::FloatLookupTableProperty, mitk::BoolLookupTableProperty, mitk::IntLookupTableProperty, mitk::StringLookupTableProperty, mitk::ResliceMethodProperty, mitk::ShaderProperty, mitk::SmartPointerProperty, mitk::StringProperty, mitk::TransferFunctionProperty, mitk::VtkInterpolationProperty, mitk::VtkRepresentationProperty, mitk::VtkResliceInterpolationProperty, mitk::VtkScalarModeProperty, mitk::VtkVolumeRenderingProperty, mitk::WeakPointerProperty, mitk::LookupTableProperty, mitk::OdfNormalizationMethodProperty, mitk::OdfScaleByProperty, mitk::GridRepresentationProperty, mitk::GridVolumeMapperProperty, mitk::OrganTypeProperty, mitk::PlanarFigureControlPointStyleProperty, mitk::GenericProperty< Point4D >, mitk::GenericProperty< double >, mitk::GenericProperty< IntLookupTable >, mitk::GenericProperty< float >, mitk::GenericProperty< Point3I >, mitk::GenericProperty< int >, mitk::GenericProperty< FloatLookupTable >, mitk::GenericProperty< Vector3D >, mitk::GenericProperty< BoolLookupTable >, mitk::GenericProperty< Point3D >, mitk::GenericProperty< bool >, and mitk::GenericProperty< StringLookupTable >.
Definition at line 44 of file mitkBaseProperty.h.
typedef BaseProperty mitk::BaseProperty::Self |
Reimplemented in mitk::AnnotationProperty, mitk::ClippingProperty, mitk::ColorProperty, mitk::EnumerationProperty, mitk::GenericProperty< T >, mitk::GroupTagProperty, mitk::LevelWindowProperty, mitk::ModalityProperty, mitk::PlaneOrientationProperty, mitk::BoolProperty, mitk::IntProperty, mitk::FloatProperty, mitk::DoubleProperty, mitk::Vector3DProperty, mitk::Point3dProperty, mitk::Point4dProperty, mitk::Point3iProperty, mitk::FloatLookupTableProperty, mitk::BoolLookupTableProperty, mitk::IntLookupTableProperty, mitk::StringLookupTableProperty, mitk::ResliceMethodProperty, mitk::ShaderProperty, mitk::SmartPointerProperty, mitk::StringProperty, mitk::TransferFunctionProperty, mitk::VtkInterpolationProperty, mitk::VtkRepresentationProperty, mitk::VtkResliceInterpolationProperty, mitk::VtkScalarModeProperty, mitk::VtkVolumeRenderingProperty, mitk::WeakPointerProperty, mitk::LookupTableProperty, mitk::OdfNormalizationMethodProperty, mitk::OdfScaleByProperty, mitk::GridRepresentationProperty, mitk::GridVolumeMapperProperty, mitk::OrganTypeProperty, mitk::PlanarFigureControlPointStyleProperty, mitk::GenericProperty< Point4D >, mitk::GenericProperty< double >, mitk::GenericProperty< IntLookupTable >, mitk::GenericProperty< float >, mitk::GenericProperty< Point3I >, mitk::GenericProperty< int >, mitk::GenericProperty< FloatLookupTable >, mitk::GenericProperty< Vector3D >, mitk::GenericProperty< BoolLookupTable >, mitk::GenericProperty< Point3D >, mitk::GenericProperty< bool >, and mitk::GenericProperty< StringLookupTable >.
Definition at line 44 of file mitkBaseProperty.h.
typedef itk::Object mitk::BaseProperty::Superclass |
Reimplemented in mitk::AnnotationProperty, mitk::ClippingProperty, mitk::ColorProperty, mitk::EnumerationProperty, mitk::GenericProperty< T >, mitk::GroupTagProperty, mitk::LevelWindowProperty, mitk::ModalityProperty, mitk::PlaneOrientationProperty, mitk::BoolProperty, mitk::IntProperty, mitk::FloatProperty, mitk::DoubleProperty, mitk::Vector3DProperty, mitk::Point3dProperty, mitk::Point4dProperty, mitk::Point3iProperty, mitk::FloatLookupTableProperty, mitk::BoolLookupTableProperty, mitk::IntLookupTableProperty, mitk::StringLookupTableProperty, mitk::ResliceMethodProperty, mitk::ShaderProperty, mitk::SmartPointerProperty, mitk::StringProperty, mitk::TransferFunctionProperty, mitk::VtkInterpolationProperty, mitk::VtkRepresentationProperty, mitk::VtkResliceInterpolationProperty, mitk::VtkScalarModeProperty, mitk::VtkVolumeRenderingProperty, mitk::WeakPointerProperty, mitk::LookupTableProperty, mitk::OdfNormalizationMethodProperty, mitk::OdfScaleByProperty, mitk::GridRepresentationProperty, mitk::GridVolumeMapperProperty, mitk::OrganTypeProperty, mitk::PlanarFigureControlPointStyleProperty, mitk::GenericProperty< Point4D >, mitk::GenericProperty< double >, mitk::GenericProperty< IntLookupTable >, mitk::GenericProperty< float >, mitk::GenericProperty< Point3I >, mitk::GenericProperty< int >, mitk::GenericProperty< FloatLookupTable >, mitk::GenericProperty< Vector3D >, mitk::GenericProperty< BoolLookupTable >, mitk::GenericProperty< Point3D >, mitk::GenericProperty< bool >, and mitk::GenericProperty< StringLookupTable >.
Definition at line 44 of file mitkBaseProperty.h.
mitk::BaseProperty::BaseProperty | ( | ) | [protected] |
Definition at line 22 of file mitkBaseProperty.cpp.
{ }
mitk::BaseProperty::~BaseProperty | ( | ) | [protected, virtual] |
Definition at line 26 of file mitkBaseProperty.cpp.
{ }
bool mitk::BaseProperty::Assignable | ( | const BaseProperty & | ) | 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 in mitk::ColorProperty, mitk::GenericProperty< T >, mitk::GroupTagProperty, mitk::SmartPointerProperty, mitk::StringProperty, mitk::GenericProperty< Point4D >, mitk::GenericProperty< double >, mitk::GenericProperty< IntLookupTable >, mitk::GenericProperty< float >, mitk::GenericProperty< Point3I >, mitk::GenericProperty< int >, mitk::GenericProperty< FloatLookupTable >, mitk::GenericProperty< Vector3D >, mitk::GenericProperty< BoolLookupTable >, mitk::GenericProperty< Point3D >, mitk::GenericProperty< bool >, and mitk::GenericProperty< StringLookupTable >.
Definition at line 40 of file mitkBaseProperty.cpp.
{ return false; }
virtual const char* mitk::BaseProperty::GetClassName | ( | ) | const [virtual] |
Reimplemented in mitk::AnnotationProperty, mitk::ClippingProperty, mitk::ColorProperty, mitk::EnumerationProperty, mitk::GenericProperty< T >, mitk::GroupTagProperty, mitk::LevelWindowProperty, mitk::ModalityProperty, mitk::PlaneOrientationProperty, mitk::BoolProperty, mitk::IntProperty, mitk::FloatProperty, mitk::DoubleProperty, mitk::Vector3DProperty, mitk::Point3dProperty, mitk::Point4dProperty, mitk::Point3iProperty, mitk::FloatLookupTableProperty, mitk::BoolLookupTableProperty, mitk::IntLookupTableProperty, mitk::StringLookupTableProperty, mitk::ResliceMethodProperty, mitk::ShaderProperty, mitk::SmartPointerProperty, mitk::StringProperty, mitk::TransferFunctionProperty, mitk::VtkInterpolationProperty, mitk::VtkRepresentationProperty, mitk::VtkResliceInterpolationProperty, mitk::VtkScalarModeProperty, mitk::VtkVolumeRenderingProperty, mitk::WeakPointerProperty, mitk::LookupTableProperty, mitk::OdfNormalizationMethodProperty, mitk::OdfScaleByProperty, mitk::GridRepresentationProperty, mitk::GridVolumeMapperProperty, mitk::OrganTypeProperty, mitk::PlanarFigureControlPointStyleProperty, mitk::GenericProperty< Point4D >, mitk::GenericProperty< double >, mitk::GenericProperty< IntLookupTable >, mitk::GenericProperty< float >, mitk::GenericProperty< Point3I >, mitk::GenericProperty< int >, mitk::GenericProperty< FloatLookupTable >, mitk::GenericProperty< Vector3D >, mitk::GenericProperty< BoolLookupTable >, mitk::GenericProperty< Point3D >, mitk::GenericProperty< bool >, and mitk::GenericProperty< StringLookupTable >.
std::string mitk::BaseProperty::GetValueAsString | ( | ) | const [virtual] |
Reimplemented in mitk::AnnotationProperty, mitk::ClippingProperty, mitk::ColorProperty, mitk::EnumerationProperty, mitk::GenericProperty< T >, mitk::LevelWindowProperty, mitk::SmartPointerProperty, mitk::StringProperty, mitk::TransferFunctionProperty, mitk::GenericProperty< Point4D >, mitk::GenericProperty< double >, mitk::GenericProperty< IntLookupTable >, mitk::GenericProperty< float >, mitk::GenericProperty< Point3I >, mitk::GenericProperty< int >, mitk::GenericProperty< FloatLookupTable >, mitk::GenericProperty< Vector3D >, mitk::GenericProperty< BoolLookupTable >, mitk::GenericProperty< Point3D >, mitk::GenericProperty< bool >, and mitk::GenericProperty< StringLookupTable >.
Definition at line 30 of file mitkBaseProperty.cpp.
Referenced by QmitkPropertiesTableModel::data(), QmitkDataStorageComboBox::InsertNode(), and QmitkBasePropertyView::PropertyChanged().
{ return std::string("n/a"); }
mitk::BaseProperty & mitk::BaseProperty::operator= | ( | const BaseProperty & | rhs ) | [virtual] |
To be implemented more meaningful by subclasses. This version just accepts the assignment of BaseProperty objects to others, but the assignment has NO MEANING, values are not changed at all!
Reimplemented in mitk::ColorProperty, mitk::GenericProperty< T >, mitk::SmartPointerProperty, mitk::StringProperty, mitk::GenericProperty< Point4D >, mitk::GenericProperty< double >, mitk::GenericProperty< IntLookupTable >, mitk::GenericProperty< float >, mitk::GenericProperty< Point3I >, mitk::GenericProperty< int >, mitk::GenericProperty< FloatLookupTable >, mitk::GenericProperty< Vector3D >, mitk::GenericProperty< BoolLookupTable >, mitk::GenericProperty< Point3D >, mitk::GenericProperty< bool >, and mitk::GenericProperty< StringLookupTable >.
Definition at line 49 of file mitkBaseProperty.cpp.
{ if (this == &rhs) return *this; // no self assignment // place meaningful copy code here (nothing possible with BaseProeprties) return *this; }
virtual bool mitk::BaseProperty::operator== | ( | const BaseProperty & | property ) | const [pure virtual] |
Subclasses must implement this operator==. Operator== which is used by PropertyList to check whether a property has been changed.
Implemented in mitk::AnnotationProperty, mitk::ClippingProperty, mitk::ColorProperty, mitk::EnumerationProperty, mitk::GenericProperty< T >, mitk::GroupTagProperty, mitk::LevelWindowProperty, mitk::SmartPointerProperty, mitk::StringProperty, mitk::TransferFunctionProperty, mitk::WeakPointerProperty, mitk::LookupTableProperty, mitk::GenericProperty< Point4D >, mitk::GenericProperty< double >, mitk::GenericProperty< IntLookupTable >, mitk::GenericProperty< float >, mitk::GenericProperty< Point3I >, mitk::GenericProperty< int >, mitk::GenericProperty< FloatLookupTable >, mitk::GenericProperty< Vector3D >, mitk::GenericProperty< BoolLookupTable >, mitk::GenericProperty< Point3D >, mitk::GenericProperty< bool >, and mitk::GenericProperty< StringLookupTable >.
friend class PropertyList [friend] |
Definition at line 62 of file mitkBaseProperty.h.
std::string mitk::BaseProperty::VALUE [static, protected] |
Definition at line 64 of file mitkBaseProperty.h.