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

Method Expand

Modules/Core/src/DataManagement/mitkArbitraryTimeGeometry.cpp:225–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void mitk::ArbitraryTimeGeometry::Expand( mitk::TimeStepType size )
226{
227 m_GeometryVector.reserve( size );
228
229 const mitk::TimeStepType lastIndex = this->CountTimeSteps() - 1;
230 const TimePointType minTP = this->GetMinimumTimePoint( lastIndex );
231 TimePointType maxTP = this->GetMaximumTimePoint( lastIndex );
232 const TimePointType duration = maxTP - minTP;
233
234 while (m_GeometryVector.size() < size)
235 {
236 m_GeometryVector.push_back( Geometry3D::New().GetPointer() );
237 m_MinimumTimePoints.push_back( maxTP );
238 maxTP += duration;
239 m_MaximumTimePoints.push_back( maxTP );
240 }
241}
242
243void mitk::ArbitraryTimeGeometry::ReplaceTimeStepGeometries(const BaseGeometry *geometry)
244{

Callers

nothing calls this directly

Calls 6

CountTimeStepsMethod · 0.95
GetMinimumTimePointMethod · 0.95
GetMaximumTimePointMethod · 0.95
GetPointerMethod · 0.80
NewFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected