Manage SoDepthOffset nodes accumulation in state. More...
#include <Inventor/elements/SoDepthOffsetElement.h>
Public Member Functions | |
virtual void | push (SoState *) |
virtual void | pop (SoState *, const SoElement *) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | set (SoState *state, float offset) |
static void | set (SoState *state, SoNode *, float offset) |
static void | set (SoState *state, float, float, float) |
static float | get (SoState *state) |
static void | setMaxOffset (SoState *state, float offset) |
static float | getMaxOffset (SoState *state) |
This element stores SoDepthOffset nodes encountered during traversal at any given time. Requesting for current offset at a given time (throught get() method) returns the global accumulated offset, computed from all previously SoDepthOffset nodes encountered in current path traversal.
static float SoDepthOffsetElement::get | ( | SoState * | state | ) | [static] |
Returns current accumulated offset from the state.
static int SoDepthOffsetElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoFloatElement.
static SoType SoDepthOffsetElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoFloatElement.
static float SoDepthOffsetElement::getMaxOffset | ( | SoState * | state | ) | [static] |
Returns current accumulated offset from the state.
Pop the element from the state.
virtual void SoDepthOffsetElement::push | ( | SoState * | ) | [virtual] |
Push the element into the state.
Reimplemented from SoElement.
static void SoDepthOffsetElement::set | ( | SoState * | state, | |
float | , | |||
float | , | |||
float | ||||
) | [static] |
Sets the current offset in the state.
Sets the current offset in the state.
static void SoDepthOffsetElement::set | ( | SoState * | state, | |
float | offset | |||
) | [static] |
Sets the current offset in the state.
static void SoDepthOffsetElement::setMaxOffset | ( | SoState * | state, | |
float | offset | |||
) | [static] |
Sets the current offset in the state.