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

Method InitializeTimeGeometry

Modules/Core/src/DataManagement/mitkBaseData.cpp:44–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void mitk::BaseData::InitializeTimeGeometry(unsigned int timeSteps)
45{
46 mitk::Geometry3D::Pointer geo3D = mitk::Geometry3D::New();
47 mitk::BaseGeometry::Pointer baseGeo = dynamic_cast<BaseGeometry *>(geo3D.GetPointer());
48 baseGeo->Initialize();
49
50 // The geometry is propagated automatically to the other items,
51 // if EvenlyTimed is true...
52 // Old timeGeometry->InitializeEvenlyTimed( g3d.GetPointer(), timeSteps );
53
54 TimeGeometry::Pointer timeGeometry = this->GetTimeGeometry();
55 timeGeometry->Initialize();
56 timeGeometry->Expand(timeSteps);
57 for (TimeStepType step = 0; step < timeSteps; ++step)
58 {
59 timeGeometry->SetTimeStepGeometry(baseGeo.GetPointer(), step);
60 }
61}
62
63void mitk::BaseData::UpdateOutputInformation()
64{

Callers 5

ExpandMethod · 0.95
InitializeMethod · 0.45
InitializeEmptyMethod · 0.45
ContourModelSetMethod · 0.45
InitializeEmptyMethod · 0.45

Calls 5

GetPointerMethod · 0.80
NewFunction · 0.50
InitializeMethod · 0.45
ExpandMethod · 0.45
SetTimeStepGeometryMethod · 0.45

Tested by

no test coverage detected