Class SoViewVolumeElement


public class SoViewVolumeElement extends SoReplacedElement
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:
  • Method Details

    • getClassStackIndex

      @Deprecated(since="9.3.0.0") public static int getClassStackIndex()
      Deprecated.
      As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)
      Returns the stack id for this element. ] *
    • isSet

      public static boolean isSet(SoState state)
      Returns true if the view volume has been set in the state.
    • get

      public static SbViewVolume get(SoState state)
      Returns the current view volume from the state.
    • set

      public static void set(SoState state, SoNode node, SbViewVolume viewVolume)
      Sets the view volume in the state.