Medical Imaging Interaction Toolkit  2018.4.99-6a3ea89d
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.

Definition at line 22 of file mitkNodePredicateData.cpp.

◆ NodePredicateData()

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

Protected constructor, use static instantiation functions instead.

Definition at line 17 of file mitkNodePredicateData.cpp.

References m_DataObject.

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.

Definition at line 26 of file mitkNodePredicateData.cpp.

References mitk::DataNode::GetData(), and m_DataObject.

◆ 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

Member Data Documentation

◆ m_DataObject

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

Definition at line 53 of file mitkNodePredicateData.h.

Referenced by CheckNode(), and NodePredicateData().


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