SoProjectionMatrixElement Class Reference
[Elements]

Stores the current projection matrix. More...

#include <Inventor/elements/SoProjectionMatrixElement.h>

Inheritance diagram for SoProjectionMatrixElement:
SoReplacedElement SoElement SoTypedObject SoGLProjectionMatrixElement

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 projection matrix.

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

SEE ALSO

SoCamera, SoOrthographicCamera, SoPerspectiveCamera, SoDepthOffset


Member Function Documentation

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

Returns current matrix from the state.

static int SoProjectionMatrixElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoReplacedElement.

Reimplemented in SoGLProjectionMatrixElement.

static SoType SoProjectionMatrixElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoReplacedElement.

Reimplemented in SoGLProjectionMatrixElement.

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

Prints element (for debugging).

Reimplemented from SoReplacedElement.

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

Sets the projection 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 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/