13 #ifndef mitkNodePredicateDataType_h
14 #define mitkNodePredicateDataType_h
71 return node && node->
GetData() &&
dynamic_cast<T *
>(node->
GetData());
Class for nodes of the DataTree.
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Predicate that evaluates if the given DataNodes data object is of a specific data type.
bool CheckNode(const mitk::DataNode *node) const override
Checks, if the nodes data object is of a specific 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 nodes data object is of a specific data type (casts)
Find image slices visible on a given plane.