Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitk::NodePredicateProperty Class Reference

Predicate that evaluates if the 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. If a renderer is specified in the third parameter the renderer-specific property will be checked. If this parameter is nullptr or not specified, then the non-renderer-specific property will be checked. More...

#include <mitkNodePredicateProperty.h>

Inheritance diagram for mitk::NodePredicateProperty:
Collaboration diagram for mitk::NodePredicateProperty:

Public Types

typedef NodePredicateProperty 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
 
 ~NodePredicateProperty () 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 Pointer New (const char *_arga, mitk::BaseProperty *_argb, const mitk::BaseRenderer *_argc)
 
- Static Public Member Functions inherited from mitk::NodePredicateBase
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

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

Protected Attributes

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

Detailed Description

Predicate that evaluates if the 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. If a renderer is specified in the third parameter the renderer-specific property will be checked. If this parameter is nullptr or not specified, then the non-renderer-specific property will be checked.

Definition at line 31 of file mitkNodePredicateProperty.h.

Member Typedef Documentation

◆ ConstPointer

◆ Pointer

◆ Self

◆ Superclass

Constructor & Destructor Documentation

◆ ~NodePredicateProperty()

mitk::NodePredicateProperty::~NodePredicateProperty ( )
override

Standard Destructor.

◆ NodePredicateProperty()

mitk::NodePredicateProperty::NodePredicateProperty ( const char *  propertyName,
mitk::BaseProperty p = nullptr,
const mitk::BaseRenderer renderer = nullptr 
)
protected

Constructor to check for a named property.

Member Function Documentation

◆ CheckNode()

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

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

Implements mitk::NodePredicateBase.

◆ GetClassHierarchy()

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

Reimplemented from mitk::NodePredicateBase.

Definition at line 34 of file mitkNodePredicateProperty.h.

◆ GetClassName()

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

Reimplemented from mitk::NodePredicateBase.

◆ GetStaticNameOfClass()

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

Definition at line 34 of file mitkNodePredicateProperty.h.

◆ New() [1/3]

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

Definition at line 35 of file mitkNodePredicateProperty.h.

◆ New() [2/3]

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

Definition at line 36 of file mitkNodePredicateProperty.h.

◆ New() [3/3]

static Pointer mitk::NodePredicateProperty::New ( const char *  _arga,
mitk::BaseProperty _argb,
const mitk::BaseRenderer _argc 
)
inlinestatic

Definition at line 37 of file mitkNodePredicateProperty.h.

Member Data Documentation

◆ m_Renderer

const mitk::BaseRenderer* mitk::NodePredicateProperty::m_Renderer
protected

Definition at line 57 of file mitkNodePredicateProperty.h.

◆ m_ValidProperty

mitk::BaseProperty::Pointer mitk::NodePredicateProperty::m_ValidProperty
protected

Definition at line 54 of file mitkNodePredicateProperty.h.

◆ m_ValidPropertyName

std::string mitk::NodePredicateProperty::m_ValidPropertyName
protected

Definition at line 56 of file mitkNodePredicateProperty.h.


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