| 514 | } |
| 515 | |
| 516 | void vtkBoxWidget::HighlightFace(int cellId) |
| 517 | { |
| 518 | if (cellId >= 0) |
| 519 | { |
| 520 | vtkIdType npts; |
| 521 | const vtkIdType* pts; |
| 522 | vtkCellArray* cells = this->HexFacePolyData->GetPolys(); |
| 523 | this->HexPolyData->GetCellPoints(cellId, npts, pts); |
| 524 | cells->ReplaceCellAtId(0, npts, pts); |
| 525 | cells->Modified(); |
| 526 | this->CurrentHexFace = cellId; |
| 527 | this->HexFace->SetProperty(this->SelectedFaceProperty); |
| 528 | if (!this->CurrentHandle) |
| 529 | { |
| 530 | this->CurrentHandle = this->HexFace; |
| 531 | } |
| 532 | } |
| 533 | else |
| 534 | { |
| 535 | this->HexFace->SetProperty(this->FaceProperty); |
| 536 | this->CurrentHexFace = -1; |
| 537 | } |
| 538 | } |
| 539 | |
| 540 | void vtkBoxWidget::HighlightOutline(int highlight) |
| 541 | { |
no test coverage detected