Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitkNodePredicateGeometry.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 mitkNodePredicateGeometry_h
14 #define mitkNodePredicateGeometry_h
15 
16 #include "mitkNodePredicateBase.h"
17 #include "mitkBaseGeometry.h"
18 #include "mitkTimeGeometry.h"
19 
20 namespace mitk
21 {
22  class BaseData;
23 
52  {
53  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  ~NodePredicateGeometry() override;
69 
70  bool CheckNode(const mitk::DataNode *node) const override;
71 
72  protected:
73 
75  NodePredicateGeometry(const BaseGeometry* refGeometry);
77  NodePredicateGeometry(const BaseGeometry* refGeometry, TimePointType relevantTimePoint);
79  NodePredicateGeometry(const TimeGeometry* refGeometry);
80 
90  };
91 
104 
105 } // namespace mitk
106 
107 #endif
mitk::NodePredicateGeometry
Predicate that evaluates if the given DataNode's data object has the same geometry (in terms of spaci...
Definition: mitkNodePredicateGeometry.h:51
mitk::TimeGeometry
Definition: mitkTimeGeometry.h:43
mitk::NodePredicateGeometry::m_CheckCoordinatePrecision
mitk::ScalarType m_CheckCoordinatePrecision
Definition: mitkNodePredicateGeometry.h:87
mitkNewMacro2Param
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:81
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk::NodePredicateGeometry::m_CheckDirectionPrecision
mitk::ScalarType m_CheckDirectionPrecision
Definition: mitkNodePredicateGeometry.h:89
mitk::NodePredicateGeometry::m_UseTimePoint
bool m_UseTimePoint
Definition: mitkNodePredicateGeometry.h:85
mitk::NodePredicateGeometry::m_RefGeometry
BaseGeometry::ConstPointer m_RefGeometry
Definition: mitkNodePredicateGeometry.h:81
itk::SmartPointer< const Self >
mitk::NodePredicateBase
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Definition: mitkNodePredicateBase.h:35
mitkTimeGeometry.h
mitkNodePredicateBase.h
mitk::NODE_PREDICATE_GEOMETRY_DEFAULT_CHECK_DIRECTION_PRECISION
constexpr double NODE_PREDICATE_GEOMETRY_DEFAULT_CHECK_DIRECTION_PRECISION
Definition: mitkNodePredicateGeometry.h:103
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::NodePredicateGeometry::m_RefTimeGeometry
TimeGeometry::ConstPointer m_RefTimeGeometry
Definition: mitkNodePredicateGeometry.h:82
mitk::BaseGeometry
BaseGeometry Describes the geometry of a data object.
Definition: mitkBaseGeometry.h:94
mitk::NODE_PREDICATE_GEOMETRY_DEFAULT_CHECK_COORDINATE_PRECISION
constexpr double NODE_PREDICATE_GEOMETRY_DEFAULT_CHECK_COORDINATE_PRECISION
Definition: mitkNodePredicateGeometry.h:97
mitk::NodePredicateGeometry::m_TimePoint
TimePointType m_TimePoint
Definition: mitkNodePredicateGeometry.h:83
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