Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoProjectionMatrixElement Class Reference

Stores the current projection matrix. More...

#include <Inventor/elements/SoProjectionMatrixElement.h>

+ Inheritance diagram for SoProjectionMatrixElement:

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)
 Sets the projection 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 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

Definition at line 71 of file SoProjectionMatrixElement.h.

Member Function Documentation

◆ get()

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

Returns current matrix from the state.

◆ getClassStackIndex()

static int SoProjectionMatrixElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoProjectionMatrixElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ print()

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

Prints element (for debugging).

Reimplemented from SoReplacedElement.

◆ set()

static void SoProjectionMatrixElement::set ( SoState state,
SoNode node,
const SbMatrix matrix 
)
static

Sets the projection matrix to the given matrix.


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