Medical Imaging Interaction Toolkit  2022.10.99-eeb2f471
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkNodePredicateFirstLevel_h
14 #define mitkNodePredicateFirstLevel_h
15 
16 #include "mitkDataNode.h"
17 #include "mitkDataStorage.h"
18 #include "mitkNodePredicateBase.h"
19 #include "mitkWeakPointer.h"
20 
21 namespace mitk
22 {
23  //##Documentation
24  //## @brief Predicate that evaluates if the given node is a direct or indirect source node of a specific node
25  //##
26  //## @warning This class seems to be obsolete since mitk::DataStorage::GetDerivations().
27  //## Since there is no real use case up until now, NodePredicateSource is NOT WORKING YET.
28  //## If you need it working, inform us.
29  //##
30  //## @ingroup DataStorage
32  {
33  public:
36 
37  //##Documentation
38  //## @brief Standard Destructor
39  ~NodePredicateFirstLevel() override;
40 
41  //##Documentation
42  //## @brief Checks, if the node is a source node of m_BaseNode (e.g. if m_BaseNode "was created from" node)
43  bool CheckNode(const mitk::DataNode *node) const override;
44 
45  protected:
46  //##Documentation
47  //## @brief Constructor - This class can either search only for direct source objects or for all source objects
49 
51  };
52 
53 } // namespace mitk
54 
55 #endif
mitkDataStorage.h
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk::NodePredicateBase
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Definition: mitkNodePredicateBase.h:35
mitkNodePredicateBase.h
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::NodePredicateFirstLevel
Predicate that evaluates if the given node is a direct or indirect source node of a specific node.
Definition: mitkNodePredicateFirstLevel.h:31
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition: mitkDataStorage.h:43
mitkDataNode.h
mitk::NodePredicateFirstLevel::m_DataStorage
mitk::WeakPointer< mitk::DataStorage > m_DataStorage
Definition: mitkNodePredicateFirstLevel.h:50
mitkWeakPointer.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::WeakPointer< mitk::DataStorage >
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63