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

Method OnMiddleButtonUp

Interaction/Widgets/vtkLineWidget.cxx:731–754  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

729
730//------------------------------------------------------------------------------
731void vtkLineWidget::OnMiddleButtonUp()
732{
733 if (this->State == vtkLineWidget::Outside || this->State == vtkLineWidget::Start)
734 {
735 return;
736 }
737
738 this->State = vtkLineWidget::Start;
739 this->HighlightLine(0);
740 this->HighlightHandles(0);
741
742 this->SizeHandles();
743
744 int forward = this->ForwardEvent(vtkCommand::LeftButtonReleaseEvent);
745 this->DisablePointWidget();
746
747 this->EventCallbackCommand->SetAbortFlag(1);
748 this->EndInteraction();
749 this->InvokeEvent(vtkCommand::EndInteractionEvent, nullptr);
750 if (!forward)
751 {
752 this->Interactor->Render();
753 }
754}
755
756//------------------------------------------------------------------------------
757void vtkLineWidget::OnRightButtonDown()

Callers 1

ProcessEventsMethod · 0.95

Calls 8

HighlightLineMethod · 0.95
HighlightHandlesMethod · 0.95
SizeHandlesMethod · 0.95
ForwardEventMethod · 0.95
DisablePointWidgetMethod · 0.95
InvokeEventMethod · 0.80
RenderMethod · 0.65
EndInteractionMethod · 0.45

Tested by

no test coverage detected