Open Inventor Reference
SoGLViewingMatrixElement Class Reference

Element that stores the current viewing matrix in GL. More...

#include <Inventor/elements/SoGLViewingMatrixElement.h>

Inheritance diagram for SoGLViewingMatrixElement:
SoViewingMatrixElement SoReplacedElement SoElement

List of all members.

Public Member Functions

virtual void init (SoState *state)
 Override init() and push() to copy state pointer.
virtual void push (SoState *state)
 Pushes/pops element.
virtual void pop (SoState *state, const SoElement *prevTopElement)
 Override pop() method so side effects can occur in GL.

Static Public Member Functions

static void initClass ()
 Initializes the SoGLViewingMatrixElement class.
static uint32_t getNodeId (SoState *state)
 Used by SoGLModelMatrixElement when it need to figure out if this element has changed between a glPushMatrix() and a glPopMatrix():

Protected Member Functions

virtual void setElt (const SbMatrix &matrix)
 Sets the matrix in an instance. Has GL side effects.
virtual ~SoGLViewingMatrixElement ()

Detailed Description

Overrides the virtual methods on SoViewingMatrixElement to send the matrix to GL when necessary.

Note that this class relies on SoViewingMatrixElement to store the matrix in the instance.

Definition at line 74 of file SoGLViewingMatrixElement.h.


Constructor & Destructor Documentation

virtual SoGLViewingMatrixElement::~SoGLViewingMatrixElement ( ) [protected, virtual]

Member Function Documentation

static uint32_t SoGLViewingMatrixElement::getNodeId ( SoState state) [static]
virtual void SoGLViewingMatrixElement::init ( SoState state) [virtual]

Reimplemented from SoViewingMatrixElement.

static void SoGLViewingMatrixElement::initClass ( ) [static]

Reimplemented from SoViewingMatrixElement.

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

Reimplemented from SoElement.

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

Allows for side effects to occur. Default methods do nothing.

Reimplemented from SoElement.

virtual void SoGLViewingMatrixElement::setElt ( const SbMatrix matrix) [protected, virtual]

Reimplemented from SoViewingMatrixElement.


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