Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkNodePredicateDataProperty.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkNodePredicateDataProperty_h
14 #define mitkNodePredicateDataProperty_h
15 
16 #include <mitkBaseProperty.h>
17 #include <mitkNodePredicateBase.h>
18 
19 namespace mitk
20 {
29  {
30  public:
34 
37 
46  bool CheckNode(const mitk::DataNode *node) const override;
47 
48  protected:
55  NodePredicateDataProperty(const char *propertyName,
56  mitk::BaseProperty *p = nullptr);
57 
58  mitk::BaseProperty::Pointer m_ValidProperty;
59  // mitk::BaseProperty* m_ValidProperty;
60  std::string m_ValidPropertyName;
61  };
62 
63 } // namespace mitk
64 
65 #endif
#define MITKCORE_EXPORT
Abstract base class for properties.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72
Abstract base class for predicates used to filter DataNode objects in DataStorage queries.
Predicate that evaluates if the data of a given DataNode has a specific property.
~NodePredicateDataProperty() override
Standard Destructor.
bool CheckNode(const mitk::DataNode *node) const override
Checks if the node's data object has a property matching the stored criteria.
mitk::BaseProperty::Pointer m_ValidProperty
NodePredicateDataProperty(const char *propertyName, mitk::BaseProperty *p=nullptr)
Constructor to check for a named property.
mitkNewMacro2Param(NodePredicateDataProperty, const char *, mitk::BaseProperty *)
mitkClassMacro(NodePredicateDataProperty, NodePredicateBase)
mitkNewMacro1Param(NodePredicateDataProperty, const char *)
Find image slices visible on a given plane.