SoViewingMatrixElement Class Reference

Stores the current viewing matrix. More...

#include <Inventor/elements/SoViewingMatrixElement.h>

Inheritance diagram for SoViewingMatrixElement:
SoReplacedElement SoElement SoTypedObject

List of all members.

Public Member Functions

virtual void print (FILE *fp) const

Static Public Member Functions

static SoType getClassTypeId ()
static int getClassStackIndex ()
static void set (SoState *state, SoNode *node, const SbMatrix &matrix, SbBool sendToGL=TRUE)
static const SbMatrixget (SoState *state)

Detailed Description

Stores the current viewing matrix.

This element stores the current viewing matrix - the non-projection part of the matrix set up by the camera. Because most operations on this matrix are atomic, it is considered a non-accumulating element.


SoCamera, SoOrthographicCamera, SoPerspectiveCamera

Member Function Documentation

static const SbMatrix& SoViewingMatrixElement::get ( SoState state  )  [static]

Returns current matrix from the state.

static int SoViewingMatrixElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoReplacedElement.

static SoType SoViewingMatrixElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoReplacedElement.

virtual void SoViewingMatrixElement::print ( FILE *  fp  )  const [virtual]

Prints element (for debugging).

Reimplemented from SoReplacedElement.

static void SoViewingMatrixElement::set ( SoState state,
SoNode node,
const SbMatrix matrix,
SbBool  sendToGL = TRUE 
) [static]

Sets the view matrix to the given matrix.

This method will (indirectly) call glLoadMatrix with the new matrix unless the 'sendToGL' parameter is explicitly FALSE.

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

Open Inventor Toolkit reference manual, generated on 16 Sep 2021
Copyright © Thermo Fisher Scientific All rights reserved.