SoDepthOffsetElement Class Reference
[Elements]

VSG extension Manage SoDepthOffset nodes accumulation in state. More...

#include <Inventor/elements/SoDepthOffsetElement.h>

Inheritance diagram for SoDepthOffsetElement:
SoFloatElement SoElement SoTypedObject

List of all members.

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)

Detailed Description

VSG extension Manage SoDepthOffset nodes accumulation in 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.


Member Function Documentation

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.

virtual void SoDepthOffsetElement::pop ( SoState ,
const SoElement  
) [virtual]

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.

static void SoDepthOffsetElement::set ( SoState state,
SoNode ,
float  offset 
) [static]

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.


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

Open Inventor Toolkit reference manual, generated on 16 Sep 2021
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/