|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Predicate that evaluates whether a DataNode has a specific property. More...
#include <mitkNodePredicateProperty.h>


Public Member Functions | |
| mitkClassMacro (NodePredicateProperty, NodePredicateBase) | |
| mitkNewMacro1Param (NodePredicateProperty, const char *) | |
| mitkNewMacro2Param (NodePredicateProperty, const char *, mitk::BaseProperty *) | |
| mitkNewMacro3Param (NodePredicateProperty, const char *, mitk::BaseProperty *, const mitk::BaseRenderer *) | |
| ~NodePredicateProperty () override | |
| Destructor. More... | |
| bool | CheckNode (const mitk::DataNode *node) const override |
| Check whether the node has the expected property. More... | |
Public Member Functions inherited from mitk::NodePredicateBase | |
| mitkClassMacroItkParent (NodePredicateBase, itk::Object) | |
| ~NodePredicateBase () override | |
| Virtual destructor. More... | |
Protected Member Functions | |
| NodePredicateProperty (const char *propertyName, mitk::BaseProperty *p=nullptr, const mitk::BaseRenderer *renderer=nullptr) | |
| Constructor to check for a named property. More... | |
Protected Attributes | |
| mitk::BaseProperty::Pointer | m_ValidProperty |
| std::string | m_ValidPropertyName |
| const mitk::BaseRenderer * | m_Renderer |
Predicate that evaluates whether a DataNode has a specific property.
If only a property name is specified (second constructor parameter is nullptr), the predicate checks for the existence of any property with that name. If a property value is also provided, the predicate checks that the node's property matches the given value (using operator==).
If a renderer is specified, the renderer-specific property is checked. Otherwise, the renderer-independent property is checked.
Definition at line 36 of file mitkNodePredicateProperty.h.
|
override |
Destructor.
|
protected |
Constructor to check for a named property.
|
overridevirtual |
Check whether the node has the expected property.
If m_ValidProperty is nullptr, only the existence of a property with the configured name is checked. Otherwise, both name and value equality are verified.
| [in] | node | The DataNode to evaluate. Must not be nullptr. |
| std::invalid_argument | if node is nullptr or the property name is empty. |
Implements mitk::NodePredicateBase.
| mitk::NodePredicateProperty::mitkClassMacro | ( | NodePredicateProperty | , |
| NodePredicateBase | |||
| ) |
| mitk::NodePredicateProperty::mitkNewMacro1Param | ( | NodePredicateProperty | , |
| const char * | |||
| ) |
| mitk::NodePredicateProperty::mitkNewMacro2Param | ( | NodePredicateProperty | , |
| const char * | , | ||
| mitk::BaseProperty * | |||
| ) |
| mitk::NodePredicateProperty::mitkNewMacro3Param | ( | NodePredicateProperty | , |
| const char * | , | ||
| mitk::BaseProperty * | , | ||
| const mitk::BaseRenderer * | |||
| ) |
|
protected |
Definition at line 71 of file mitkNodePredicateProperty.h.
|
protected |
Definition at line 68 of file mitkNodePredicateProperty.h.
|
protected |
Definition at line 70 of file mitkNodePredicateProperty.h.