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

Method GetDisplayPosition

Interaction/Widgets/vtkHandleRepresentation.cxx:61–76  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

59
60//------------------------------------------------------------------------------
61void vtkHandleRepresentation::GetDisplayPosition(double pos[2])
62{
63 // The position is really represented in the world position; the display
64 // position is a convenience to go back and forth between coordinate systems.
65 // Also note that the window size may have changed, so it's important to
66 // update the display position.
67 if (this->Renderer &&
68 (this->WorldPositionTime > this->DisplayPositionTime ||
69 (this->Renderer->GetVTKWindow() &&
70 this->Renderer->GetVTKWindow()->GetMTime() > this->BuildTime)))
71 {
72 int* p = this->WorldPosition->GetComputedDisplayValue(this->Renderer);
73 this->DisplayPosition->SetValue(p[0], p[1], 0);
74 }
75 this->DisplayPosition->GetValue(pos);
76}
77
78//------------------------------------------------------------------------------
79double* vtkHandleRepresentation::GetDisplayPosition()

Callers 15

PrintSelfMethod · 0.95
BuildRepresentationMethod · 0.80

Calls 5

GetVTKWindowMethod · 0.80
GetMTimeMethod · 0.45
SetValueMethod · 0.45
GetValueMethod · 0.45

Tested by 1

ExecuteMethod · 0.64