| 727 | } |
| 728 | |
| 729 | void 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 | |
| 758 | void vtkBrokenLineWidget::OnMouseMove() |
| 759 | { |
no test coverage detected