SoGLUpdateAreaElement Class Reference
[Elements]

Stores the rectangular area within the current viewport region that needs to be updated when rendering. More...

#include <Inventor/elements/SoGLUpdateAreaElement.h>

Inheritance diagram for SoGLUpdateAreaElement:
SoElement SoTypedObject

List of all members.

Public Member Functions

virtual void push (SoState *state)
virtual void pop (SoState *state, const SoElement *prevTopElement)
virtual void print (FILE *fp) const

Static Public Member Functions

static SoType getClassTypeId ()
static int getClassStackIndex ()
static void set (SoState *state, const SbVec2f &origin, const SbVec2f &size)
static SbBool get (SoState *state, SbVec2f &origin, SbVec2f &size)
static SbVec2f getDefaultOrigin ()
static SbVec2f getDefaultSize ()

Detailed Description

Stores the rectangular area within the current viewport region that needs to be updated when rendering.

This element stores the rectangular area within the current viewport region that needs to be updated when rendering. It can be used for partial rendering updates when applications know that only a portion of the objects need to be rerendered. Cameras can use the info in this element to set up a view volume against which culling can be performed. This element also sets up the GL scissor box to limit drawing.

The update area is specified in normalized viewport coordinates, where (0,0) is the lower left corner of the viewport and (1,1) is the upper right corner. The area is given as an origin and a size.

NOTE: This class does not exist in Open Inventor 10.0 and later.

SEE ALSO

PoBaseView, SoGLRenderAction

Deprecated:

Deprecated since Open Inventor 9620
SoGLUpdateAreaElement will be replaced by SoUpdateAreaElement in OIV 10. See section http://developer96.openinventor.com/content/compatibility-notes-4#Deprecation of the Reference Manual.

Member Function Documentation

static SbBool SoGLUpdateAreaElement::get ( SoState state,
SbVec2f origin,
SbVec2f size 
) [static]

Returns current update area from the state.

Returns TRUE if the update area is the default, namely, the entire viewport.

static int SoGLUpdateAreaElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoElement.

static SoType SoGLUpdateAreaElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoElement.

static SbVec2f SoGLUpdateAreaElement::getDefaultOrigin (  )  [inline, static]

Returns the default update area origin.

static SbVec2f SoGLUpdateAreaElement::getDefaultSize (  )  [inline, static]

Returns the default update area size.

virtual void SoGLUpdateAreaElement::pop ( SoState state,
const SoElement prevTopElement 
) [virtual]

Override pop() method to keep GL up to date.

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

Prints element (for debugging).

Reimplemented from SoElement.

virtual void SoGLUpdateAreaElement::push ( SoState state  )  [virtual]

Override push() method to keep GL up to date.

Reimplemented from SoElement.

static void SoGLUpdateAreaElement::set ( SoState state,
const SbVec2f origin,
const SbVec2f size 
) [static]

Sets the current update area in the state.

May have GL side effects.


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

Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/