24 if (datatype ==
nullptr)
25 throw std::invalid_argument(
"NodePredicateDataType: invalid datatype");
37 throw std::invalid_argument(
"NodePredicateDataType: invalid node");
44 return (m_ValidDataType.compare(data->GetNameOfClass()) == 0);
NodePredicateDataType(const char *datatype)
Protected constructor, use static instantiation functions instead.
Base of all data objects.
virtual bool CheckNode(const mitk::DataNode *node) const override
Checks, if the nodes data object is of a specific data type.
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
virtual ~NodePredicateDataType()
Standard Destructor.
std::string m_ValidDataType
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Class for nodes of the DataTree.