MCPcopy Create free account
hub / github.com/OctoMap/octomap / getModelViewMatrix

Method getModelViewMatrix

octovis/src/extern/QGLViewer/camera.cpp:651–658  ·  view source on GitHub ↗

! Fills \p m with the Camera modelView matrix values. First calls computeModelViewMatrix() to define the Camera modelView matrix. Note that this matrix may \e not be the one you would get from a \c glGetDoublev(GL_MODELVIEW_MATRIX, m). It actually represents the state of the \c GL_MODELVIEW after QGLViewer::preDraw(), at the \e beginning of QGLViewer::draw(). It converts from the world to t

Source from the content-addressed store, hash-verified

649
650 See also getProjectionMatrix() and setFromModelViewMatrix(). */
651void Camera::getModelViewMatrix(GLdouble m[16]) const
652{
653 // May not be needed, but easier like this.
654 // Prevents from retrieving matrix in stereo mode -> overwrites shifted value.
655 computeModelViewMatrix();
656 for (unsigned short i=0; i<16; ++i)
657 m[i] = modelViewMatrix_[i];
658}
659
660
661/*! Overloaded getModelViewMatrix(GLdouble m[16]) method using a \c GLfloat array instead. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected