55#ifndef _SO_UPDATE_AREA_ELEMENT
56#define _SO_UPDATE_AREA_ELEMENT
#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.
This is the abstract base class for all state elements.
Element that stores the rectangular area within the current viewport region that needs to be updated ...
static SbVec2f getDefaultOrigin()
Returns the default update area origin and size.
virtual bool matches(const SoElement *elt) const
Returns TRUE if the update areas match in both elements.
virtual void print(FILE *fp) const
Prints element (for debugging)
static void initClass()
Initializes the SoGLUpdateAreaElement class.
virtual ~SoGLUpdateAreaElement()
static void set(SoState *state, const SbVec2f &origin, const SbVec2f &size)
Sets the current update area in the state. May have GL side effects.
static SbVec2f getDefaultSize()
virtual void init(SoState *state)
Initializes element.
virtual SoElement * copyMatchInfo() const
Create and return a copy of this element.
virtual void push(SoState *state)
Override push() and pop() methods to keep GL up to date.
static bool get(SoState *state, SbVec2f &origin, SbVec2f &size)
Returns current update area from the state.
virtual void pop(SoState *state, const SoElement *prevTopElement)
An SoState collects and holds state while traversing a scene graph.