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

Method SetColorWindow

Interaction/Image/vtkResliceImageViewer.cxx:463–475  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

461
462//------------------------------------------------------------------------------
463void vtkResliceImageViewer::SetColorWindow(double w)
464{
465 double rmin = this->GetColorLevel() - 0.5 * fabs(w);
466 double rmax = rmin + fabs(w);
467 this->GetLookupTable()->SetRange(rmin, rmax);
468
469 this->WindowLevel->SetWindow(w);
470 if (vtkResliceCursorRepresentation* rep = vtkResliceCursorRepresentation::SafeDownCast(
471 this->ResliceCursorWidget->GetRepresentation()))
472 {
473 rep->SetWindowLevel(w, rep->GetLevel(), 1);
474 }
475}
476
477//------------------------------------------------------------------------------
478void vtkResliceImageViewer::SetColorLevel(double w)

Callers 1

SetInputDataMethod · 0.95

Calls 7

GetLookupTableMethod · 0.95
GetColorLevelMethod · 0.80
GetRepresentationMethod · 0.80
SetRangeMethod · 0.45
SetWindowMethod · 0.45
SetWindowLevelMethod · 0.45
GetLevelMethod · 0.45

Tested by

no test coverage detected