Medical Imaging Interaction Toolkit  2018.4.99-b5518f0d
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 
44  {
45  public:
50 
51  itkSetMacro(CheckPrecision, mitk::ScalarType);
52  itkGetMacro(CheckPrecision, mitk::ScalarType);
53 
54  ~NodePredicateGeometry() override;
55 
56  bool CheckNode(const mitk::DataNode *node) const override;
57 
58  protected:
59 
61  NodePredicateGeometry(const BaseGeometry* refGeometry);
63  NodePredicateGeometry(const BaseGeometry* refGeometry, TimePointType relevantTimePoint);
65  NodePredicateGeometry(const TimeGeometry* refGeometry);
66 
74  };
75 
77 
78 } // namespace mitk
79 
80 #endif /* MITKNodePredicateGeometry_H_HEADER_INCLUDED_ */
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
double ScalarType
DataCollection - Class to facilitate loading/accessing structured data.
constexpr double NODE_PREDICATE_GEOMETRY_DEFAULT_CHECK_PRECISION
#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