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

Method OnRightButtonUp

Interaction/Widgets/vtkBrokenLineWidget.cxx:729–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727}
728
729void vtkBrokenLineWidget::OnRightButtonUp()
730{
731 if (this->State == vtkBrokenLineWidget::Outside || this->State == vtkBrokenLineWidget::Start)
732 {
733 return;
734 }
735
736 if (this->State == vtkBrokenLineWidget::Inserting)
737 {
738 this->InsertHandleOnLine(this->LastPickPosition);
739 }
740 else if (this->State == vtkBrokenLineWidget::Erasing)
741 {
742 int index = this->CurrentHandleIndex;
743 this->CurrentHandleIndex = this->HighlightHandle(nullptr);
744 this->EraseHandle(index);
745 }
746
747 this->State = vtkBrokenLineWidget::Start;
748 this->HighlightLine(0);
749
750 this->SizeHandles();
751
752 this->EventCallbackCommand->SetAbortFlag(1);
753 this->EndInteraction();
754 this->InvokeEvent(vtkCommand::EndInteractionEvent, nullptr);
755 this->Interactor->Render();
756}
757
758void vtkBrokenLineWidget::OnMouseMove()
759{

Callers 1

ProcessEventsHandlerMethod · 0.95

Calls 8

InsertHandleOnLineMethod · 0.95
HighlightHandleMethod · 0.95
EraseHandleMethod · 0.95
HighlightLineMethod · 0.95
SizeHandlesMethod · 0.95
InvokeEventMethod · 0.80
RenderMethod · 0.65
EndInteractionMethod · 0.45

Tested by

no test coverage detected