MCPcopy Create free account
hub / github.com/Kitware/VTK / GetSliceRange

Method GetSliceRange

Interaction/Image/vtkImageViewer2.cxx:183–194  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

181
182//------------------------------------------------------------------------------
183void 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//------------------------------------------------------------------------------
197int* vtkImageViewer2::GetSliceRange()

Callers 10

GetSliceMinMethod · 0.95
GetSliceMaxMethod · 0.95
SetSliceMethod · 0.95
SetSliceOrientationMethod · 0.95
GetSliceRangeFunction · 0.80
RequestInformationMethod · 0.80
RequestUpdateExtentMethod · 0.80
vtkImageSlabExecuteFunction · 0.80
ThreadedRequestDataMethod · 0.80
PrintSelfMethod · 0.80

Calls 4

GetInputAlgorithmMethod · 0.95
UpdateInformationMethod · 0.45
GetMethod · 0.45
GetOutputInformationMethod · 0.45

Tested by

no test coverage detected