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

Method OnLeftButtonUp

Interaction/Widgets/vtkLineWidget.cxx:646–669  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

644
645//------------------------------------------------------------------------------
646void vtkLineWidget::OnLeftButtonUp()
647{
648 if (this->State == vtkLineWidget::Outside || this->State == vtkLineWidget::Start)
649 {
650 return;
651 }
652
653 this->State = vtkLineWidget::Start;
654 this->HighlightHandle(nullptr);
655 this->HighlightLine(0);
656
657 this->SizeHandles();
658
659 int forward = this->ForwardEvent(vtkCommand::LeftButtonReleaseEvent);
660 this->DisablePointWidget();
661
662 this->EventCallbackCommand->SetAbortFlag(1);
663 this->EndInteraction();
664 this->InvokeEvent(vtkCommand::EndInteractionEvent, nullptr);
665 if (!forward)
666 {
667 this->Interactor->Render();
668 }
669}
670
671//------------------------------------------------------------------------------
672void vtkLineWidget::OnMiddleButtonDown()

Callers 1

ProcessEventsMethod · 0.95

Calls 8

HighlightHandleMethod · 0.95
HighlightLineMethod · 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