Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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_HEADER_INCLUDED_
14 #define MITKNODEPREDICATEPROPERTY_H_HEADER_INCLUDED_
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 /* MITKNODEPREDICATEPROPERTY_H_HEADER_INCLUDED_ */
Predicate that evaluates if the given DataNode has a specific property. If the second parameter is nu...
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
mitk::BaseProperty::Pointer m_ValidProperty
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:85
const mitk::BaseRenderer * m_Renderer
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
#define mitkNewMacro3Param(classname, typea, typeb, typec)
Definition: mitkCommon.h:98
Class for nodes of the DataTree.
Definition: mitkDataNode.h:64