25 mitkThrow() <<
"NodePredicateDataProperty cannot check invalid (empty) property name";
36 mitkThrow() <<
"NodePredicateDataProperty cannot check invalid node";
39 if (m_ValidPropertyName.empty())
41 mitkThrow() <<
"NodePredicateDataProperty cannot check invalid (empty) property name";
48 if (m_ValidProperty.IsNull())
50 result = data->
GetProperty(m_ValidPropertyName.c_str()).IsNotNull();
58 result = (*p == *m_ValidProperty);
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
std::string m_ValidPropertyName
virtual bool CheckNode(const mitk::DataNode *node) const override
Checks, if the nodes contains a property that is equal to m_ValidProperty.
Abstract base class for properties.
virtual ~NodePredicateDataProperty()
Standard Destructor.
NodePredicateDataProperty(const char *propertyName, mitk::BaseProperty *p=nullptr)
Constructor to check for a named property.
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
mitk::BaseProperty::Pointer GetProperty(const char *propertyKey) const
Get the property (instance of BaseProperty) with key propertyKey from the PropertyList, and set it to this, respectively;.
Class for nodes of the DataTree.