Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <mitkProportionalTimeGeometry.h>
Public Types | |
typedef ProportionalTimeGeometry | Self |
typedef TimeGeometry | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef ProportionalTimeGeometry | self |
Public Types inherited from mitk::TimeGeometry | |
typedef TimeGeometry | 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 |
ProportionalTimeGeometry () | |
Pointer | Clone () const |
virtual TimeStepType | CountTimeSteps () const override |
Returns the number of time steps. More... | |
virtual TimePointType | GetMinimumTimePoint () const override |
Returns the first time point for which the object is valid. More... | |
virtual TimePointType | GetMaximumTimePoint () const override |
Returns the last time point for which the object is valid. More... | |
virtual TimePointType | GetMinimumTimePoint (TimeStepType step) const override |
Returns the first time point for which the object is valid. More... | |
virtual TimePointType | GetMaximumTimePoint (TimeStepType step) const override |
Returns the last time point for which the object is valid. More... | |
virtual TimeBounds | GetTimeBounds () const override |
Get the time bounds (in ms) More... | |
virtual TimeBounds | GetTimeBounds (TimeStepType step) const override |
Get the time bounds for the given TimeStep (in ms) More... | |
virtual bool | IsValidTimePoint (TimePointType timePoint) const override |
Tests if a given time point is covered by this object. More... | |
virtual bool | IsValidTimeStep (TimeStepType timeStep) const override |
Test for the given time step if a geometry is availible. More... | |
virtual TimePointType | TimeStepToTimePoint (TimeStepType timeStep) const override |
Converts a time step to a time point. More... | |
virtual TimeStepType | TimePointToTimeStep (TimePointType timePoint) const override |
Converts a time point to the corresponding time step. More... | |
virtual BaseGeometry::Pointer | GetGeometryCloneForTimeStep (TimeStepType timeStep) const override |
Returns the geometry which corresponds to the given time step. More... | |
virtual BaseGeometry::Pointer | GetGeometryForTimePoint (TimePointType timePoint) const override |
Returns the geometry which corresponds to the given time point. More... | |
virtual BaseGeometry::Pointer | GetGeometryForTimeStep (TimeStepType timeStep) const override |
Returns the geometry which corresponds to the given time step. More... | |
virtual bool | IsValid () const override |
Tests if all necessary informations are set and the object is valid. More... | |
virtual void | Initialize () override |
Initilizes a new object with one time steps which contains an empty geometry. More... | |
virtual void | Expand (TimeStepType size) override |
Expands the time geometry to the given number of time steps. More... | |
virtual void | SetTimeStepGeometry (BaseGeometry *geometry, TimeStepType timeStep) override |
Sets the geometry for the given time step. More... | |
virtual void | ReplaceTimeStepGeometries (const BaseGeometry *geometry) override |
Replaces the geometry instances with clones of the passed geometry. More... | |
virtual itk::LightObject::Pointer | InternalClone () const override |
Makes a deep copy of the current object. More... | |
virtual TimePointType | GetFirstTimePoint () const |
virtual void | SetFirstTimePoint (TimePointType _arg) |
virtual TimePointType | GetStepDuration () const |
virtual void | SetStepDuration (TimePointType _arg) |
void | ClearAllGeometries () |
void | ReserveSpaceForGeometries (TimeStepType numberOfGeometries) |
void | Initialize (const BaseGeometry *geometry, TimeStepType timeSteps) |
Initializes the TimeGeometry with equally time Step geometries. More... | |
void | Initialize (TimeStepType timeSteps) |
Initialize the TimeGeometry with empty BaseGeometry. More... | |
virtual void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
Public Member Functions inherited from mitk::TimeGeometry | |
Pointer | Clone () const |
itkCreateAnotherMacro (Self) virtual TimeStepType CountTimeSteps() const =0 | |
Returns the number of time steps. 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 () |
Updates the bounding box to cover the area used in all time steps. More... | |
BoundingBox * | GetBoundingBoxInWorld () const |
Returns a bounding box that covers all time steps. More... | |
BoundingBox::BoundsArrayType | GetBoundsInWorld () const |
Returns the world bounds of the object that cover all time steps. More... | |
ScalarType | GetExtentInWorld (unsigned int direction) const |
Returns the Extend of the bounding in the given direction. More... | |
void | Update () |
Updates the geometry. More... | |
virtual void | UpdateWithoutBoundingBox () |
Updates everything except the Bounding box. More... | |
virtual void | ExecuteOperation (Operation *op) override |
Executes the given operation on all time steps. More... | |
Public Member Functions inherited from mitk::OperationActor | |
itkTypeMacroNoParent (OperationActor) virtual ~OperationActor() | |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
Static Public Member Functions inherited from mitk::TimeGeometry | |
static const char * | GetStaticNameOfClass () |
Protected Member Functions | |
virtual | ~ProportionalTimeGeometry () |
Protected Member Functions inherited from mitk::TimeGeometry | |
TimeGeometry () | |
virtual | ~TimeGeometry () |
Protected Attributes | |
std::vector< BaseGeometry::Pointer > | m_GeometryVector |
TimePointType | m_FirstTimePoint |
TimePointType | m_StepDuration |
Protected Attributes inherited from mitk::TimeGeometry | |
BoundingBox::Pointer | m_BoundingBox |
Contains a bounding box which includes all time steps. More... | |
Definition at line 42 of file mitkProportionalTimeGeometry.h.
typedef itk::SmartPointer<const Self> mitk::ProportionalTimeGeometry::ConstPointer |
Definition at line 45 of file mitkProportionalTimeGeometry.h.
Definition at line 45 of file mitkProportionalTimeGeometry.h.
Definition at line 45 of file mitkProportionalTimeGeometry.h.
Definition at line 48 of file mitkProportionalTimeGeometry.h.
Definition at line 45 of file mitkProportionalTimeGeometry.h.
mitk::ProportionalTimeGeometry::ProportionalTimeGeometry | ( | ) |
Definition at line 19 of file mitkProportionalTimeGeometry.cpp.
|
protectedvirtual |
Definition at line 23 of file mitkProportionalTimeGeometry.cpp.
void mitk::ProportionalTimeGeometry::ClearAllGeometries | ( | ) |
Definition at line 163 of file mitkProportionalTimeGeometry.cpp.
Pointer mitk::ProportionalTimeGeometry::Clone | ( | ) | const |
|
overridevirtual |
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.
Definition at line 34 of file mitkProportionalTimeGeometry.cpp.
Referenced by mitk::ProportionalTimeGeometryToXML::ToXML().
|
overridevirtual |
Expands the time geometry to the given number of time steps.
Initializes the new time steps with empty geometries if no timesteps in the geometry so far. Otherwise fills the new times steps with clones of the first time step. Shrinking is not supported.
Implements mitk::TimeGeometry.
Definition at line 173 of file mitkProportionalTimeGeometry.cpp.
References clone(), and mitk::Geometry3D::New().
Referenced by mitk::DWIHeadMotionCorrectionFilter::GenerateData(), and Valid_ImageExpandedByTimestep_ReturnsTrue().
|
inlineoverridevirtual |
Reimplemented from mitk::TimeGeometry.
Definition at line 45 of file mitkProportionalTimeGeometry.h.
|
virtual |
Reimplemented from mitk::TimeGeometry.
|
virtual |
|
overridevirtual |
Returns the geometry which corresponds to the given time step.
Returns a clone of the geometry which defines the given time step. If the given time step is invalid an null-pointer is returned.
Implements mitk::TimeGeometry.
Definition at line 148 of file mitkProportionalTimeGeometry.cpp.
|
overridevirtual |
Returns the geometry which corresponds to the given time point.
Returns the geometry which defines the given time point. If the given time point is invalid an null-pointer is returned.
If the returned geometry is changed this will affect the saved geometry.
Implements mitk::TimeGeometry.
Definition at line 135 of file mitkProportionalTimeGeometry.cpp.
|
overridevirtual |
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.
If the returned geometry is changed this will affect the saved geometry.
Implements mitk::TimeGeometry.
Definition at line 123 of file mitkProportionalTimeGeometry.cpp.
Referenced by mitk::DWIHeadMotionCorrectionFilter::GenerateData(), mitk::ProportionalTimeGeometryToXML::ToXML(), and Valid_ImageExpandedByTimestep_ReturnsTrue().
|
overridevirtual |
Returns the last time point for which the object is valid.
Gives the last time point for which a valid geometrie is saved in this time geometry. The time point is given in ms.
Implements mitk::TimeGeometry.
Definition at line 44 of file mitkProportionalTimeGeometry.cpp.
References max().
|
overridevirtual |
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.
Implements mitk::TimeGeometry.
Definition at line 76 of file mitkProportionalTimeGeometry.cpp.
|
overridevirtual |
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.
Implements mitk::TimeGeometry.
Definition at line 39 of file mitkProportionalTimeGeometry.cpp.
|
overridevirtual |
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.
Implements mitk::TimeGeometry.
Definition at line 60 of file mitkProportionalTimeGeometry.cpp.
References max().
|
inlinestatic |
Definition at line 45 of file mitkProportionalTimeGeometry.h.
Referenced by mitk::ItkImageIO::Read().
|
virtual |
|
overridevirtual |
Get the time bounds (in ms)
Implements mitk::TimeGeometry.
Definition at line 52 of file mitkProportionalTimeGeometry.cpp.
|
overridevirtual |
Get the time bounds for the given TimeStep (in ms)
Implements mitk::TimeGeometry.
Definition at line 84 of file mitkProportionalTimeGeometry.cpp.
|
overridevirtual |
Initilizes a new object with one time steps which contains an empty geometry.
Reimplemented from mitk::TimeGeometry.
Definition at line 27 of file mitkProportionalTimeGeometry.cpp.
Referenced by mitk::AutoCropImageFilter::GenerateOutputInformation().
void mitk::ProportionalTimeGeometry::Initialize | ( | const BaseGeometry * | geometry, |
TimeStepType | timeSteps | ||
) |
Initializes the TimeGeometry with equally time Step geometries.
Saves a copy for each time step.
Definition at line 229 of file mitkProportionalTimeGeometry.cpp.
References mitk::BaseGeometry::Clone(), max(), MITK_INFO, and Update().
void mitk::ProportionalTimeGeometry::Initialize | ( | TimeStepType | timeSteps | ) |
Initialize the TimeGeometry with empty BaseGeometry.
Definition at line 256 of file mitkProportionalTimeGeometry.cpp.
References mitk::Geometry3D::New().
|
overridevirtual |
Makes a deep copy of the current object.
Reimplemented from mitk::TimeGeometry.
Definition at line 204 of file mitkProportionalTimeGeometry.cpp.
|
overridevirtual |
Tests if all necessary informations are set and the object is valid.
Implements mitk::TimeGeometry.
Definition at line 155 of file mitkProportionalTimeGeometry.cpp.
|
overridevirtual |
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.
Implements mitk::TimeGeometry.
Definition at line 92 of file mitkProportionalTimeGeometry.cpp.
|
overridevirtual |
Test for the given time step if a geometry is availible.
Returns true if a geometry is defined for the given time step. Otherwise false is returned. The time step is defined as positiv number.
Implements mitk::TimeGeometry.
Definition at line 97 of file mitkProportionalTimeGeometry.cpp.
|
static |
Referenced by mitk::BaseData::BaseData(), mitk::BoundingObjectGroup::BoundingObjectGroup(), mitk::ExtrudedContour::BuildGeometry(), mitk::DataStorage::ComputeBoundingGeometry3D(), mitk::ContourSet::ContourSet(), mitk::ExtrudedContour::ExtrudedContour(), mitk::ProportionalTimeGeometryToXML::FromXML(), mitk::ItkImageFileReader::GenerateData(), mitk::ContourSet::Initialize(), mitk::Contour::Initialize(), mitk::Image::Initialize(), mitk::Image::InitializeByItk(), mitk::PlanarFigure::InitializeTimeGeometry(), mitk::RenderingManager::InitializeView(), mitk::RenderingManager::InitializeViews(), QmitkSliceWidget::InitWidget(), mitkBaseDataTest(), mitk::PlaneFit::PlaneFit(), mitk::ItkImageIO::Read(), mitk::LabelSetImageIO::Read(), mitk::PointSetReaderService::Read(), mitk::SlicedData::SetGeometry(), mitk::BaseData::SetGeometry(), mitk::PlaneGeometryData::SetPlaneGeometry(), mitk::SliceNavigationController::Update(), mitk::BoundingObjectGroup::UpdateOutputInformation(), and mitk::ContourSet::UpdateOutputInformation().
|
overridevirtual |
Reimplemented from mitk::TimeGeometry.
Definition at line 265 of file mitkProportionalTimeGeometry.cpp.
|
overridevirtual |
Replaces the geometry instances with clones of 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.
Implements mitk::TimeGeometry.
Definition at line 220 of file mitkProportionalTimeGeometry.cpp.
References mitk::BaseGeometry::Clone().
void mitk::ProportionalTimeGeometry::ReserveSpaceForGeometries | ( | TimeStepType | numberOfGeometries | ) |
Definition at line 168 of file mitkProportionalTimeGeometry.cpp.
|
virtual |
Referenced by mitk::ManualSegmentationToSurfaceFilter::GenerateData().
|
virtual |
Referenced by mitk::ManualSegmentationToSurfaceFilter::GenerateData().
|
overridevirtual |
Sets the geometry for the given time step.
This method does not afflict other time steps, since the geometry for each time step is saved individually.
Implements mitk::TimeGeometry.
Definition at line 194 of file mitkProportionalTimeGeometry.cpp.
Referenced by mitk::DWIHeadMotionCorrectionFilter::GenerateData(), and Valid_ImageExpandedByTimestep_ReturnsTrue().
|
overridevirtual |
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 negativ invalid time point is given always time step 0 is returned. If an positiv invalid time step is given an invalid time step will be returned.
Implements mitk::TimeGeometry.
Definition at line 115 of file mitkProportionalTimeGeometry.cpp.
|
overridevirtual |
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.
Implements mitk::TimeGeometry.
Definition at line 102 of file mitkProportionalTimeGeometry.cpp.
|
protected |
Definition at line 235 of file mitkProportionalTimeGeometry.h.
|
protected |
Definition at line 234 of file mitkProportionalTimeGeometry.h.
|
protected |
Definition at line 236 of file mitkProportionalTimeGeometry.h.