Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkNodePredicateSubGeometry.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 mitkNodePredicateSubGeometry_h
14 #define mitkNodePredicateSubGeometry_h
15 
16 #include <mitkNodePredicateBase.h>
17 #include <mitkBaseGeometry.h>
18 #include <mitkTimeGeometry.h>
19 
20 namespace mitk
21 {
22  class BaseData;
23 
56  {
57  public:
61 
67 
68  itkSetMacro(CheckCoordinatePrecision, mitk::ScalarType);
69  itkGetMacro(CheckCoordinatePrecision, mitk::ScalarType);
70 
71  itkSetMacro(CheckDirectionPrecision, mitk::ScalarType);
72  itkGetMacro(CheckDirectionPrecision, mitk::ScalarType);
73 
76 
83  bool CheckNode(const mitk::DataNode *node) const override;
84 
85  protected:
86 
92 
98  NodePredicateSubGeometry(const BaseGeometry* refGeometry, TimePointType relevantTimePoint);
99 
100  BaseGeometry::ConstPointer m_RefGeometry;
108  };
109 } // namespace mitk
110 
111 #endif
#define MITKCORE_EXPORT
Abstract base class describing the geometry of a data object.
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 evaluates if the given DataNode's data object has a geometry that is a sub geometry of...
bool m_UseTimePoint
Indicates if m_TimePoint should be regarded or always the first timestep should be used.
bool CheckNode(const mitk::DataNode *node) const override
Checks if the node's data geometry is a sub geometry of the reference.
void SetCheckPrecision(mitk::ScalarType precision)
Sets both CheckCoordinatePrecision and CheckDirectionPrecision to the passed value.
NodePredicateSubGeometry(const BaseGeometry *refGeometry, TimePointType relevantTimePoint)
Constructor that checks the reference geometry against a specific timepoint.
mitkClassMacro(NodePredicateSubGeometry, NodePredicateBase)
mitk::ScalarType m_CheckCoordinatePrecision
Precision that should be used for the equal coordinate checks.
mitkNewMacro2Param(NodePredicateSubGeometry, const BaseGeometry *, TimePointType)
mitkNewMacro1Param(NodePredicateSubGeometry, const BaseGeometry *)
~NodePredicateSubGeometry() override
Standard Destructor.
NodePredicateSubGeometry(const BaseGeometry *refGeometry)
Constructor that checks the reference geometry against the first data timepoint.
mitk::ScalarType m_CheckDirectionPrecision
Precision that should be used for the equal direction checks.
Find image slices visible on a given plane.
mitk::ScalarType TimePointType
Type for time point values in milliseconds (ms).
double ScalarType
Scalar type used throughout MITK for geometric computations.