SoViewportRegionElement Class Reference
[Elements]

Stores the current viewport region. More...

#include <Inventor/elements/SoViewportRegionElement.h>

Inheritance diagram for SoViewportRegionElement:
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, const SbViewportRegion &vpReg, SbBool sendToGL=TRUE)
static const SbViewportRegionget (SoState *state)

Detailed Description

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.

SEE ALSO

PoBaseView, SoGetBoundingBoxAction, SoGetMatrixAction, SoGLRenderAction, SoHandleEventAction, SoRayPickAction, SoCamera


Member Function Documentation

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.

static SoType SoViewportRegionElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoElement.

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.


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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/