Open Inventor 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>
Public Member Functions | |
virtual void | init (SoState *state) |
Initializes element. | |
virtual SbBool | matches (const SoElement *elt) const |
Returns TRUE if the viewports match. | |
virtual SoElement * | copyMatchInfo () 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 SbViewportRegion & | get (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 |
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.
virtual SoViewportRegionElement::~SoViewportRegionElement | ( | ) | [protected, virtual] |
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.
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.
Definition at line 102 of file SoViewportRegionElement.h.