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

Method SetSlice

Interaction/Image/vtkImageViewer2.cxx:232–257  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

230
231//------------------------------------------------------------------------------
232void vtkImageViewer2::SetSlice(int slice)
233{
234 int* range = this->GetSliceRange();
235 if (range)
236 {
237 if (slice < range[0])
238 {
239 slice = range[0];
240 }
241 else if (slice > range[1])
242 {
243 slice = range[1];
244 }
245 }
246
247 if (this->Slice == slice)
248 {
249 return;
250 }
251
252 this->Slice = slice;
253 this->Modified();
254
255 this->UpdateDisplayExtent();
256 this->Render();
257}
258
259//------------------------------------------------------------------------------
260void vtkImageViewer2::SetSliceOrientation(int orientation)

Callers 6

TestTIFFReaderFunction · 0.45
TestDICOMImageReaderFunction · 0.45
IncrementSliceMethod · 0.45

Calls 4

GetSliceRangeMethod · 0.95
UpdateDisplayExtentMethod · 0.95
RenderMethod · 0.95
ModifiedMethod · 0.45

Tested by 4

TestTIFFReaderFunction · 0.36
TestDICOMImageReaderFunction · 0.36