MCPcopy Create free account
hub / github.com/MITK/MITK / GetGeometryForTimeStep

Function GetGeometryForTimeStep

Wrapping/Python/mitk/GeometryHelpers.cpp:17–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include <mitkExceptionMacro.h>
16
17mitk::BaseGeometry::Pointer GetGeometryForTimeStep(mitk::TimeGeometry* tg, mitk::TimeStepType timeStep)
18{
19 if (tg == nullptr)
20 mitkThrow() << "No time geometry available";
21
22 auto geom = tg->GetGeometryForTimeStep(timeStep);
23
24 if (geom.IsNull())
25 mitkThrow() << "Invalid time step: " << timeStep;
26
27 return geom;
28}
29
30mitk::BaseGeometry::ConstPointer GetConstGeometryForTimeStep(const mitk::TimeGeometry* tg, mitk::TimeStepType timeStep)
31{

Callers 8

UpdateBoundingBoxMethod · 0.85
ExecuteOperationMethod · 0.85
PrintSelfMethod · 0.85
PrintSelfMethod · 0.85
BindGeometryAccessorsFunction · 0.85
SetSpacingFunction · 0.85
SetOriginFunction · 0.85
SetDirectionFunction · 0.85

Calls 2

IsNullMethod · 0.45

Tested by

no test coverage detected