13 #ifndef mitkNodePredicateDataType_h
14 #define mitkNodePredicateDataType_h
86 return node && node->
GetData() &&
dynamic_cast<T *
>(node->
GetData());
Central node class of the MITK data tree, associating a data object with properties and mappers.
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
Abstract base class for predicates used to filter DataNode objects in DataStorage queries.
Predicate that evaluates if the given DataNode's data object is of a specific data type.
bool CheckNode(const mitk::DataNode *node) const override
Checks if the node's data object is of the specified data type.
NodePredicateDataType(const char *datatype)
Protected constructor, use static instantiation functions instead.
mitkNewMacro1Param(NodePredicateDataType, const char *)
mitkClassMacro(NodePredicateDataType, NodePredicateBase)
std::string m_ValidDataType
~NodePredicateDataType() override
Standard Destructor.
Tests for type compatibility (dynamic_cast).
~TNodePredicateDataType() override
TNodePredicateDataType()
Protected constructor, use static instantiation functions instead.
mitkClassMacro(TNodePredicateDataType, NodePredicateBase)
bool CheckNode(const mitk::DataNode *node) const override
Checks if the node's data object is of the specified type (using dynamic_cast).
Find image slices visible on a given plane.