Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkNodePredicateFirstLevel.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 MITKNODEPREDICATEFIRSTLEVEL_H_HEADER_INCLUDED_
18 #define MITKNODEPREDICATEFIRSTLEVEL_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 This class seems to be obsolete since mitk::DataStorage::GetDerivations().
31  //## Since there is no real use case up until now, NodePredicateSource is NOT WORKING YET.
32  //## If you need it working, inform us.
33  //##
34  //## @ingroup DataStorage
36  {
37  public:
40 
41  //##Documentation
42  //## @brief Standard Destructor
43  virtual ~NodePredicateFirstLevel();
44 
45  //##Documentation
46  //## @brief Checks, if the node is a source node of m_BaseNode (e.g. if m_BaseNode "was created from" node)
47  virtual bool CheckNode(const mitk::DataNode *node) const override;
48 
49  protected:
50  //##Documentation
51  //## @brief Constructor - This class can either search only for direct source objects or for all source objects
53 
55  };
56 
57 } // namespace mitk
58 
59 #endif /* MITKNODEPREDICATEFIRSTLEVEL_H_HEADER_INCLUDED_ */
Data management class that handles 'was created by' relations.
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:76
mitk::WeakPointer< mitk::DataStorage > m_DataStorage
Predicate that evaluates if the given node is a direct or indirect source node of a specific node...
DataCollection - Class to facilitate loading/accessing structured data.
#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