| 67 | } |
| 68 | |
| 69 | void mitk::SurfaceStampImageFilter::GenerateData() |
| 70 | { |
| 71 | mitk::Image::ConstPointer inputImage = this->GetInput(); |
| 72 | |
| 73 | if (inputImage.IsNull()) |
| 74 | return; |
| 75 | |
| 76 | mitk::Image::Pointer outputImage = this->GetOutput(); |
| 77 | if (outputImage->IsInitialized() == false) |
| 78 | return; |
| 79 | |
| 80 | if (m_Surface.IsNull()) |
| 81 | return; |
| 82 | |
| 83 | mitk::Image::RegionType outputRegion = outputImage->GetRequestedRegion(); |
| 84 | |
| 85 | int tstart = outputRegion.GetIndex(3); |
| 86 | int tmax = tstart + outputRegion.GetSize(3); |
| 87 | |
| 88 | if (tmax > 0) |
| 89 | { |
| 90 | int t; |
| 91 | for (t = tstart; t < tmax; ++t) |
| 92 | { |
| 93 | this->SurfaceStamp(t); |
| 94 | } |
| 95 | } |
| 96 | else |
| 97 | { |
| 98 | this->SurfaceStamp(0); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | void mitk::SurfaceStampImageFilter::SurfaceStamp(int time) |
| 103 | { |
nothing calls this directly
no test coverage detected