|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
#include <mitkTimeGeometry.h>


Public Member Functions | |
| mitkClassMacroItkParent (TimeGeometry, itk::Object) | |
| Pointer | Clone () const |
| itkCreateAnotherMacro (Self) | |
| virtual TimeStepType | CountTimeSteps () const =0 |
| Returns the number of time steps. More... | |
| virtual TimePointType | GetMinimumTimePoint () const =0 |
| Returns the first time point for which the object is valid. More... | |
| virtual TimePointType | GetMaximumTimePoint () const =0 |
| Returns the last time point for which the object is valid. More... | |
| virtual TimePointType | GetMinimumTimePoint (TimeStepType step) const =0 |
| Returns the first time point for which the object is valid. More... | |
| virtual TimePointType | GetMaximumTimePoint (TimeStepType step) const =0 |
| Returns the last time point for which the object is valid. More... | |
| virtual TimeBounds | GetTimeBounds () const =0 |
| Get the time bounds (in ms) More... | |
| virtual TimeBounds | GetTimeBounds (TimeStepType step) const =0 |
| Get the time bounds for the given TimeStep (in ms) More... | |
| virtual bool | IsValidTimePoint (TimePointType timePoint) const =0 |
| Tests if a given time point is covered by this object. More... | |
| virtual bool | IsValidTimeStep (TimeStepType timeStep) const =0 |
| Test for the given time step if a geometry is available. More... | |
| virtual TimePointType | TimeStepToTimePoint (TimeStepType timeStep) const =0 |
| Converts a time step to a time point. More... | |
| virtual TimeStepType | TimePointToTimeStep (TimePointType timePoint) const =0 |
| Converts a time point to the corresponding time step. More... | |
| virtual BaseGeometry::Pointer | GetGeometryForTimePoint (TimePointType timePoint) const =0 |
| Returns the geometry of a specific time point. More... | |
| virtual BaseGeometry::Pointer | GetGeometryForTimeStep (TimeStepType timeStep) const =0 |
| Returns the geometry which corresponds to the given time step. More... | |
| virtual BaseGeometry::Pointer | GetGeometryCloneForTimeStep (TimeStepType timeStep) const =0 |
| Returns a clone of the geometry of a specific time point. More... | |
| virtual void | SetTimeStepGeometry (BaseGeometry *geometry, TimeStepType timeStep)=0 |
| Sets the geometry for a given time step. More... | |
| virtual void | Expand (TimeStepType size)=0 |
| Expands to the given number of time steps. More... | |
| virtual void | ReplaceTimeStepGeometries (const BaseGeometry *geometry)=0 |
| Replaces the geometry instances with clones ot the passed geometry. More... | |
| virtual bool | IsValid () const =0 |
| Tests if all necessary information are set and the object is valid. More... | |
| Point3D | GetCornerPointInWorld (int id) const |
| Get the position of the corner number id (in world coordinates) More... | |
| Point3D | GetCornerPointInWorld (bool xFront=true, bool yFront=true, bool zFront=true) const |
| Get the position of a corner (in world coordinates) More... | |
| Point3D | GetCenterInWorld () const |
| Get the center of the bounding-box in mm. More... | |
| double | GetDiagonalLength2InWorld () const |
| Get the squared length of the diagonal of the bounding-box in mm. More... | |
| double | GetDiagonalLengthInWorld () const |
| Get the length of the diagonal of the bounding-box in mm. More... | |
| bool | IsWorldPointInside (const mitk::Point3D &p) const |
| Test whether the point p (world coordinates in mm) is inside the bounding box. More... | |
| void | UpdateBoundingBox () |
| Recompute the bounding box to cover all time steps. More... | |
| BoundingBox * | GetBoundingBoxInWorld () const |
| Get the bounding box that covers all time steps. More... | |
| BoundingBox::BoundsArrayType | GetBoundsInWorld () const |
| Get the bounds array of the aggregate bounding box. More... | |
| ScalarType | GetExtentInWorld (unsigned int direction) const |
| Get the extent of the aggregate bounding box in the given direction. More... | |
| virtual void | Initialize () |
| Initialize the TimeGeometry to its default state. More... | |
| void | Update () |
| Update the geometry (bounding box and subclass-specific data). More... | |
| virtual void | UpdateWithoutBoundingBox () |
| Hook for subclass-specific updates that do not involve the bounding box. More... | |
| void | ExecuteOperation (Operation *op) override |
| Execute the given operation on all time steps. More... | |
| void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
Public Member Functions inherited from mitk::OperationActor | |
| itkTypeMacroNoParent (OperationActor) virtual ~OperationActor() | |
Protected Member Functions | |
| TimeGeometry () | |
| TimeGeometry (const TimeGeometry &other) | |
| ~TimeGeometry () override | |
Protected Attributes | |
| BoundingBox::Pointer | m_BoundingBox |
| Contains a bounding box which includes all time steps. More... | |
Definition at line 54 of file mitkTimeGeometry.h.
|
protected |
|
protected |
|
overrideprotected |
| Pointer mitk::TimeGeometry::Clone | ( | ) | const |
|
pure virtual |
Returns the number of time steps.
Returns the number of time steps for which geometries are saved. The number of time steps is also the upper bound of the time steps. The minimum time steps is always 0.
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
overridevirtual |
Execute the given operation on all time steps.
Iterates over every time step and calls ExecuteOperation() on each step's geometry.
| [in] | op | The operation to execute. |
Implements mitk::OperationActor.
|
pure virtual |
Expands to the given number of time steps.
Expands to the given number of time steps. Each new created time step is filled with an empty geometry. Shrinking is not supported!
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
inline |
Get the bounding box that covers all time steps.
Definition at line 272 of file mitkTimeGeometry.h.
|
inline |
Get the bounds array of the aggregate bounding box.
Definition at line 279 of file mitkTimeGeometry.h.
| Point3D mitk::TimeGeometry::GetCenterInWorld | ( | ) | const |
Get the center of the bounding-box in mm.
| Point3D mitk::TimeGeometry::GetCornerPointInWorld | ( | bool | xFront = true, |
| bool | yFront = true, |
||
| bool | zFront = true |
||
| ) | const |
Get the position of a corner (in world coordinates)
See SetImageGeometry for how a corner is defined on images.
| Point3D mitk::TimeGeometry::GetCornerPointInWorld | ( | int | id | ) | const |
Get the position of the corner number id (in world coordinates)
See SetImageGeometry for how a corner is defined on images.
| double mitk::TimeGeometry::GetDiagonalLength2InWorld | ( | ) | const |
Get the squared length of the diagonal of the bounding-box in mm.
| double mitk::TimeGeometry::GetDiagonalLengthInWorld | ( | ) | const |
Get the length of the diagonal of the bounding-box in mm.
| ScalarType mitk::TimeGeometry::GetExtentInWorld | ( | unsigned int | direction | ) | const |
Get the extent of the aggregate bounding box in the given direction.
| [in] | direction | The axis (0=x, 1=y, 2=z). |
|
pure virtual |
Returns a clone of the geometry of a specific time point.
If an invalid time step is given (e.g. no geometry is defined for this time step) a null-pointer will be returned.
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
pure virtual |
Returns the geometry of a specific time point.
Returns the geometry which defines the given time point. If the given time point is invalid an null-pointer is returned.
The pointer to the returned geometry may point to the saved geometry but this is not necessarily the case. So a change to the returned geometry may or may not afflict the geometry for the time point or all time points depending on the used implementation of TimeGeometry.
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
pure virtual |
Returns the geometry which corresponds to the given time step.
Returns the geometry which defines the given time step. If the given time step is invalid an null-pointer is returned.
The pointer to the returned geometry may point to the saved geometry but this is not necessarily the case. So a change to the returned geometry may or may not afflict the geometry for the time step or all time steps depending on the used implementation of TimeGeometry.
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
pure virtual |
Returns the last time point for which the object is valid.
Gives the last time point for which a valid geometry is saved in this time geometry. The time point is given in ms.
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
pure virtual |
Returns the last time point for which the object is valid.
Gives the last time point for the Geometry specified by the given TimeStep. The time point is given in ms.
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
pure virtual |
Returns the first time point for which the object is valid.
Returns the first valid time point for this geometry. If only one time steps available it usually goes from -max to +max. The time point is given in ms.
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
pure virtual |
Returns the first time point for which the object is valid.
Returns the first valid time point for the given TimeStep. The time point is given in ms.
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
pure virtual |
Get the time bounds (in ms)
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
pure virtual |
Get the time bounds for the given TimeStep (in ms)
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
virtual |
Initialize the TimeGeometry to its default state.
The default implementation is empty; subclasses should override to set up initial time steps and geometries.
Reimplemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
pure virtual |
Tests if all necessary information are set and the object is valid.
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
pure virtual |
Tests if a given time point is covered by this object.
Returns true if a geometry can be returned for the given time point and falls if not. The time point must be given in ms.
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
pure virtual |
Test for the given time step if a geometry is available.
Returns true if a geometry is defined for the given time step. Otherwise false is returned. The time step is defined as positive number.
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
Referenced by mitk::GenerateTimeInInputRegion().
| bool mitk::TimeGeometry::IsWorldPointInside | ( | const mitk::Point3D & | p | ) | const |
Test whether the point p (world coordinates in mm) is inside the bounding box.
| mitk::TimeGeometry::itkCreateAnotherMacro | ( | Self | ) |
| mitk::TimeGeometry::mitkClassMacroItkParent | ( | TimeGeometry | , |
| itk::Object | |||
| ) |
|
override |
|
pure virtual |
Replaces the geometry instances with clones ot the passed geometry.
Replaces the geometries of all time steps with clones of the passed geometry. Replacement strategy depends on the implementation of TimeGeometry sub class.
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
pure virtual |
Sets the geometry for a given time step.
Sets the geometry for the given time steps. This may also afflects other time steps, depending on the implementation of TimeGeometry.
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
|
pure virtual |
Converts a time point to the corresponding time step.
Converts a time point to a time step in a way that the new time step indicates the same geometry as the time point. If a negative invalid time point is given always time step 0 is returned. If an positive invalid time step is given an invalid time step will be returned.
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
Referenced by mitk::GenerateTimeInInputRegion().
|
pure virtual |
Converts a time step to a time point.
Converts a time step to a time point in a way that the new time point indicates the same geometry as the time step. If the original time steps does not point to a valid geometry, a time point is calculated that also does not point to a valid geometry, but no exception is raised.
Implemented in mitk::ProportionalTimeGeometry, and mitk::ArbitraryTimeGeometry.
Referenced by mitk::GenerateTimeInInputRegion().
| void mitk::TimeGeometry::Update | ( | ) |
Update the geometry (bounding box and subclass-specific data).
Calls UpdateBoundingBox() followed by UpdateWithoutBoundingBox().
| void mitk::TimeGeometry::UpdateBoundingBox | ( | ) |
Recompute the bounding box to cover all time steps.
Iterates over all time steps, collects the eight corner points of each step's geometry, and computes an axis-aligned bounding box that encloses all of them.
|
inlinevirtual |
Hook for subclass-specific updates that do not involve the bounding box.
Called by Update() after UpdateBoundingBox(). Subclasses should override this to perform any additional update logic.
Definition at line 311 of file mitkTimeGeometry.h.
|
protected |
Contains a bounding box which includes all time steps.
Definition at line 64 of file mitkTimeGeometry.h.