SoGLModelMatrixElement Class Reference
[Elements]

Stores the current model matrix in GL. More...

#include <Inventor/elements/SoGLModelMatrixElement.h>

Inheritance diagram for SoGLModelMatrixElement:
SoModelMatrixElement SoAccumulatedElement SoElement SoTypedObject

List of all members.

Public Member Functions

virtual void push (SoState *state)
virtual void pop (SoState *state, const SoElement *prevTopElement)

Static Public Member Functions

static SoType getClassTypeId ()
static int getClassStackIndex ()

Detailed Description

Stores the current model matrix in GL.

This element stores the current model matrix in GL. Overrides the virtual methods on SoModelMatrixElement to send the matrix to GL when necessary.

NOTE: This class does not exist in Open Inventor 10.0 and later.

Note that this class relies on SoModelMatrixElement to store the matrix in the instance. This is less expensive in the long run than asking GL for the matrix when it is needed.

Because GL stores the model and view matrices in one matrix, this has to do a little extra work when setting the model matrix to identity or another matrix. (It has to set the GL model-view matrix correctly.)

SEE ALSO

SoModelMatrixElement

Deprecated:

Deprecated since Open Inventor 9620
SoGLModelMatrixElement is no longer supported, use equivalent SoModelMatrixElement.

Member Function Documentation

static int SoGLModelMatrixElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoModelMatrixElement.

static SoType SoGLModelMatrixElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoModelMatrixElement.

virtual void SoGLModelMatrixElement::pop ( SoState state,
const SoElement prevTopElement 
) [virtual]

Overrides pop() method so side effects can occur in GL.

virtual void SoGLModelMatrixElement::push ( SoState state  )  [virtual]

Overrides push() method so side effects can occur in GL.

Reimplemented from SoModelMatrixElement.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/