Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::NodePredicateDataProperty Class Reference

Predicate that evaluates if the data of a given DataNode has a specific property. If the second parameter is NULL, it will only be checked whether there is a property with the specified name for the data instance of the node. More...

#include <mitkNodePredicateDataProperty.h>

Inheritance diagram for mitk::NodePredicateDataProperty:
Collaboration diagram for mitk::NodePredicateDataProperty:

Public Types

typedef NodePredicateDataProperty Self
 
typedef NodePredicateBase Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
- Public Types inherited from mitk::NodePredicateBase
typedef NodePredicateBase Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Public Member Functions

virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetClassName () const
 
virtual ~NodePredicateDataProperty ()
 Standard Destructor. More...
 
virtual bool CheckNode (const mitk::DataNode *node) const override
 Checks, if the nodes contains a property that is equal to m_ValidProperty. More...
 
- Public Member Functions inherited from mitk::NodePredicateBase
virtual ~NodePredicateBase ()
 Standard Destructor. More...
 

Static Public Member Functions

static const char * GetStaticNameOfClass ()
 
static Pointer New (const char *_arg)
 
static Pointer New (const char *_arga, mitk::BaseProperty *_argb)
 
- Static Public Member Functions inherited from mitk::NodePredicateBase
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

 NodePredicateDataProperty (const char *propertyName, mitk::BaseProperty *p=nullptr)
 Constructor to check for a named property. More...
 

Protected Attributes

mitk::BaseProperty::Pointer m_ValidProperty
 
std::string m_ValidPropertyName
 

Detailed Description

Predicate that evaluates if the data of a given DataNode has a specific property. If the second parameter is NULL, it will only be checked whether there is a property with the specified name for the data instance of the node.

Definition at line 28 of file mitkNodePredicateDataProperty.h.

Member Typedef Documentation

Constructor & Destructor Documentation

mitk::NodePredicateDataProperty::~NodePredicateDataProperty ( )
virtual

Standard Destructor.

Definition at line 28 of file mitkNodePredicateDataProperty.cpp.

mitk::NodePredicateDataProperty::NodePredicateDataProperty ( const char *  propertyName,
mitk::BaseProperty p = nullptr 
)
protected

Constructor to check for a named property.

Definition at line 21 of file mitkNodePredicateDataProperty.cpp.

References m_ValidPropertyName, and mitkThrow.

Member Function Documentation

bool mitk::NodePredicateDataProperty::CheckNode ( const mitk::DataNode node) const
overridevirtual

Checks, if the nodes contains a property that is equal to m_ValidProperty.

Implements mitk::NodePredicateBase.

Definition at line 32 of file mitkNodePredicateDataProperty.cpp.

References mitk::DataNode::GetData(), mitk::BaseData::GetProperty(), and mitkThrow.

virtual std::vector<std::string> mitk::NodePredicateDataProperty::GetClassHierarchy ( ) const
inlineoverridevirtual

Reimplemented from mitk::NodePredicateBase.

Definition at line 31 of file mitkNodePredicateDataProperty.h.

virtual const char* mitk::NodePredicateDataProperty::GetClassName ( ) const
virtual

Reimplemented from mitk::NodePredicateBase.

static const char* mitk::NodePredicateDataProperty::GetStaticNameOfClass ( )
inlinestatic

Definition at line 31 of file mitkNodePredicateDataProperty.h.

static Pointer mitk::NodePredicateDataProperty::New ( const char *  _arg)
inlinestatic

Definition at line 32 of file mitkNodePredicateDataProperty.h.

static Pointer mitk::NodePredicateDataProperty::New ( const char *  _arga,
mitk::BaseProperty _argb 
)
inlinestatic

Definition at line 33 of file mitkNodePredicateDataProperty.h.

Member Data Documentation

mitk::BaseProperty::Pointer mitk::NodePredicateDataProperty::m_ValidProperty
protected

Definition at line 50 of file mitkNodePredicateDataProperty.h.

std::string mitk::NodePredicateDataProperty::m_ValidPropertyName
protected

Definition at line 52 of file mitkNodePredicateDataProperty.h.

Referenced by NodePredicateDataProperty().


The documentation for this class was generated from the following files: