Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoViewportRegionElement Class Reference

Stores the current viewport region. More...

#include <Inventor/elements/SoViewportRegionElement.h>

+ Inheritance diagram for SoViewportRegionElement:

Public Member Functions

virtual void print (FILE *fp) const
 Prints element (for debugging).
 
- Public Member Functions inherited from SoElement
virtual void push (SoState *state)
 Pushes element.
 
virtual void pop (SoState *state, const SoElement *prevTopElement)
 Pops element.
 
virtual SoType getTypeId () const
 Returns type identifier for element instance.
 
- Public Member Functions inherited from SoTypedObject
SbBool isOfType (const SoType &type) const
 Returns TRUE if this object is of the type specified in type or is derived from that type.
 
template<typename TypedObjectClass >
SbBool isOfType () const
 Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
 

Static Public Member Functions

static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
static void set (SoState *state, const SbViewportRegion &vpReg, SbBool sendToGL=TRUE)
 Sets the viewport region.
 
static const SbViewportRegionget (SoState *state)
 Returns current viewport region from the state.
 
- Static Public Member Functions inherited from SoElement
static SoType getClassTypeId ()
 Returns type identifier for SoElement class.
 
- Static Public Member Functions inherited from SoTypedObject
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 

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

Definition at line 73 of file SoViewportRegionElement.h.

Member Function Documentation

◆ get()

static const SbViewportRegion & SoViewportRegionElement::get ( SoState state)
static

Returns current viewport region from the state.

◆ getClassStackIndex()

static int SoViewportRegionElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoViewportRegionElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ print()

virtual void SoViewportRegionElement::print ( FILE *  fp) const
virtual

Prints element (for debugging).

Reimplemented from SoElement.

◆ set()

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: