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

Stores the current view volume. More...

#include <Inventor/elements/SoViewVolumeElement.h>

+ Inheritance diagram for SoViewVolumeElement:

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 SbViewVolume &viewVolume)
 Sets the view volume in the state.
 
static const SbViewVolumeget (SoState *state)
 Returns the current view volume from the state.
 
static SbBool isSet (SoState *state)
 Returns TRUE if the view volume has been set in 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 view volume.

This element stores the current view volume.

Warning
Open Inventor does not guarantee that the view volume element corresponds to the current view and projection matrix elements used for rendering. A node could, for example, set the SoProjectionMatrixElement but not the SoViewVolumeElement. An example of this is the SoDepthOffset node. If you need these matrices, it is safer to access them through the SoViewingMatrixElement and SoProjectionMatrixElement. Cameras nodes do set the view volume and both matrix elements on a render traversal.

SEE ALSO

SoCamera, SoOrthographicCamera, SoPerspectiveCamera

Definition at line 75 of file SoViewVolumeElement.h.

Member Function Documentation

◆ get()

static const SbViewVolume & SoViewVolumeElement::get ( SoState state)
static

Returns the current view volume from the state.

◆ getClassStackIndex()

static int SoViewVolumeElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoViewVolumeElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ isSet()

static SbBool SoViewVolumeElement::isSet ( SoState state)
static

Returns TRUE if the view volume has been set in the state.

◆ print()

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

Prints element (for debugging).

Reimplemented from SoReplacedElement.

◆ set()

static void SoViewVolumeElement::set ( SoState state,
SoNode node,
const SbViewVolume viewVolume 
)
static

Sets the view volume in the state.


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