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

Method AppendNewTimeStep

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

Source from the content-addressed store, hash-verified

261}
262
263void mitk::ArbitraryTimeGeometry::AppendNewTimeStep(BaseGeometry *geometry,
264 TimePointType minimumTimePoint,
265 TimePointType maximumTimePoint)
266{
267 if ( !geometry )
268 {
269 mitkThrow() << "Cannot append geometry to time geometry. Invalid geometry passed (nullptr pointer).";
270 }
271
272 if (maximumTimePoint < minimumTimePoint)
273 {
274 mitkThrow() << "Cannot append geometry to time geometry. Time bound conflict. Maximum time point ("<<maximumTimePoint<<") is smaller than minimum time point ("<<minimumTimePoint<<").";
275 }
276
277 if ( !m_GeometryVector.empty() )
278 {
279 if ( m_MaximumTimePoints.back() > minimumTimePoint )
280 {
281 mitkThrow() << "Cannot append geometry to time geometry. Time bound conflict new time point and currently last time point overlap.";
282 }
283 }
284
285 m_GeometryVector.push_back( geometry );
286 m_MinimumTimePoints.push_back( minimumTimePoint );
287 m_MaximumTimePoints.push_back( maximumTimePoint );
288}
289
290void mitk::ArbitraryTimeGeometry::AppendNewTimeStepClone(const BaseGeometry *geometry,
291 TimePointType minimumTimePoint,

Callers 5

InitializeMethod · 0.95
CreateWorldGeometryMethod · 0.45
setUpMethod · 0.45

Calls 2

backMethod · 0.80
emptyMethod · 0.45

Tested by 1

setUpMethod · 0.36