| 784 | } |
| 785 | |
| 786 | void 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 | |
| 815 | void vtkSplineWidget::OnMouseMove() |
| 816 | { |
no test coverage detected