55#ifndef _SO_VIEWPORT_REGION_ELEMENT
56#define _SO_VIEWPORT_REGION_ELEMENT
95 virtual void print(FILE *fp)
const;
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
#define SO_ELEMENT_HEADER(className)
This one is for non-abstract element classes.
Class for representing a viewport.
This is the abstract base class for all state elements.
An SoState collects and holds state while traversing a scene graph.
Element that stores the current viewport region, which indicates which part of the window is being re...
static const SbViewportRegion & get(SoState *state)
Returns current viewport region from the state.
virtual void init(SoState *state)
Initializes element.
virtual ~SoViewportRegionElement()
static void set(SoState *state, const SbViewportRegion &vpReg)
Sets the viewport region.
virtual SoElement * copyMatchInfo() const
Create and return a copy of this element.
virtual bool matches(const SoElement *elt) const
Returns TRUE if the viewports match.
static void initClass()
Initializes the SoViewportRegionElement class.
virtual void print(FILE *fp) const
Prints element (for debugging)
virtual void setElt(const SbViewportRegion &vpReg)
Sets the region in an instance.
SbViewportRegion viewportRegion