------------------------------------------------------------------------------
| 476 | |
| 477 | //------------------------------------------------------------------------------ |
| 478 | void vtkResliceImageViewer::SetColorLevel(double w) |
| 479 | { |
| 480 | double rmin = w - 0.5 * fabs(this->GetColorWindow()); |
| 481 | double rmax = rmin + fabs(this->GetColorWindow()); |
| 482 | this->GetLookupTable()->SetRange(rmin, rmax); |
| 483 | |
| 484 | this->WindowLevel->SetLevel(w); |
| 485 | if (vtkResliceCursorRepresentation* rep = vtkResliceCursorRepresentation::SafeDownCast( |
| 486 | this->ResliceCursorWidget->GetRepresentation())) |
| 487 | { |
| 488 | rep->SetWindowLevel(rep->GetWindow(), w, 1); |
| 489 | } |
| 490 | } |
| 491 | |
| 492 | //------------------------------------------------------------------------------ |
| 493 | void vtkResliceImageViewer::Reset() |
no test coverage detected