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

Method OnRightButtonUp

Interaction/Widgets/vtkSplineWidget.cxx:786–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784}
785
786void vtkSplineWidget::OnRightButtonUp()
787{
788 if (this->State == vtkSplineWidget::Outside || this->State == vtkSplineWidget::Start)
789 {
790 return;
791 }
792
793 if (this->State == vtkSplineWidget::Inserting)
794 {
795 this->InsertHandleOnLine(this->LastPickPosition);
796 }
797 else if (this->State == vtkSplineWidget::Erasing)
798 {
799 int index = this->CurrentHandleIndex;
800 this->CurrentHandleIndex = this->HighlightHandle(nullptr);
801 this->EraseHandle(index);
802 }
803
804 this->State = vtkSplineWidget::Start;
805 this->HighlightLine(0);
806
807 this->SizeHandles();
808
809 this->EventCallbackCommand->SetAbortFlag(1);
810 this->EndInteraction();
811 this->InvokeEvent(vtkCommand::EndInteractionEvent, nullptr);
812 this->Interactor->Render();
813}
814
815void vtkSplineWidget::OnMouseMove()
816{

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