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

Method TransformPoint

Rendering/ContextOpenGL2/vtkOpenGLContextDevice2D.cxx:2957–2966  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2955
2956//------------------------------------------------------------------------------
2957void vtkOpenGLContextDevice2D::TransformPoint(float& x, float& y) const
2958{
2959 double modelview[16];
2960 vtkMatrix4x4::DeepCopy(modelview, this->ModelMatrix->GetMatrix());
2961
2962 float inX = x;
2963 float inY = y;
2964 x = modelview[0] * inX + modelview[1] * inY + modelview[3];
2965 y = modelview[4] * inX + modelview[5] * inY + modelview[7];
2966}
2967
2968//------------------------------------------------------------------------------
2969void vtkOpenGLContextDevice2D::TransformSize(float& dx, float& dy) const

Callers 3

DrawStringMethod · 0.95
DrawImageGL2PSMethod · 0.95
DrawWedgeGL2PSMethod · 0.95

Calls 2

DeepCopyFunction · 0.50
GetMatrixMethod · 0.45

Tested by

no test coverage detected