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

Method Expand

Modules/ContourModel/src/DataManagement/mitkContourModel.cpp:528–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526}
527
528void mitk::ContourModel::Expand(unsigned int timeSteps)
529{
530 std::size_t oldSize = this->m_ContourSeries.size();
531
532 if (static_cast<std::size_t>(timeSteps) > oldSize)
533 {
534 Superclass::Expand(timeSteps);
535
536 // insert contours for each new timestep
537 for (std::size_t i = oldSize; i < static_cast<std::size_t>(timeSteps); i++)
538 {
539 m_ContourSeries.push_back(ContourElement::New());
540 }
541
542 this->InvokeEvent(ContourModelExpandTimeBoundsEvent());
543 }
544}
545
546void mitk::ContourModel::SetRequestedRegionToLargestPossibleRegion()
547{

Callers 5

ReadPointsMethod · 0.45
GenerateDataMethod · 0.45
TestAddVertexFunction · 0.45
TestClearFunction · 0.45

Calls 2

NewFunction · 0.50
sizeMethod · 0.45

Tested by 2

TestAddVertexFunction · 0.36
TestClearFunction · 0.36