Open Inventor Reference
SoViewportRegionElement Class Reference

Element that stores the current viewport region, which indicates which part of the window is being rendered into. More...

#include <Inventor/elements/SoViewportRegionElement.h>

Inheritance diagram for SoViewportRegionElement:
SoElement SoGLViewportRegionElement

List of all members.

Public Member Functions

virtual void init (SoState *state)
 Initializes element.
virtual SbBool matches (const SoElement *elt) const
 Returns TRUE if the viewports match.
virtual SoElementcopyMatchInfo () const
 Create and return a copy of this element.
virtual void print (FILE *fp) const
 Prints element (for debugging)

Static Public Member Functions

static void set (SoState *state, const SbViewportRegion &vpReg)
 Sets the viewport region.
static const SbViewportRegionget (SoState *state)
 Returns current viewport region from the state.
static void initClass ()
 Initializes the SoViewportRegionElement class.

Protected Member Functions

virtual void setElt (const SbViewportRegion &vpReg)
 Sets the region in an instance.
virtual ~SoViewportRegionElement ()

Protected Attributes

SbViewportRegion viewportRegion

Detailed Description

This information is also needed during picking and bounding box computation to determine sizes/locations of screen-space objects.

Definition at line 73 of file SoViewportRegionElement.h.


Constructor & Destructor Documentation

virtual SoViewportRegionElement::~SoViewportRegionElement ( ) [protected, virtual]

Member Function Documentation

virtual SoElement* SoViewportRegionElement::copyMatchInfo ( ) const [virtual]

Implements SoElement.

static const SbViewportRegion& SoViewportRegionElement::get ( SoState state) [static]
virtual void SoViewportRegionElement::init ( SoState state) [virtual]

Reimplemented from SoElement.

Reimplemented in SoGLViewportRegionElement.

static void SoViewportRegionElement::initClass ( ) [static]

Reimplemented from SoElement.

Reimplemented in SoGLViewportRegionElement.

virtual SbBool SoViewportRegionElement::matches ( const SoElement elt) const [virtual]

Implements SoElement.

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

Reimplemented from SoElement.

static void SoViewportRegionElement::set ( SoState state,
const SbViewportRegion vpReg 
) [static]
virtual void SoViewportRegionElement::setElt ( const SbViewportRegion vpReg) [protected, virtual]

Reimplemented in SoGLViewportRegionElement.


Member Data Documentation


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