SoViewVolumeElement Class Reference

Stores the current view volume. More...

#include <Inventor/elements/SoViewVolumeElement.h>

Inheritance diagram for SoViewVolumeElement:
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 SbViewVolume &viewVolume)
static const SbViewVolumeget (SoState *state)
static SbBool isSet (SoState *state)

Detailed Description

Stores the current view volume.

This element stores the current view volume.

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.


SoCamera, SoOrthographicCamera, SoPerspectiveCamera

Member Function Documentation

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

Returns the current view volume from the state.

static int SoViewVolumeElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoReplacedElement.

static SoType SoViewVolumeElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoReplacedElement.

static SbBool SoViewVolumeElement::isSet ( SoState state  )  [static]

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

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

Prints element (for debugging).

Reimplemented from SoReplacedElement.

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:

Open Inventor Toolkit reference manual, generated on 28 Jun 2022
Copyright © Thermo Fisher Scientific All rights reserved.