Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitk::TNodePredicateDataType< T > Class Template Reference

Tests for type compatibility (dynamic_cast). More...

#include <mitkNodePredicateDataType.h>

Inheritance diagram for mitk::TNodePredicateDataType< T >:
Collaboration diagram for mitk::TNodePredicateDataType< T >:

Public Types

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

Static Public Member Functions

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

Protected Member Functions

 TNodePredicateDataType ()
 Protected constructor, use static instantiation functions instead. More...
 

Detailed Description

template<class T>
class mitk::TNodePredicateDataType< T >

Tests for type compatibility (dynamic_cast).

In contrast to NodePredicateDataType this class also accepts derived types. E.g. if you query for type BaseData, you will also get Image and Surface objects.

The desired type is given as a template parameter, the constructor takes no other parameters.

Definition at line 60 of file mitkNodePredicateDataType.h.

Member Typedef Documentation

◆ ConstPointer

template<class T >
typedef itk::SmartPointer<const Self> mitk::TNodePredicateDataType< T >::ConstPointer

Definition at line 63 of file mitkNodePredicateDataType.h.

◆ Pointer

template<class T >
typedef itk::SmartPointer<Self> mitk::TNodePredicateDataType< T >::Pointer

Definition at line 63 of file mitkNodePredicateDataType.h.

◆ Self

template<class T >
typedef TNodePredicateDataType mitk::TNodePredicateDataType< T >::Self

Definition at line 63 of file mitkNodePredicateDataType.h.

◆ Superclass

template<class T >
typedef NodePredicateBase mitk::TNodePredicateDataType< T >::Superclass

Definition at line 63 of file mitkNodePredicateDataType.h.

Constructor & Destructor Documentation

◆ ~TNodePredicateDataType()

template<class T >
mitk::TNodePredicateDataType< T >::~TNodePredicateDataType ( )
inlineoverride

Definition at line 66 of file mitkNodePredicateDataType.h.

◆ TNodePredicateDataType()

template<class T >
mitk::TNodePredicateDataType< T >::TNodePredicateDataType ( )
inlineprotected

Protected constructor, use static instantiation functions instead.

Definition at line 77 of file mitkNodePredicateDataType.h.

Member Function Documentation

◆ CheckNode()

template<class T >
bool mitk::TNodePredicateDataType< T >::CheckNode ( const mitk::DataNode node) const
inlineoverridevirtual

Checks, if the nodes data object is of a specific data type (casts)

Implements mitk::NodePredicateBase.

Definition at line 69 of file mitkNodePredicateDataType.h.

References mitk::DataNode::GetData().

◆ GetClassHierarchy()

template<class T >
virtual std::vector<std::string> mitk::TNodePredicateDataType< T >::GetClassHierarchy ( ) const
inlineoverridevirtual

Reimplemented from mitk::NodePredicateBase.

Definition at line 63 of file mitkNodePredicateDataType.h.

◆ GetClassName()

template<class T >
virtual const char* mitk::TNodePredicateDataType< T >::GetClassName ( ) const
virtual

Reimplemented from mitk::NodePredicateBase.

◆ GetStaticNameOfClass()

template<class T >
static const char* mitk::TNodePredicateDataType< T >::GetStaticNameOfClass ( )
inlinestatic

Definition at line 63 of file mitkNodePredicateDataType.h.

◆ New()

template<class T >
static Pointer mitk::TNodePredicateDataType< T >::New ( )
static

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