Medical Imaging Interaction Toolkit  2018.4.99-6a3ea89d
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 nullptr, 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
 
 ~NodePredicateDataProperty () override
 Standard Destructor. More...
 
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
 ~NodePredicateBase () override
 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 nullptr, it will only be checked whether there is a property with the specified name for the data instance of the node.

Definition at line 24 of file mitkNodePredicateDataProperty.h.

Member Typedef Documentation

◆ ConstPointer

◆ Pointer

◆ Self

◆ Superclass

Constructor & Destructor Documentation

◆ ~NodePredicateDataProperty()

mitk::NodePredicateDataProperty::~NodePredicateDataProperty ( )
override

Standard Destructor.

Definition at line 24 of file mitkNodePredicateDataProperty.cpp.

◆ NodePredicateDataProperty()

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

Constructor to check for a named property.

Definition at line 17 of file mitkNodePredicateDataProperty.cpp.

References m_ValidPropertyName, and mitkThrow.

Member Function Documentation

◆ CheckNode()

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 28 of file mitkNodePredicateDataProperty.cpp.

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

◆ GetClassHierarchy()

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

Reimplemented from mitk::NodePredicateBase.

Definition at line 27 of file mitkNodePredicateDataProperty.h.

◆ GetClassName()

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

Reimplemented from mitk::NodePredicateBase.

◆ GetStaticNameOfClass()

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

Definition at line 27 of file mitkNodePredicateDataProperty.h.

◆ New() [1/2]

◆ New() [2/2]

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

Definition at line 29 of file mitkNodePredicateDataProperty.h.

Member Data Documentation

◆ m_ValidProperty

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

Definition at line 45 of file mitkNodePredicateDataProperty.h.

Referenced by CheckNode().

◆ m_ValidPropertyName

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

Definition at line 47 of file mitkNodePredicateDataProperty.h.

Referenced by CheckNode(), and NodePredicateDataProperty().


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