Medical Imaging Interaction Toolkit  2016.11.0
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
 
virtual ~TNodePredicateDataType ()
 
virtual 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
virtual ~NodePredicateBase ()
 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.

Examples:
Step4.cpp, and Step5.cpp.

Definition at line 64 of file mitkNodePredicateDataType.h.

Member Typedef Documentation

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

Definition at line 67 of file mitkNodePredicateDataType.h.

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

Definition at line 67 of file mitkNodePredicateDataType.h.

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

Definition at line 67 of file mitkNodePredicateDataType.h.

Definition at line 67 of file mitkNodePredicateDataType.h.

Constructor & Destructor Documentation

template<class T>
virtual mitk::TNodePredicateDataType< T >::~TNodePredicateDataType ( )
inlinevirtual

Definition at line 70 of file mitkNodePredicateDataType.h.

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

Protected constructor, use static instantiation functions instead.

Definition at line 81 of file mitkNodePredicateDataType.h.

Member Function Documentation

template<class T>
virtual 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 73 of file mitkNodePredicateDataType.h.

References mitk::DataNode::GetData().

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

Reimplemented from mitk::NodePredicateBase.

Definition at line 67 of file mitkNodePredicateDataType.h.

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

Reimplemented from mitk::NodePredicateBase.

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

Definition at line 67 of file mitkNodePredicateDataType.h.


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