Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkNodePredicateProperty.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 mitkNodePredicateProperty_h
14 #define mitkNodePredicateProperty_h
15 
16 #include <mitkBaseProperty.h>
17 #include <mitkBaseRenderer.h>
18 #include <mitkNodePredicateBase.h>
19 
20 namespace mitk
21 {
37  {
38  public:
43 
48 
59  bool CheckNode(const mitk::DataNode *node) const override;
60 
61  protected:
62  //##Documentation
63  //## @brief Constructor to check for a named property
64  NodePredicateProperty(const char *propertyName,
65  mitk::BaseProperty *p = nullptr,
66  const mitk::BaseRenderer *renderer = nullptr);
67 
68  mitk::BaseProperty::Pointer m_ValidProperty;
69  // mitk::BaseProperty* m_ValidProperty;
70  std::string m_ValidPropertyName;
72  };
73 
74 } // namespace mitk
75 
76 #endif
#define MITKCORE_EXPORT
Abstract base class for properties.
Organizes the rendering process.
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 whether a DataNode has a specific property.
mitk::BaseProperty::Pointer m_ValidProperty
NodePredicateProperty(const char *propertyName, mitk::BaseProperty *p=nullptr, const mitk::BaseRenderer *renderer=nullptr)
Constructor to check for a named property.
bool CheckNode(const mitk::DataNode *node) const override
Check whether the node has the expected property.
~NodePredicateProperty() override
Destructor.
mitkClassMacro(NodePredicateProperty, NodePredicateBase)
mitkNewMacro3Param(NodePredicateProperty, const char *, mitk::BaseProperty *, const mitk::BaseRenderer *)
const mitk::BaseRenderer * m_Renderer
mitkNewMacro1Param(NodePredicateProperty, const char *)
mitkNewMacro2Param(NodePredicateProperty, const char *, mitk::BaseProperty *)
Find image slices visible on a given plane.