------------------------------------------------------------------------------
| 181 | |
| 182 | //------------------------------------------------------------------------------ |
| 183 | void vtkImageViewer2::GetSliceRange(int& min, int& max) |
| 184 | { |
| 185 | vtkAlgorithm* input = this->GetInputAlgorithm(); |
| 186 | if (input) |
| 187 | { |
| 188 | input->UpdateInformation(); |
| 189 | int* w_ext = |
| 190 | input->GetOutputInformation(0)->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT()); |
| 191 | min = w_ext[this->SliceOrientation * 2]; |
| 192 | max = w_ext[this->SliceOrientation * 2 + 1]; |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | //------------------------------------------------------------------------------ |
| 197 | int* vtkImageViewer2::GetSliceRange() |
no test coverage detected