| 271 | } |
| 272 | |
| 273 | void mitk::ContourModel::SetClosed(bool isClosed, TimeStepType timestep) |
| 274 | { |
| 275 | if (!this->IsEmptyTimeStep(timestep)) |
| 276 | { |
| 277 | this->m_ContourSeries[timestep]->SetClosed(isClosed); |
| 278 | this->InvokeEvent(ContourModelClosedEvent()); |
| 279 | this->Modified(); |
| 280 | this->m_UpdateBoundingBox = true; |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | bool mitk::ContourModel::IsEmptyTimeStep(unsigned int t) const |
| 285 | { |