|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Predicate that evaluates if the given DataNode's data object is of a specific data type. More...
#include <mitkNodePredicateDataType.h>


Public Member Functions | |
| mitkClassMacro (NodePredicateDataType, NodePredicateBase) | |
| mitkNewMacro1Param (NodePredicateDataType, const char *) | |
| ~NodePredicateDataType () override | |
| Standard Destructor. More... | |
| bool | CheckNode (const mitk::DataNode *node) const override |
| Checks if the node's data object is of the specified data type. More... | |
Public Member Functions inherited from mitk::NodePredicateBase | |
| mitkClassMacroItkParent (NodePredicateBase, itk::Object) | |
| ~NodePredicateBase () override | |
| Virtual destructor. More... | |
Protected Member Functions | |
| NodePredicateDataType (const char *datatype) | |
| Protected constructor, use static instantiation functions instead. More... | |
Protected Attributes | |
| std::string | m_ValidDataType |
Predicate that evaluates if the given DataNode's data object is of a specific data type.
The data type must be specified in the constructor as a string. The string must equal the result value of the requested data type's GetNameOfClass() method. This predicate performs exact type matching. For type-compatible matching (including derived types), use TNodePredicateDataType.
Definition at line 31 of file mitkNodePredicateDataType.h.
|
override |
Standard Destructor.
|
protected |
Protected constructor, use static instantiation functions instead.
| datatype | The class name string to match (must not be nullptr). |
|
overridevirtual |
Checks if the node's data object is of the specified data type.
Compares GetNameOfClass() of the data object against the stored type string. Returns false if the node has no data object.
| node | The DataNode to check. |
Implements mitk::NodePredicateBase.
| mitk::NodePredicateDataType::mitkClassMacro | ( | NodePredicateDataType | , |
| NodePredicateBase | |||
| ) |
| mitk::NodePredicateDataType::mitkNewMacro1Param | ( | NodePredicateDataType | , |
| const char * | |||
| ) |
|
protected |
Definition at line 57 of file mitkNodePredicateDataType.h.