Class SoModifyViewVolumeElement


  • public class SoModifyViewVolumeElement
    extends SoElement
    Stores a view volume subset. This element stores a view volume subset. This element is used for "tiled" rendering, where we create a large image by rendering one tile (subimage) at a time. In this case we must "narrow" the view volume for each tile, without modifying the camera nodes in the scene graph. SoCamera.computeView uses this element to modify the view volume after other adjustments have been made. See also SoOffscreenRenderArea.

    See Also:
    PoBaseView, SoOffscreenRenderArea
    • Method Detail

      • setInfo

        public static void setInfo​(SoState state,
                                   int info)
        Sets an integer info.
      • getInfo

        public static int getInfo​(SoState state)
        Gets an integer info.
      • 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. ] *
      • set

        public static void set​(SoState state,
                               SbVec4f portion)
        Sets the current portion in the state to the given portion (left, bottom, right, top).
      • getDefault

        public static SbVec4f getDefault()
        Returns the default screen portion.
      • set

        public static void set​(SoState state,
                               SbBox3f portion)
        Sets the current portion in the state to the given portion (left, bottom, right, top).
      • setWallCoordinates

        public static void setWallCoordinates​(SoState state,
                                              SbVec3f lowerLeft,
                                              SbVec3f lowerRight,
                                              SbVec3f upperLeft)
        Sets the current coordinates of the virtual window in the real world. MP: coordinates of the projection wall/window in real world i.e., relative to the tracking system base or reference frame.
      • useWallCoordinates

        public static boolean useWallCoordinates​(SoState state)
        Returns a boolean telling the Camera to compute a view volume using the wall coordinates.
      • getDefaultBox

        public static SbBox3f getDefaultBox()
        Returns the default screen portion.
      • getWallCoordinates

        public static SbVec3f[] getWallCoordinates​(SoState state)
        Returns the current coordinates of the virtual window in the real world. MP: coordinates of the projection wall/window in real world i.e., relative to the tracking system base or reference frame.
      • get

        public static SbVec4f get​(SoState state)
        Returns the current portion of the view volume from the state.
      • getBox

        public static SbBox3f getBox​(SoState state)
        Returns the current portion of the view volume from the state.