------------------------------------------------------------------------------
| 492 | |
| 493 | //------------------------------------------------------------------------------ |
| 494 | vtkMTimeType vtkImageStack::GetMTime() |
| 495 | { |
| 496 | vtkMTimeType mTime = this->Superclass::GetMTime(); |
| 497 | vtkMTimeType t; |
| 498 | |
| 499 | // Get the max mtime of all the images |
| 500 | vtkCollectionSimpleIterator pit; |
| 501 | this->Images->InitTraversal(pit); |
| 502 | vtkImageSlice* image = nullptr; |
| 503 | while ((image = this->Images->GetNextImage(pit)) != nullptr) |
| 504 | { |
| 505 | t = image->GetMTime(); |
| 506 | mTime = (t < mTime ? mTime : t); |
| 507 | } |
| 508 | |
| 509 | return mTime; |
| 510 | } |
| 511 | |
| 512 | //------------------------------------------------------------------------------ |
| 513 | vtkMTimeType vtkImageStack::GetRedrawMTime() |
no test coverage detected