SoUpdateAreaElement Class Reference
[Elements]

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

#include <Inventor/elements/SoUpdateAreaElement.h>

Inheritance diagram for SoUpdateAreaElement:
SoElement SoTypedObject

List of all members.

Public Member Functions

virtual void push (SoState *state)
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 bool 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 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.

SEE ALSO

PoBaseView, SoGLRenderAction


Member Function Documentation

static bool SoUpdateAreaElement::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 SoUpdateAreaElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoElement.

static SoType SoUpdateAreaElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoElement.

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

Returns the default update area origin.

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

Returns the default update area size.

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

Prints element (for debugging).

Reimplemented from SoElement.

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

Overrides push() method to copy values from next instance in the stack.

Reimplemented from SoElement.

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

Sets the current update area in the state.


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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/