Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkNodePredicateBase.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 MITKNODEPREDICATEBASE_H_HEADER_INCLUDED_
18 #define MITKNODEPREDICATEBASE_H_HEADER_INCLUDED_
19 
20 #include "itkObject.h"
21 #include <MitkCoreExports.h>
22 #include <mitkCommon.h>
23 
24 namespace mitk
25 {
26  class DataNode;
27  //##Documentation
28  //## @brief Interface for evaluation conditions used in the DataStorage class GetSubset() method
29  //##
30  //## Classes that inherit this interface can be used as predicates in the GetSubset() method
31  //## of mitk::DataStorage. By combining different predicate objects, the user can form complex
32  //## queries like "give me all nodes that either contain a surface object or a binary segmentation
33  //## and that are tagged as Organtype == 'Liver'".
34  //## @warning NodePredicates are now derived from itk::Object and make thus use of the smart pointer concept.
35  //## As a result predicates should only store raw pointers because for one thing they are not owners
36  //## of these objects and should not keep them alive.
37  //##
38  //## @ingroup DataStorage
39  class MITKCORE_EXPORT NodePredicateBase : public itk::Object
40  {
41  public:
43 
44  //##Documentation
45  //## @brief Standard Destructor
46  virtual ~NodePredicateBase();
47 
48  //##Documentation
49  //## @brief This method will be used to evaluate the node. Has to be overwritten in subclasses
50  virtual bool CheckNode(const mitk::DataNode *node) const = 0;
51  };
52 
53 } // namespace mitk
54 
55 #endif /* MITKNODEPREDICATEBASE_H_HEADER_INCLUDED_ */
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66