| 415 | } |
| 416 | |
| 417 | bool vtkGraphItem::MouseButtonPressEvent(const vtkContextMouseEvent& event) |
| 418 | { |
| 419 | this->Tooltip->SetVisible(false); |
| 420 | if (event.GetButton() == vtkContextMouseEvent::LEFT_BUTTON) |
| 421 | { |
| 422 | vtkIdType hitVertex = this->HitVertex(event.GetPos()); |
| 423 | this->Layout->SetFixed(hitVertex); |
| 424 | if (hitVertex >= 0 && this->Internal->Interactor) |
| 425 | { |
| 426 | this->Layout->SetAlpha(this->Internal->LayoutAlphaStart); |
| 427 | if (!this->Internal->Animating && this->Internal->Interactor) |
| 428 | { |
| 429 | this->StartLayoutAnimation(this->Internal->Interactor); |
| 430 | } |
| 431 | } |
| 432 | return true; |
| 433 | } |
| 434 | return false; |
| 435 | } |
| 436 | |
| 437 | bool vtkGraphItem::MouseButtonReleaseEvent(const vtkContextMouseEvent& event) |
| 438 | { |
nothing calls this directly
no test coverage detected