24#ifndef SO_DEPTH_OFFSET_ELEMENT_H
25#define SO_DEPTH_OFFSET_ELEMENT_H
27#include <Inventor/elements/SoFloatElement.h>
76 virtual void init(
SoState *state);
80 static void initClass();
81 static void exitClass();
85 static void setNormalizationFactor(
SoState *state,
float value);
88 static float getNormalizationFactor(
SoState *state);
92 static void setNDCadjustment(
SoState *state,
float value);
95 static float getNDCadjustment(
SoState *state);
98 static void evalGlobalFactors(
float offset,
float& NDCadjustment,
float &normFactor);
105 enum DepthOffsetVersion
116 static DepthOffsetVersion getDepthOffsetVersion();
121 static void copyDepthOffset(
SoState* dstState,
SoState* srcState );
128 float normalizationFactor;
133 static DepthOffsetVersion s_depthOffsetVersion;
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Manage SoDepthOf...
static void set(SoState *state, SoNode *, float offset)
Sets the current offset in the state.
static float getMaxOffset(SoState *state)
Returns current accumulated offset from the state.
static void set(SoState *state, float offset)
Sets the current offset in the state.
virtual void pop(SoState *, const SoElement *)
Pop the element from the state.
static void set(SoState *state, float, float, float)
Sets the current offset in the state.
static void setMaxOffset(SoState *state, float offset)
Sets the current offset in the state.
virtual void push(SoState *)
Push the element into the state.
static float get(SoState *state)
Returns current accumulated offset from the state.
Abstract base class for all state elements.
Element's subclasses store a single float, int, or enum value.
Abstract base class for all database nodes.