|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Predicate that evaluates if the given DataNode's data object has a geometry that is a sub geometry of the reference geometry. More...
#include <mitkNodePredicateSubGeometry.h>


Protected Member Functions | |
| NodePredicateSubGeometry (const BaseGeometry *refGeometry) | |
| Constructor that checks the reference geometry against the first data timepoint. More... | |
| NodePredicateSubGeometry (const BaseGeometry *refGeometry, TimePointType relevantTimePoint) | |
| Constructor that checks the reference geometry against a specific timepoint. More... | |
Protected Attributes | |
| BaseGeometry::ConstPointer | m_RefGeometry |
| TimePointType | m_TimePoint |
| bool | m_UseTimePoint |
| Indicates if m_TimePoint should be regarded or always the first timestep should be used. More... | |
| mitk::ScalarType | m_CheckCoordinatePrecision |
| Precision that should be used for the equal coordinate checks. More... | |
| mitk::ScalarType | m_CheckDirectionPrecision |
| Precision that should be used for the equal direction checks. More... | |
Predicate that evaluates if the given DataNode's data object has a geometry that is a sub geometry of the reference geometry.
Sub geometry means that both geometries have the same voxel grid (same spacing, same axes, origin is on voxel grid), but the bounding box of the checked geometry is contained or equal to the bounding box of the reference geometry.
One can either check the whole time geometry of the data node by defining a reference time geometry or check against one given reference base geometry. If the predicate should check against a base geometry, you can specify the timepoint of the data's time geometry that should be checked. If no timepoint is defined the predicate will evaluate the data geometry in the first timestep. Evaluates to "false" for unsupported or undefined data objects/geometries.
One can specify the tolerance/precision of the check via SetCheckPrecision(), SetCheckCoordinatePrecision() or SetCheckDirectionPrecision().
Definition at line 55 of file mitkNodePredicateSubGeometry.h.
|
override |
Standard Destructor.
|
protected |
Constructor that checks the reference geometry against the first data timepoint.
| refGeometry | The reference base geometry to compare against. |
|
protected |
Constructor that checks the reference geometry against a specific timepoint.
| refGeometry | The reference base geometry to compare against. |
| relevantTimePoint | The timepoint of the data's time geometry to evaluate. |
|
overridevirtual |
Checks if the node's data geometry is a sub geometry of the reference.
| node | The DataNode to check. |
Implements mitk::NodePredicateBase.
|
virtual |
|
virtual |
| mitk::NodePredicateSubGeometry::mitkClassMacro | ( | NodePredicateSubGeometry | , |
| NodePredicateBase | |||
| ) |
| mitk::NodePredicateSubGeometry::mitkNewMacro1Param | ( | NodePredicateSubGeometry | , |
| const BaseGeometry * | |||
| ) |
| mitk::NodePredicateSubGeometry::mitkNewMacro2Param | ( | NodePredicateSubGeometry | , |
| const BaseGeometry * | , | ||
| TimePointType | |||
| ) |
|
virtual |
|
virtual |
| void mitk::NodePredicateSubGeometry::SetCheckPrecision | ( | mitk::ScalarType | precision | ) |
Sets both CheckCoordinatePrecision and CheckDirectionPrecision to the passed value.
| precision | The precision value to use for both coordinate and direction checks. |
|
protected |
Precision that should be used for the equal coordinate checks.
Definition at line 105 of file mitkNodePredicateSubGeometry.h.
|
protected |
Precision that should be used for the equal direction checks.
Definition at line 107 of file mitkNodePredicateSubGeometry.h.
|
protected |
Definition at line 100 of file mitkNodePredicateSubGeometry.h.
|
protected |
Definition at line 101 of file mitkNodePredicateSubGeometry.h.
|
protected |
Indicates if m_TimePoint should be regarded or always the first timestep should be used.
Definition at line 103 of file mitkNodePredicateSubGeometry.h.