Medical Imaging Interaction Toolkit  2024.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 
53  {
54  public:
58 
60  void SetCheckPrecision(mitk::ScalarType precision);
61 
62  itkSetMacro(CheckCoordinatePrecision, mitk::ScalarType);
63  itkGetMacro(CheckCoordinatePrecision, mitk::ScalarType);
64 
65  itkSetMacro(CheckDirectionPrecision, mitk::ScalarType);
66  itkGetMacro(CheckDirectionPrecision, mitk::ScalarType);
67 
68  ~NodePredicateSubGeometry() override;
69 
70  bool CheckNode(const mitk::DataNode *node) const override;
71 
72  protected:
73 
75  NodePredicateSubGeometry(const BaseGeometry* refGeometry);
77  NodePredicateSubGeometry(const BaseGeometry* refGeometry, TimePointType relevantTimePoint);
78 
87  };
88 } // namespace mitk
89 
90 #endif
mitkNewMacro2Param
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:81
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk::NodePredicateSubGeometry::m_CheckCoordinatePrecision
mitk::ScalarType m_CheckCoordinatePrecision
Definition: mitkNodePredicateSubGeometry.h:84
mitk::NodePredicateSubGeometry::m_CheckDirectionPrecision
mitk::ScalarType m_CheckDirectionPrecision
Definition: mitkNodePredicateSubGeometry.h:86
itk::SmartPointer< const Self >
mitk::NodePredicateBase
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Definition: mitkNodePredicateBase.h:35
mitk::NodePredicateSubGeometry
Predicate that evaluates if the given DataNode's data object has a geometry that is a sub geometry of...
Definition: mitkNodePredicateSubGeometry.h:52
mitkTimeGeometry.h
mitkNodePredicateBase.h
mitk::NodePredicateSubGeometry::m_RefGeometry
BaseGeometry::ConstPointer m_RefGeometry
Definition: mitkNodePredicateSubGeometry.h:79
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::NodePredicateSubGeometry::m_TimePoint
TimePointType m_TimePoint
Definition: mitkNodePredicateSubGeometry.h:80
mitk::BaseGeometry
BaseGeometry Describes the geometry of a data object.
Definition: mitkBaseGeometry.h:94
mitk::NodePredicateSubGeometry::m_UseTimePoint
bool m_UseTimePoint
Definition: mitkNodePredicateSubGeometry.h:82
mitkBaseGeometry.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::TimePointType
mitk::ScalarType TimePointType
Definition: mitkTimeGeometry.h:26
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63
mitk::ScalarType
double ScalarType
Definition: mitkNumericConstants.h:20