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

Method GetMatrix

Rendering/ContextOpenGL2/vtkOpenGLContextDevice2D.cxx:2046–2064  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2044
2045//------------------------------------------------------------------------------
2046void vtkOpenGLContextDevice2D::GetMatrix(vtkMatrix3x3* m)
2047{
2048 assert("pre: non_null" && m != nullptr);
2049 // We must construct a 4x4 matrix from the 3x3 matrix for OpenGL
2050 double* M = m->GetData();
2051 double* matrix = this->ModelMatrix->GetMatrix()->Element[0];
2052
2053 M[0] = matrix[0];
2054 M[1] = matrix[1];
2055 M[2] = matrix[3];
2056 M[3] = matrix[4];
2057 M[4] = matrix[5];
2058 M[5] = matrix[7];
2059 M[6] = matrix[12];
2060 M[7] = matrix[13];
2061 M[8] = matrix[15];
2062
2063 m->Modified();
2064}
2065
2066//------------------------------------------------------------------------------
2067void vtkOpenGLContextDevice2D::PushMatrix()

Callers 8

GetProjectionMatrixMethod · 0.45
GetModelMatrixMethod · 0.45
SetMatricesMethod · 0.45
DrawStringMethod · 0.45
TransformPathMethod · 0.45
TransformPointMethod · 0.45
TransformSizeMethod · 0.45

Calls 3

assertFunction · 0.50
GetDataMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected