| 483 | } |
| 484 | |
| 485 | int vtkBoxWidget::HighlightHandle(vtkProp* prop) |
| 486 | { |
| 487 | // first unhighlight anything picked |
| 488 | this->HighlightOutline(0); |
| 489 | if (this->CurrentHandle) |
| 490 | { |
| 491 | this->CurrentHandle->SetProperty(this->HandleProperty); |
| 492 | } |
| 493 | |
| 494 | this->CurrentHandle = static_cast<vtkActor*>(prop); |
| 495 | |
| 496 | if (this->CurrentHandle) |
| 497 | { |
| 498 | this->CurrentHandle->SetProperty(this->SelectedHandleProperty); |
| 499 | for (int i = 0; i < 6; i++) // find attached face |
| 500 | { |
| 501 | if (this->CurrentHandle == this->Handle[i]) |
| 502 | { |
| 503 | return i; |
| 504 | } |
| 505 | } |
| 506 | } |
| 507 | |
| 508 | if (this->CurrentHandle == this->Handle[6]) |
| 509 | { |
| 510 | this->HighlightOutline(1); |
| 511 | } |
| 512 | |
| 513 | return -1; |
| 514 | } |
| 515 | |
| 516 | void vtkBoxWidget::HighlightFace(int cellId) |
| 517 | { |
no test coverage detected