SoGLLazyElement Class Reference
[Elements]

Manages the GL state for the SoLazyElement. More...

#include <Inventor/elements/SoGLLazyElement.h>

Inheritance diagram for SoGLLazyElement:
SoLazyElement SoElement SoTypedObject

List of all members.

Public Member Functions

virtual void push (SoState *state)
virtual void pop (SoState *state, const SoElement *prevTopElement)
void sendDiffuseByIndex (int index) const
void reset (SoState *state, uint32_t bitmask) const

Static Public Member Functions

static SoType getClassTypeId ()
static int getClassStackIndex ()
static void sendAllMaterial (SoState *state)
static void sendNoMaterial (SoState *state)
static void sendOnlyDiffuseColor (SoState *state)
static SbBool isColorIndex (SoState *state)
static SoGLLazyElement * getInstance (const SoState *state)

Detailed Description

Manages the GL state for the SoLazyElement.

This element manages the GL state for the SoLazyElement.

Note that this class relies on SoLazyElement to store the Open Inventor color(s), etc. in the instance. This element keeps GL shadow copies of colors.

SEE ALSO

SoLazyElement


Member Function Documentation

static int SoGLLazyElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoLazyElement.

static SoType SoGLLazyElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoLazyElement.

static SoGLLazyElement* SoGLLazyElement::getInstance ( const SoState *  state  )  [inline, static]

Returns the top (current) instance of the element in the state Note it does NOT cause cache dependency! It also casts away the const.

static SbBool SoGLLazyElement::isColorIndex ( SoState *  state  )  [inline, static]

TRUE if Indexed color Mode.

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

Overrides pop() method to maintain GL state.

virtual void SoGLLazyElement::push ( SoState *  state  )  [virtual]

Overrides push() method to maintain GL state.

Reimplemented from SoLazyElement.

void SoGLLazyElement::reset ( SoState *  state,
uint32_t  bitmask 
) const

Destroys knowledge of GL state.

static void SoGLLazyElement::sendAllMaterial ( SoState *  state  )  [inline, static]

Static send, always send top-of-stack.

Intended for extender use.

void SoGLLazyElement::sendDiffuseByIndex ( int  index  )  const

Sends diffuse color and transparency, by index.

Included for compatibility with SoMaterialBundle. To be used by a shape to send additional colors after first send(). Should NEVER be the first send of a shape!

static void SoGLLazyElement::sendNoMaterial ( SoState *  state  )  [inline, static]

Static send, always send top-of-stack.

Intended for extender use.

static void SoGLLazyElement::sendOnlyDiffuseColor ( SoState *  state  )  [inline, static]

Static send, always send top-of-stack.

Intended for extender use.


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

Open Inventor Toolkit reference manual, generated on 9 Jul 2026
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/