Stores the current viewport region. More...
#include <Inventor/elements/SoViewportRegionElement.h>
Public Member Functions | |
virtual void | print (FILE *fp) const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | set (SoState *state, const SbViewportRegion &vpReg, SbBool sendToGL=TRUE) |
static const SbViewportRegion & | get (SoState *state) |
Stores the current viewport region.
This element stores the current viewport region, which indicates which part of the window is being rendered into. This information is also needed during picking and bounding box computation to determine sizes/locations of screen-space objects.
PoBaseView, SoGetBoundingBoxAction, SoGetMatrixAction, SoGLRenderAction, SoHandleEventAction, SoRayPickAction, SoCamera
static const SbViewportRegion& SoViewportRegionElement::get | ( | SoState * | state | ) | [static] |
Returns current viewport region from the state.
static int SoViewportRegionElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoElement.
Reimplemented in SoGLViewportRegionElement.
static SoType SoViewportRegionElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoElement.
Reimplemented in SoGLViewportRegionElement.
virtual void SoViewportRegionElement::print | ( | FILE * | fp | ) | const [virtual] |
Prints element (for debugging).
Reimplemented from SoElement.
static void SoViewportRegionElement::set | ( | SoState * | state, | |
const SbViewportRegion & | vpReg, | |||
SbBool | sendToGL = TRUE | |||
) | [static] |
Sets the viewport region.
This method will (indirectly) call glViewport with the new values unless the 'sendToGL' parameter is explicitly FALSE.