Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Predicate that evaluates if the given DataNode's data object has the same geometry (in terms of spacing, origin, orientation) like the reference geometry. One can either check the whole time geometry of the date node by defining a referenc 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. More...
#include <mitkNodePredicateGeometry.h>
Public Types | |
typedef NodePredicateGeometry | Self |
typedef NodePredicateBase | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
![]() | |
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 |
virtual void | SetCheckPrecision (mitk::ScalarType _arg) |
virtual mitk::ScalarType | GetCheckPrecision () |
~NodePredicateGeometry () 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... | |
![]() | |
~NodePredicateBase () override | |
Standard Destructor. More... | |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New (const TimeGeometry *_arg) |
static Pointer | New (const BaseGeometry *_arg) |
static Pointer | New (const BaseGeometry *_arga, TimePointType _argb) |
![]() | |
static const char * | GetStaticNameOfClass () |
Protected Member Functions | |
NodePredicateGeometry (const BaseGeometry *refGeometry) | |
NodePredicateGeometry (const BaseGeometry *refGeometry, TimePointType relevantTimePoint) | |
NodePredicateGeometry (const TimeGeometry *refGeometry) | |
Protected Attributes | |
BaseGeometry::ConstPointer | m_RefGeometry |
TimeGeometry::ConstPointer | m_RefTimeGeometry |
TimePointType | m_TimePoint |
bool | m_UseTimePoint |
mitk::ScalarType | m_CheckPrecision |
Predicate that evaluates if the given DataNode's data object has the same geometry (in terms of spacing, origin, orientation) like the reference geometry. One can either check the whole time geometry of the date node by defining a referenc 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.
Documentation
Definition at line 35 of file mitkNodePredicateGeometry.h.
typedef itk::SmartPointer<const Self> mitk::NodePredicateGeometry::ConstPointer |
Definition at line 38 of file mitkNodePredicateGeometry.h.
Definition at line 38 of file mitkNodePredicateGeometry.h.
Definition at line 38 of file mitkNodePredicateGeometry.h.
Definition at line 38 of file mitkNodePredicateGeometry.h.
|
override |
Definition at line 35 of file mitkNodePredicateGeometry.cpp.
|
protected |
Constructor that is used configures the predicate to check the reference geometry against the first data timepoint.
Definition at line 23 of file mitkNodePredicateGeometry.cpp.
References m_RefGeometry, and mitkThrow.
|
protected |
Constructor allows to define the timepoint that should be evaluated against the reference.
Definition at line 17 of file mitkNodePredicateGeometry.cpp.
References m_RefGeometry, and mitkThrow.
|
protected |
Constructor that is used configures the predicate to check against the whole time geometry.
Definition at line 29 of file mitkNodePredicateGeometry.cpp.
References m_RefTimeGeometry, and mitkThrow.
|
overridevirtual |
This method will be used to evaluate the node. Has to be overwritten in subclasses.
Implements mitk::NodePredicateBase.
Definition at line 39 of file mitkNodePredicateGeometry.cpp.
References mitk::Equal(), mitk::DataNode::GetData(), mitk::BaseData::GetGeometry(), mitk::TimeGeometry::GetGeometryForTimePoint(), mitk::BaseData::GetTimeGeometry(), m_CheckPrecision, m_RefGeometry, m_RefTimeGeometry, m_TimePoint, m_UseTimePoint, and mitkThrow.
|
virtual |
|
inlineoverridevirtual |
Reimplemented from mitk::NodePredicateBase.
Definition at line 38 of file mitkNodePredicateGeometry.h.
|
virtual |
Reimplemented from mitk::NodePredicateBase.
|
inlinestatic |
Definition at line 38 of file mitkNodePredicateGeometry.h.
|
inlinestatic |
Definition at line 39 of file mitkNodePredicateGeometry.h.
Referenced by QmitkInitialValuesManagerWidget::setReferenceImageGeometry().
|
inlinestatic |
Definition at line 40 of file mitkNodePredicateGeometry.h.
|
inlinestatic |
Definition at line 41 of file mitkNodePredicateGeometry.h.
|
virtual |
|
protected |
Precision that should be used for the equal checks.
Definition at line 65 of file mitkNodePredicateGeometry.h.
Referenced by CheckNode().
|
protected |
Definition at line 59 of file mitkNodePredicateGeometry.h.
Referenced by CheckNode(), and NodePredicateGeometry().
|
protected |
Definition at line 60 of file mitkNodePredicateGeometry.h.
Referenced by CheckNode(), and NodePredicateGeometry().
|
protected |
Definition at line 61 of file mitkNodePredicateGeometry.h.
Referenced by CheckNode().
|
protected |
Indicates if m_TimePoint should be regarded or always the first timestep should be used.
Definition at line 63 of file mitkNodePredicateGeometry.h.
Referenced by CheckNode().