Medical Imaging Interaction Toolkit  2021.02.99-f0b8f189
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_HEADER_INCLUDED_
14 #define MITKNODEPREDICATEGEOMETRY_H_HEADER_INCLUDED_
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 /* MITKNodePredicateGeometry_H_HEADER_INCLUDED_ */
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
constexpr double NODE_PREDICATE_GEOMETRY_DEFAULT_CHECK_DIRECTION_PRECISION
constexpr double NODE_PREDICATE_GEOMETRY_DEFAULT_CHECK_COORDINATE_PRECISION
double ScalarType
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:85
Predicate that evaluates if the given DataNode's data object has the same geometry (in terms of spaci...
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
BaseGeometry::ConstPointer m_RefGeometry
mitk::ScalarType TimePointType
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
TimeGeometry::ConstPointer m_RefTimeGeometry
BaseGeometry Describes the geometry of a data object.
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57