| 223 | } |
| 224 | |
| 225 | void 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 | |
| 243 | void mitk::ArbitraryTimeGeometry::ReplaceTimeStepGeometries(const BaseGeometry *geometry) |
| 244 | { |
nothing calls this directly
no test coverage detected