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

Method StopCursor

Interaction/Widgets/vtkImagePlaneWidget.cxx:854–870  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

852
853//------------------------------------------------------------------------------
854void vtkImagePlaneWidget::StopCursor()
855{
856 if (this->State == vtkImagePlaneWidget::Outside || this->State == vtkImagePlaneWidget::Start)
857 {
858 return;
859 }
860
861 this->State = vtkImagePlaneWidget::Start;
862 this->HighlightPlane(0);
863 this->ActivateCursor(0);
864 this->ActivateText(0);
865
866 this->EventCallbackCommand->SetAbortFlag(1);
867 this->EndInteraction();
868 this->InvokeEvent(vtkCommand::EndInteractionEvent, nullptr);
869 this->Interactor->Render();
870}
871
872//------------------------------------------------------------------------------
873void vtkImagePlaneWidget::StartSliceMotion()

Callers 3

OnLeftButtonUpMethod · 0.95
OnMiddleButtonUpMethod · 0.95
OnRightButtonUpMethod · 0.95

Calls 6

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

Tested by

no test coverage detected