50#ifndef _SO_VIEWPORT_REGION_ELEMENT
51#define _SO_VIEWPORT_REGION_ELEMENT
53#include <Inventor/SbBasic.h>
54#include <Inventor/SbViewportRegion.h>
55#include <Inventor/elements/SoSubElement.h>
73SoEXTENDER_Documented
class SoViewportRegionElement :
public SoElement {
75 SO_ELEMENT_HEADER(SoViewportRegionElement);
94 virtual void print(FILE *fp)
const;
99 virtual void init(
SoState *state);
104 virtual SbBool matches(
const SoElement* elt)
const;
109 virtual SoElement* copyMatchInfo()
const;
113 static void initClass();
114 static void exitClass();
122 virtual ~SoViewportRegionElement();
Class for representing a viewport.
static const SbViewportRegion & get(SoState *state)
Returns current viewport region from the state.
static void set(SoState *state, const SbViewportRegion &vpReg, SbBool sendToGL=TRUE)
Sets the viewport region.
virtual void print(FILE *fp) const
Prints element (for debugging).