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

Predicate that evaluates if the given DataNodes data object pointer equals a given pointer. More...

#include <mitkNodePredicateData.h>

Inheritance diagram for mitk::NodePredicateData:
Collaboration diagram for mitk::NodePredicateData:

Public Types

typedef NodePredicateData 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
 
 ~NodePredicateData () override
 Standard Destructor. More...
 
bool CheckNode (const mitk::DataNode *node) const override
 Checks, if the nodes data object is of a specific data type. More...
 
- Public Member Functions inherited from mitk::NodePredicateBase
 ~NodePredicateBase () override
 Standard Destructor. More...
 

Static Public Member Functions

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

Protected Member Functions

 NodePredicateData (mitk::BaseData *d)
 Protected constructor, use static instantiation functions instead. More...
 

Protected Attributes

mitk::BaseDatam_DataObject
 

Detailed Description

Predicate that evaluates if the given DataNodes data object pointer equals a given pointer.

NodePredicateData(nullptr) returns true if a DataNode does not have a data object (e.g. ->GetData() returns nullptr). This could return an unexpected number of nodes (e.g. the root node of the tree)

Warning
NodePredicateData holds a weak pointer to a BaseData! NodePredicateData p(mitk::BaseData::New()); will

Definition at line 34 of file mitkNodePredicateData.h.

Member Typedef Documentation

◆ ConstPointer

◆ Pointer

◆ Self

◆ Superclass

Constructor & Destructor Documentation

◆ ~NodePredicateData()

mitk::NodePredicateData::~NodePredicateData ( )
override

Standard Destructor.

◆ NodePredicateData()

mitk::NodePredicateData::NodePredicateData ( mitk::BaseData d)
protected

Protected constructor, use static instantiation functions instead.

Member Function Documentation

◆ CheckNode()

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

Checks, if the nodes data object is of a specific data type.

Implements mitk::NodePredicateBase.

◆ GetClassHierarchy()

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

Reimplemented from mitk::NodePredicateBase.

Definition at line 37 of file mitkNodePredicateData.h.

◆ GetClassName()

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

Reimplemented from mitk::NodePredicateBase.

◆ GetStaticNameOfClass()

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

Definition at line 37 of file mitkNodePredicateData.h.

◆ New()

static Pointer mitk::NodePredicateData::New ( mitk::BaseData _arg)
inlinestatic

Definition at line 38 of file mitkNodePredicateData.h.

Member Data Documentation

◆ m_DataObject

mitk::BaseData* mitk::NodePredicateData::m_DataObject
protected

Definition at line 53 of file mitkNodePredicateData.h.


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