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

Method PlaceTooltip

Views/Infovis/vtkGraphItem.cxx:465–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465void vtkGraphItem::PlaceTooltip(vtkIdType v)
466{
467 if (v >= 0)
468 {
469 vtkVector2f pos = this->Internal->VertexPositions[v];
470 this->Tooltip->SetPosition(
471 pos[0] + 5 / this->Internal->CurrentScale[0], pos[1] + 5 / this->Internal->CurrentScale[1]);
472 }
473 else
474 {
475 this->Tooltip->SetVisible(false);
476 }
477}
478
479void vtkGraphItem::PrintSelf(ostream& os, vtkIndent indent)
480{

Callers 3

ProcessEventsMethod · 0.95
MouseMoveEventMethod · 0.95
MouseWheelEventMethod · 0.95

Calls 1

SetPositionMethod · 0.45

Tested by

no test coverage detected