#include <mitkGenericProperty.h>
Public Types | |
typedef GenericProperty | Self |
typedef BaseProperty | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer < const Self > | ConstPointer |
typedef T | ValueType |
Public Member Functions | |
virtual const char * | GetClassName () const |
virtual | ~GenericProperty () |
virtual void | SetValue (T _arg) |
virtual T | GetValue () const |
virtual bool | operator== (const BaseProperty &other) const |
Subclasses must implement this operator==. Operator== which is used by PropertyList to check whether a property has been changed. | |
virtual std::string | GetValueAsString () const |
virtual bool | Assignable (const BaseProperty &other) const |
virtual BaseProperty & | operator= (const BaseProperty &other) |
Static Public Member Functions | |
static Pointer | New (T _arg) |
Protected Member Functions | |
GenericProperty () | |
GenericProperty (T x) | |
Protected Attributes | |
T | m_Value |
@ brief Template class for generating properties for int, float, bool, etc.
This class template can be instantiated for all classes/internal types that fulfills these requirements:
Note: you must use the macro mitkSpecializeGenericProperty to provide specializations for concrete types (e.g. BoolProperty). Please see mitkProperties.h for examples. If you don't use the mitkSpecializeGenericProperty Macro, GetNameOfClass() returns a wrong name.
Definition at line 46 of file mitkGenericProperty.h.
typedef itk::SmartPointer<const Self> mitk::GenericProperty< T >::ConstPointer |
Reimplemented from mitk::BaseProperty.
Reimplemented in mitk::BoolProperty, mitk::IntProperty, mitk::FloatProperty, mitk::DoubleProperty, mitk::Vector3DProperty, mitk::Point3dProperty, mitk::Point4dProperty, mitk::Point3iProperty, mitk::FloatLookupTableProperty, mitk::BoolLookupTableProperty, mitk::IntLookupTableProperty, and mitk::StringLookupTableProperty.
Definition at line 50 of file mitkGenericProperty.h.
typedef itk::SmartPointer<Self> mitk::GenericProperty< T >::Pointer |
Reimplemented from mitk::BaseProperty.
Reimplemented in mitk::BoolProperty, mitk::IntProperty, mitk::FloatProperty, mitk::DoubleProperty, mitk::Vector3DProperty, mitk::Point3dProperty, mitk::Point4dProperty, mitk::Point3iProperty, mitk::FloatLookupTableProperty, mitk::BoolLookupTableProperty, mitk::IntLookupTableProperty, and mitk::StringLookupTableProperty.
Definition at line 50 of file mitkGenericProperty.h.
typedef GenericProperty mitk::GenericProperty< T >::Self |
Reimplemented from mitk::BaseProperty.
Reimplemented in mitk::BoolProperty, mitk::IntProperty, mitk::FloatProperty, mitk::DoubleProperty, mitk::Vector3DProperty, mitk::Point3dProperty, mitk::Point4dProperty, mitk::Point3iProperty, mitk::FloatLookupTableProperty, mitk::BoolLookupTableProperty, mitk::IntLookupTableProperty, and mitk::StringLookupTableProperty.
Definition at line 50 of file mitkGenericProperty.h.
typedef BaseProperty mitk::GenericProperty< T >::Superclass |
Reimplemented from mitk::BaseProperty.
Reimplemented in mitk::BoolProperty, mitk::IntProperty, mitk::FloatProperty, mitk::DoubleProperty, mitk::Vector3DProperty, mitk::Point3dProperty, mitk::Point4dProperty, mitk::Point3iProperty, mitk::FloatLookupTableProperty, mitk::BoolLookupTableProperty, mitk::IntLookupTableProperty, and mitk::StringLookupTableProperty.
Definition at line 50 of file mitkGenericProperty.h.
typedef T mitk::GenericProperty< T >::ValueType |
Definition at line 51 of file mitkGenericProperty.h.
virtual mitk::GenericProperty< T >::~GenericProperty | ( | ) | [inline, virtual] |
Definition at line 55 of file mitkGenericProperty.h.
{ }
mitk::GenericProperty< T >::GenericProperty | ( | ) | [inline, protected] |
Definition at line 119 of file mitkGenericProperty.h.
{}
mitk::GenericProperty< T >::GenericProperty | ( | T | x ) | [inline, protected] |
Definition at line 120 of file mitkGenericProperty.h.
virtual bool mitk::GenericProperty< T >::Assignable | ( | const BaseProperty & | ) | const [inline, 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 85 of file mitkGenericProperty.h.
{ 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::GenericProperty< T >::GetClassName | ( | ) | const [virtual] |
Reimplemented from mitk::BaseProperty.
Reimplemented in mitk::BoolProperty, mitk::IntProperty, mitk::FloatProperty, mitk::DoubleProperty, mitk::Vector3DProperty, mitk::Point3dProperty, mitk::Point4dProperty, mitk::Point3iProperty, mitk::FloatLookupTableProperty, mitk::BoolLookupTableProperty, mitk::IntLookupTableProperty, and mitk::StringLookupTableProperty.
virtual T mitk::GenericProperty< T >::GetValue | ( | ) | const [virtual] |
Referenced by mitk::PointSetVtkMapper3D::ApplyProperties(), mitk::EnhancedPointSetVtkMapper3D::ApplyProperties(), mitk::PointSetVtkMapper3D::CreateContour(), mitk::PointSetVtkMapper3D::CreateVTKRenderObjects(), QmitkNumberPropertyView::DisplayNumber(), QmitkNumberPropertySlider::DisplayNumber(), QmitkNumberPropertyEditor::DisplayNumber(), mitk::PointSelectorInteractor::ExecuteAction(), mitk::PointInteractor::ExecuteAction(), mitk::MoveSurfaceInteractor::ExecuteAction(), QmitkPropertyListPopup::fillPopup(), mitk::PointSetVtkMapper3D::GenerateData(), mitk::MeshVtkMapper3D::GenerateData(), mitk::ImageMapperGL2D::GenerateData(), mitk::DopplerToStrainRateFilter::GenerateData(), mitk::CylindricToCartesianFilter::GenerateData(), mitk::AngleCorrectByPointFilter::GenerateData(), mitk::CylindricToCartesianFilter::GenerateOutputInformation(), mitk::PropertyList::GetBoolProperty(), mitk::DataNode::GetBoolProperty(), mitk::PropertyList::GetFloatProperty(), mitk::DataNode::GetFloatProperty(), mitk::PropertyList::GetIntProperty(), mitk::DataNode::GetIntProperty(), mitk::DataNode::GetOpacity(), mitk::NonBlockingAlgorithm::GetParameter(), mitk::PropertyList::GetPropertyValue(), mitk::DataNode::GetPropertyValue(), mitk::PlanarCross::GetSingleLineMode(), mitk::GenericProperty< StringLookupTable >::GetValueAsString(), mitk::PlanarFigure::IsClosed(), QmitkRenderWindowMenu::OnCrossHairMenuAboutToShow(), mitk::VectorImageMapper2D::Paint(), QmitkBoolPropertyView::PropertyChanged(), mitk::StringLookupTablePropertySerializer::Serialize(), mitk::IntLookupTablePropertySerializer::Serialize(), mitk::FloatLookupTablePropertySerializer::Serialize(), mitk::BoolLookupTablePropertySerializer::Serialize(), and mitkRenderingManagerTestClass::TestPropertyList().
virtual std::string mitk::GenericProperty< T >::GetValueAsString | ( | ) | const [inline, virtual] |
Reimplemented from mitk::BaseProperty.
Definition at line 78 of file mitkGenericProperty.h.
{ std::stringstream myStr; myStr << GetValue() ; return myStr.str(); }
static Pointer mitk::GenericProperty< T >::New | ( | T | _arg ) | [inline, static] |
Reimplemented in mitk::BoolProperty, mitk::IntProperty, mitk::FloatProperty, mitk::DoubleProperty, mitk::Vector3DProperty, mitk::Point3dProperty, mitk::Point4dProperty, mitk::Point3iProperty, mitk::FloatLookupTableProperty, mitk::BoolLookupTableProperty, mitk::IntLookupTableProperty, and mitk::StringLookupTableProperty.
Definition at line 51 of file mitkGenericProperty.h.
{
virtual BaseProperty& mitk::GenericProperty< T >::operator= | ( | const BaseProperty & | rhs ) | [inline, 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 from mitk::BaseProperty.
Definition at line 98 of file mitkGenericProperty.h.
virtual bool mitk::GenericProperty< T >::operator== | ( | const BaseProperty & | property ) | const [inline, 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 62 of file mitkGenericProperty.h.
virtual void mitk::GenericProperty< T >::SetValue | ( | T | _arg ) | [virtual] |
T mitk::GenericProperty< T >::m_Value [protected] |
Definition at line 122 of file mitkGenericProperty.h.
Referenced by mitk::GenericProperty< StringLookupTable >::operator=(), and mitk::GenericProperty< StringLookupTable >::operator==().