Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 {
22  //##Documentation
23  //## @brief Predicate that evaluates if the given DataNode has a specific property.
24  //## If the second parameter is nullptr, it will only be checked whether there is a property with the specified name.
25  //## If a renderer is specified in the third parameter the renderer-specific property will be checked. If this
26  //## parameter is nullptr or not specified, then the non-renderer-specific property will be checked.
27  //##
28  //##
29  //##
30  //## @ingroup DataStorage
32  {
33  public:
38 
39  //##Documentation
40  //## @brief Standard Destructor
41  ~NodePredicateProperty() override;
42 
43  //##Documentation
44  //## @brief Checks, if the nodes contains a property that is equal to m_ValidProperty
45  bool CheckNode(const mitk::DataNode *node) const override;
46 
47  protected:
48  //##Documentation
49  //## @brief Constructor to check for a named property
50  NodePredicateProperty(const char *propertyName,
51  mitk::BaseProperty *p = nullptr,
52  const mitk::BaseRenderer *renderer = nullptr);
53 
55  // mitk::BaseProperty* m_ValidProperty;
56  std::string m_ValidPropertyName;
58  };
59 
60 } // namespace mitk
61 
62 #endif
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:36
mitkNewMacro2Param
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:81
mitk::NodePredicateProperty::m_ValidPropertyName
std::string m_ValidPropertyName
Definition: mitkNodePredicateProperty.h:56
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk::NodePredicateProperty::m_ValidProperty
mitk::BaseProperty::Pointer m_ValidProperty
Definition: mitkNodePredicateProperty.h:54
itk::SmartPointer< Self >
mitk::NodePredicateBase
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Definition: mitkNodePredicateBase.h:35
mitkNodePredicateBase.h
mitkNewMacro3Param
#define mitkNewMacro3Param(classname, typea, typeb, typec)
Definition: mitkCommon.h:94
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::NodePredicateProperty
Predicate that evaluates if the given DataNode has a specific property. If the second parameter is nu...
Definition: mitkNodePredicateProperty.h:31
mitk::NodePredicateProperty::m_Renderer
const mitk::BaseRenderer * m_Renderer
Definition: mitkNodePredicateProperty.h:57
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitkBaseRenderer.h
mitkBaseProperty.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63