Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKNODEPREDICATEPROPERTY_H_HEADER_INCLUDED_
18 #define MITKNODEPREDICATEPROPERTY_H_HEADER_INCLUDED_
19 
20 #include "mitkBaseProperty.h"
21 #include "mitkBaseRenderer.h"
22 #include "mitkNodePredicateBase.h"
23 #include "mitkWeakPointer.h"
24 
25 namespace mitk
26 {
27  //##Documentation
28  //## @brief Predicate that evaluates if the given DataNode has a specific property.
29  //## If the second parameter is NULL, it will only be checked whether there is a property with the specified name.
30  //## If a renderer is specified in the third parameter the renderer-specific property will be checked. If this
31  //## parameter is NULL or not specified, then the non-renderer-specific property will be checked.
32  //##
33  //##
34  //##
35  //## @ingroup DataStorage
37  {
38  public:
43 
44  //##Documentation
45  //## @brief Standard Destructor
46  virtual ~NodePredicateProperty();
47 
48  //##Documentation
49  //## @brief Checks, if the nodes contains a property that is equal to m_ValidProperty
50  virtual bool CheckNode(const mitk::DataNode *node) const override;
51 
52  protected:
53  //##Documentation
54  //## @brief Constructor to check for a named property
55  NodePredicateProperty(const char *propertyName,
56  mitk::BaseProperty *p = nullptr,
57  const mitk::BaseRenderer *renderer = nullptr);
58 
59  // mitk::WeakPointer<mitk::BaseProperty> m_ValidProperty;
61  // mitk::BaseProperty* m_ValidProperty;
62  std::string m_ValidPropertyName;
64  };
65 
66 } // namespace mitk
67 
68 #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:76
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:89
const mitk::BaseRenderer * m_Renderer
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
#define mitkNewMacro3Param(classname, typea, typeb, typec)
Definition: mitkCommon.h:102
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66