Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoViewingMatrixElement Class Reference

Stores the current viewing matrix. More...

#include <Inventor/elements/SoViewingMatrixElement.h>

+ Inheritance diagram for SoViewingMatrixElement:

Public Member Functions

virtual void print (FILE *fp) const
 Prints element (for debugging).
 
- Public Member Functions inherited from SoElement
virtual void push (SoState *state)
 Pushes element.
 
virtual void pop (SoState *state, const SoElement *prevTopElement)
 Pops element.
 
virtual SoType getTypeId () const
 Returns type identifier for element instance.
 
- Public Member Functions inherited from SoTypedObject
SbBool isOfType (const SoType &type) const
 Returns TRUE if this object is of the type specified in type or is derived from that type.
 
template<typename TypedObjectClass >
SbBool isOfType () const
 Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
 

Static Public Member Functions

static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
static void set (SoState *state, SoNode *node, const SbMatrix &matrix, SbBool sendToGL=TRUE)
 Sets the view matrix to the given matrix.
 
static const SbMatrixget (SoState *state)
 Returns current matrix from the state.
 
- Static Public Member Functions inherited from SoReplacedElement
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
- Static Public Member Functions inherited from SoElement
static SoType getClassTypeId ()
 Returns type identifier for SoElement class.
 
- Static Public Member Functions inherited from SoTypedObject
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 

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.

SEE ALSO

SoCamera, SoOrthographicCamera, SoPerspectiveCamera

Definition at line 71 of file SoViewingMatrixElement.h.

Member Function Documentation

◆ get()

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

Returns current matrix from the state.

◆ getClassStackIndex()

static int SoViewingMatrixElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoViewingMatrixElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ print()

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

Prints element (for debugging).

Reimplemented from SoReplacedElement.

◆ set()

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: