23 :
NodePredicateBase(), m_ValidProperty(p), m_ValidPropertyName(propertyName), m_Renderer(renderer)
34 throw std::invalid_argument(
"NodePredicateProperty: invalid node");
36 if (m_ValidPropertyName.empty())
37 throw std::invalid_argument(
"NodePredicateProperty: invalid property name");
40 if (m_ValidProperty.IsNull())
43 return (node->
GetProperty(m_ValidPropertyName.c_str(), m_Renderer) != NULL);
50 return (*p == *m_ValidProperty);
Organizes the rendering process.
mitk::BaseProperty * GetProperty(const char *propertyKey, const mitk::BaseRenderer *renderer=nullptr) const
Get the property (instance of BaseProperty) with key propertyKey from the PropertyList of the rendere...
virtual ~NodePredicateProperty()
Standard Destructor.
Abstract base class for properties.
virtual bool CheckNode(const mitk::DataNode *node) const override
Checks, if the nodes contains a property that is equal to m_ValidProperty.
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
NodePredicateProperty(const char *propertyName, mitk::BaseProperty *p=nullptr, const mitk::BaseRenderer *renderer=nullptr)
Constructor to check for a named property.
Class for nodes of the DataTree.