Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkNodePredicateFunction.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 mitkNodePredicateFunction_h
14 #define mitkNodePredicateFunction_h
15 
16 #include <mitkNodePredicateBase.h>
17 #include <MitkCoreExports.h>
18 #include <functional>
19 
20 namespace mitk
21 {
32  {
33  public:
34  using FunctionType = std::function<bool (const mitk::DataNode *)>;
35 
38 
41 
47  bool CheckNode(const mitk::DataNode *node) const override;
48 
49  protected:
54  explicit NodePredicateFunction(const FunctionType &function);
55 
57  };
58 }
59 
60 #endif
#define MITKCORE_EXPORT
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72
Abstract base class for predicates used to filter DataNode objects in DataStorage queries.
Predicate that transfers the check to a specific Callable.
std::function< bool(const mitk::DataNode *)> FunctionType
bool CheckNode(const mitk::DataNode *node) const override
Delegates the check to the stored callable.
NodePredicateFunction(const FunctionType &function)
Protected constructor, use static instantiation functions instead.
~NodePredicateFunction() override
Standard Destructor.
mitkClassMacro(NodePredicateFunction, NodePredicateBase)
mitkNewMacro1Param(NodePredicateFunction, const FunctionType &)
Find image slices visible on a given plane.