| 261 | } |
| 262 | |
| 263 | void 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 | |
| 290 | void mitk::ArbitraryTimeGeometry::AppendNewTimeStepClone(const BaseGeometry *geometry, |
| 291 | TimePointType minimumTimePoint, |