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

Method StopWindowLevel

Interaction/Widgets/vtkImagePlaneWidget.cxx:1012–1030  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1010
1011//------------------------------------------------------------------------------
1012void vtkImagePlaneWidget::StopWindowLevel()
1013{
1014 if (this->State == vtkImagePlaneWidget::Outside || this->State == vtkImagePlaneWidget::Start)
1015 {
1016 return;
1017 }
1018
1019 this->State = vtkImagePlaneWidget::Start;
1020 this->HighlightPlane(0);
1021 this->ActivateText(0);
1022
1023 this->EventCallbackCommand->SetAbortFlag(1);
1024 this->EndInteraction();
1025
1026 double wl[2] = { this->CurrentWindow, this->CurrentLevel };
1027 this->InvokeEvent(vtkCommand::EndWindowLevelEvent, wl);
1028
1029 this->Interactor->Render();
1030}
1031
1032//------------------------------------------------------------------------------
1033void vtkImagePlaneWidget::OnMouseMove()

Callers 3

OnLeftButtonUpMethod · 0.95
OnMiddleButtonUpMethod · 0.95
OnRightButtonUpMethod · 0.95

Calls 5

HighlightPlaneMethod · 0.95
ActivateTextMethod · 0.95
InvokeEventMethod · 0.80
RenderMethod · 0.65
EndInteractionMethod · 0.45

Tested by

no test coverage detected