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

Method HighlightHandle

Interaction/Widgets/vtkBoxWidget.cxx:485–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485int 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
516void vtkBoxWidget::HighlightFace(int cellId)
517{

Callers 12

OnLeftButtonDownMethod · 0.95
OnLeftButtonUpMethod · 0.95
OnMiddleButtonDownMethod · 0.95
OnMiddleButtonUpMethod · 0.95
SetNumberOfHandlesMethod · 0.45
SetParametricSplineMethod · 0.45
RebuildRepresentationMethod · 0.45
UpdateConfigurationMethod · 0.45
SetNumberOfHandlesMethod · 0.45
RebuildRepresentationMethod · 0.45
SetNumberOfHandlesMethod · 0.45
SetParametricSplineMethod · 0.45

Calls 2

HighlightOutlineMethod · 0.95
SetPropertyMethod · 0.45

Tested by

no test coverage detected