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
mitkNodePredicateSource.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 MITKNODEPREDICATESOURCE_H_HEADER_INCLUDED_
18 #define MITKNODEPREDICATESOURCE_H_HEADER_INCLUDED_
19 
20 #include "mitkDataNode.h"
21 #include "mitkDataStorage.h"
22 #include "mitkNodePredicateBase.h"
23 #include "mitkWeakPointer.h"
24 
25 namespace mitk
26 {
27  //##Documentation
28  //## @brief Predicate that evaluates if the given node is a direct or indirect source node of a specific node
29  //##
30  //## @warning Calling CheckNode() can be computationally quite expensive for a large DataStorage.
31  //## Alternatively mitk::StandaloneDataStorage::GetSources() can be used
32  //##
33  //## @ingroup DataStorage
35  {
36  public:
39 
40  //##Documentation
41  //## @brief Standard Destructor
42  virtual ~NodePredicateSource();
43 
44  //##Documentation
45  //## @brief Checks, if m_BaseNode is a source node of childNode (e.g. if childNode "was created from" m_BaseNode)
46  virtual bool CheckNode(const mitk::DataNode *childNode) const override;
47 
48  protected:
49  //##Documentation
50  //## @brief Constructor - This class can either search only for direct source objects or for all source objects
51  NodePredicateSource(mitk::DataNode *n, bool allsources, mitk::DataStorage *ds);
52 
56  };
57 
58 } // namespace mitk
59 
60 #endif /* MITKNODEPREDICATESOURCE_H_HEADER_INCLUDED_ */
Data management class that handles 'was created by' relations.
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
mitk::WeakPointer< mitk::DataNode > m_BaseNode
mitk::WeakPointer< mitk::DataStorage > m_DataStorage
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Predicate that evaluates if the given node is a direct or indirect source node of a specific node...
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