Medical Imaging Interaction Toolkit
2024.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. 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 given2 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.
More...
#include <mitkNodePredicateSubGeometry.h>
Public Types | |
typedef NodePredicateSubGeometry | Self |
typedef NodePredicateBase | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Types inherited from mitk::NodePredicateBase | |
typedef NodePredicateBase | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
void | SetCheckPrecision (mitk::ScalarType precision) |
virtual void | SetCheckCoordinatePrecision (mitk::ScalarType _arg) |
virtual mitk::ScalarType | GetCheckCoordinatePrecision () |
virtual void | SetCheckDirectionPrecision (mitk::ScalarType _arg) |
virtual mitk::ScalarType | GetCheckDirectionPrecision () |
~NodePredicateSubGeometry () override | |
bool | CheckNode (const mitk::DataNode *node) const override |
This method will be used to evaluate the node. Has to be overwritten in subclasses. More... | |
Public Member Functions inherited from mitk::NodePredicateBase | |
~NodePredicateBase () override | |
Standard Destructor. More... | |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New (const BaseGeometry *_arg) |
static Pointer | New (const BaseGeometry *_arga, TimePointType _argb) |
Static Public Member Functions inherited from mitk::NodePredicateBase | |
static const char * | GetStaticNameOfClass () |
Protected Member Functions | |
NodePredicateSubGeometry (const BaseGeometry *refGeometry) | |
NodePredicateSubGeometry (const BaseGeometry *refGeometry, TimePointType relevantTimePoint) | |
Protected Attributes | |
BaseGeometry::ConstPointer | m_RefGeometry |
TimePointType | m_TimePoint |
bool | m_UseTimePoint |
mitk::ScalarType | m_CheckCoordinatePrecision |
mitk::ScalarType | m_CheckDirectionPrecision |
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 given2 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.
Documentation One can specify the tolerance/precision of the check via SetCheckPrecision(), SetCheckCoordinatePrecision() or SetCheckDirectionPrecision().
Definition at line 52 of file mitkNodePredicateSubGeometry.h.
typedef itk::SmartPointer<const Self> mitk::NodePredicateSubGeometry::ConstPointer |
Definition at line 55 of file mitkNodePredicateSubGeometry.h.
Definition at line 55 of file mitkNodePredicateSubGeometry.h.
Definition at line 55 of file mitkNodePredicateSubGeometry.h.
Definition at line 55 of file mitkNodePredicateSubGeometry.h.
|
override |
|
protected |
Constructor that is used configures the predicate to check the reference geometry against the first data timepoint.
|
protected |
Constructor allows to define the timepoint that should be evaluated against the reference.
|
overridevirtual |
This method will be used to evaluate the node. Has to be overwritten in subclasses.
Implements mitk::NodePredicateBase.
|
virtual |
|
virtual |
|
inlineoverridevirtual |
Reimplemented from mitk::NodePredicateBase.
Definition at line 55 of file mitkNodePredicateSubGeometry.h.
|
virtual |
Reimplemented from mitk::NodePredicateBase.
|
inlinestatic |
Definition at line 55 of file mitkNodePredicateSubGeometry.h.
|
inlinestatic |
Definition at line 56 of file mitkNodePredicateSubGeometry.h.
|
inlinestatic |
Definition at line 57 of file mitkNodePredicateSubGeometry.h.
|
virtual |
|
virtual |
void mitk::NodePredicateSubGeometry::SetCheckPrecision | ( | mitk::ScalarType | precision | ) |
Sets CheckCoordinatePrecision and CheckDirectionPrecision to the passed value.
|
protected |
Precision that should be used for the equal coordinate checks.
Definition at line 84 of file mitkNodePredicateSubGeometry.h.
|
protected |
Precision that should be used for the equal direction checks.
Definition at line 86 of file mitkNodePredicateSubGeometry.h.
|
protected |
Definition at line 79 of file mitkNodePredicateSubGeometry.h.
|
protected |
Definition at line 80 of file mitkNodePredicateSubGeometry.h.
|
protected |
Indicates if m_TimePoint should be regarded or always the first timestep should be used.
Definition at line 82 of file mitkNodePredicateSubGeometry.h.