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

Method OnRightButtonUp

Interaction/Widgets/vtkSphereWidget.cxx:526–545  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

524
525//------------------------------------------------------------------------------
526void vtkSphereWidget::OnRightButtonUp()
527{
528 if (this->State == vtkSphereWidget::Outside)
529 {
530 return;
531 }
532
533 this->State = vtkSphereWidget::Start;
534 this->HighlightSphere(0);
535 this->HighlightHandle(0);
536 this->SizeHandles();
537
538 this->EventCallbackCommand->SetAbortFlag(1);
539 this->EndInteraction();
540 this->InvokeEvent(vtkCommand::EndInteractionEvent, nullptr);
541 if (this->Interactor)
542 {
543 this->Interactor->Render();
544 }
545}
546
547//------------------------------------------------------------------------------
548// Loop through all points and translate them

Callers 1

ProcessEventsMethod · 0.95

Calls 6

HighlightSphereMethod · 0.95
HighlightHandleMethod · 0.95
SizeHandlesMethod · 0.95
InvokeEventMethod · 0.80
RenderMethod · 0.65
EndInteractionMethod · 0.45

Tested by

no test coverage detected