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

Function GetConstGeometryForTimeStep

Wrapping/Python/mitk/GeometryHelpers.cpp:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30mitk::BaseGeometry::ConstPointer GetConstGeometryForTimeStep(const mitk::TimeGeometry* tg, mitk::TimeStepType timeStep)
31{
32 if (tg == nullptr)
33 mitkThrow() << "No time geometry available";
34
35 auto geom = tg->GetGeometryForTimeStep(timeStep);
36
37 if (geom.IsNull())
38 mitkThrow() << "Invalid time step: " << timeStep;
39
40 return mitk::BaseGeometry::ConstPointer(geom.GetPointer());
41}
42
43std::tuple<double, double, double> GetSpacing(const mitk::TimeGeometry* tg, mitk::TimeStepType t)
44{

Callers 3

GetSpacingFunction · 0.85
GetOriginFunction · 0.85
GetDirectionFunction · 0.85

Calls 3

GetPointerMethod · 0.80
IsNullMethod · 0.45

Tested by

no test coverage detected