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

Method ComputeWorldToDisplay

Rendering/Core/vtkInteractorObserver.cxx:265–271  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Transform from world to display coordinates. displayPt has to be allocated as 3 vector

Source from the content-addressed store, hash-verified

263// Transform from world to display coordinates.
264// displayPt has to be allocated as 3 vector
265void vtkInteractorObserver::ComputeWorldToDisplay(
266 vtkRenderer* ren, double x, double y, double z, double displayPt[3])
267{
268 ren->SetWorldPoint(x, y, z, 1.0);
269 ren->WorldToDisplay();
270 ren->GetDisplayPoint(displayPt);
271}
272
273//------------------------------------------------------------------------------
274// Description:

Callers 15

OnMouseMoveMethod · 0.80
OnMouseMoveMethod · 0.80
OnMouseMoveMethod · 0.80
OnMouseMoveMethod · 0.80
OnMouseMoveMethod · 0.80
OnMouseMoveMethod · 0.80
SizeHandlesMethod · 0.80
OnMouseMoveMethod · 0.80
OnMouseMoveMethod · 0.80
OnMouseMoveMethod · 0.80
OnMouseMoveMethod · 0.80
RotateMethod · 0.80

Calls 1

WorldToDisplayMethod · 0.45

Tested by 1

getMotionFunction · 0.64