MCPcopy Create free account
hub / github.com/Kitware/VTK / HighlightFace

Method HighlightFace

Interaction/Widgets/vtkBoxWidget.cxx:516–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514}
515
516void 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
540void vtkBoxWidget::HighlightOutline(int highlight)
541{

Callers 4

OnLeftButtonDownMethod · 0.95
OnLeftButtonUpMethod · 0.95
OnMiddleButtonDownMethod · 0.95
OnMiddleButtonUpMethod · 0.95

Calls 5

GetPolysMethod · 0.80
ReplaceCellAtIdMethod · 0.80
GetCellPointsMethod · 0.45
ModifiedMethod · 0.45
SetPropertyMethod · 0.45

Tested by

no test coverage detected