Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
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 MITKNODEPREDICATEDATAPROPERTY_H_HEADER_INCLUDED_
18 #define MITKNODEPREDICATEDATAPROPERTY_H_HEADER_INCLUDED_
19 
20 #include "mitkBaseProperty.h"
21 #include "mitkNodePredicateBase.h"
22 
23 namespace mitk
24 {
29  {
30  public:
34 
35  //##Documentation
36  //## @brief Standard Destructor
37  virtual ~NodePredicateDataProperty();
38 
39  //##Documentation
40  //## @brief Checks, if the nodes contains a property that is equal to m_ValidProperty
41  virtual bool CheckNode(const mitk::DataNode *node) const override;
42 
43  protected:
44  //##Documentation
45  //## @brief Constructor to check for a named property
46  NodePredicateDataProperty(const char *propertyName,
47  mitk::BaseProperty *p = nullptr);
48 
49  // mitk::WeakPointer<mitk::BaseProperty> m_ValidProperty;
51  // mitk::BaseProperty* m_ValidProperty;
52  std::string m_ValidPropertyName;
53  };
54 
55 } // namespace mitk
56 
57 #endif /* MITKNODEPREDICATEPROPERTY_H_HEADER_INCLUDED_ */
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:76
DataCollection - Class to facilitate loading/accessing structured data.
Predicate that evaluates if the data of a given DataNode has a specific property. If the second param...
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:89
Abstract base class for properties.
mitk::BaseProperty::Pointer m_ValidProperty
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66