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

Method SetTimeGrid

Modules/ModelFit/src/Models/mitkModelBase.cpp:162–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160
161
162void mitk::ModelBase::SetTimeGrid(const TimeGridType& grid)
163{
164 itkDebugMacro("setting TimeGrid to " << grid);
165
166 if (grid.GetSize() == 0)
167 {
168 itkExceptionMacro("Time Grid Vector is empty! Set valid time grid");
169 }
170
171 if (this->m_TimeGrid != grid)
172 {
173 this->m_TimeGrid = grid;
174 this->Modified();
175 }
176}
177
178void mitk::ModelBase::PrintSelf(std::ostream& os, ::itk::Indent indent) const
179{

Calls 2

GetSizeMethod · 0.45
ModifiedMethod · 0.45