Provided by: libcoin60-doc_3.1.3-2_all

**NAME**

SoGLViewingMatrixElement - TheSoGLViewingMatrixElementclass is used to store the current viewing matrix. The viewing matrix contains the inverse camera coordinate system matrix. The camera coordinate system is built from the field values in the currentSoCamera(currently eitherSoPerspectiveCameraorSoOrthographicCamera) and any transformations prior to the camera in the scene graph.

**SYNOPSIS**

#include <Inventor/elements/SoGLViewingMatrixElement.h> InheritsSoViewingMatrixElement.PublicMemberFunctionsvirtual voidinit(SoState*state)FIXME:writedoc.virtual voidpush(SoState*state) virtual voidpop(SoState*state, constSoElement*prevTopElement)StaticPublicMemberFunctionsstatic voidinitClass(void) static uint32_tgetNodeId(SoState*const state) staticSbMatrixgetResetMatrix(SoState*state)ProtectedMemberFunctionsvirtual~SoGLViewingMatrixElement() virtual voidsetElt(constSbMatrix&matrix)

**Detailed** **Description**

TheSoGLViewingMatrixElementclass is used to store the current viewing matrix. The viewing matrix contains the inverse camera coordinate system matrix. The camera coordinate system is built from the field values in the currentSoCamera(currently eitherSoPerspectiveCameraorSoOrthographicCamera) and any transformations prior to the camera in the scene graph.

**Constructor** **&** **Destructor** **Documentation**

SoGLViewingMatrixElement::~SoGLViewingMatrixElement(void)[protected,virtual]Thedestructor.

**Member** **Function** **Documentation**

voidSoGLViewingMatrixElement::initClass(void)[static]ThisstaticmethodinitializesstaticdatafortheSoViewingMatrixElementclass.Reimplemented fromSoViewingMatrixElement.uint32_tSoGLViewingMatrixElement::getNodeId(SoState*conststate)[static]Returnsthenodeidofthecurrentcameranode.ThisisusedbySoGLModelMatrixElementtodetectachangeintheviewingmatrixinsideanSoTransformSeparatornode.SbMatrixSoGLViewingMatrixElement::getResetMatrix(SoState*state)[static]ReturnsthematrixthatshouldbeusedbySoGLModelMatrixElementwhenthetransformationshouldberesetduringtraversal(typicallywhenencounteringanSoResetTransformnode).Itisnotsufficienttosimplyloadtheviewingmatrix,sincethetransformationsthatwereappliedbeforethecameraneedstobeaccountedfor.This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.Since:Coin 2.0voidSoGLViewingMatrixElement::setElt(constSbMatrix&matrix)[protected,virtual]Setsthecurrentviewingmatrix.Reimplemented fromSoViewingMatrixElement.

**Author**

Generated automatically by Doxygen for Coin from the source code.