Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoDepthOffsetElement Class Reference

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

#include <Inventor/elements/SoDepthOffsetElement.h>

+ Inheritance diagram for SoDepthOffsetElement:

Public Member Functions

virtual void push (SoState *)
 Push the element into the state.
 
virtual void pop (SoState *, const SoElement *)
 Pop the element from the state.
 
- Public Member Functions inherited from SoFloatElement
virtual void print (FILE *fp) const
 Prints element (for debugging).
 
- Public Member Functions inherited from SoElement
virtual SoType getTypeId () const
 Returns type identifier for element instance.
 
- Public Member Functions inherited from SoTypedObject
SbBool isOfType (const SoType &type) const
 Returns TRUE if this object is of the type specified in type or is derived from that type.
 
template<typename TypedObjectClass >
SbBool isOfType () const
 Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
 

Static Public Member Functions

static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
static void set (SoState *state, float offset)
 Sets the current offset in the state.
 
static void set (SoState *state, SoNode *, float offset)
 Sets the current offset in the state.
 
static void set (SoState *state, float, float, float)
 Sets the current offset in the state.
 
static float get (SoState *state)
 Returns current accumulated offset from the state.
 
static void setMaxOffset (SoState *state, float offset)
 Sets the current offset in the state.
 
static float getMaxOffset (SoState *state)
 Returns current accumulated offset from the state.
 
- Static Public Member Functions inherited from SoFloatElement
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
- Static Public Member Functions inherited from SoElement
static SoType getClassTypeId ()
 Returns type identifier for SoElement class.
 
- Static Public Member Functions inherited from SoTypedObject
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 

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.

Definition at line 42 of file SoDepthOffsetElement.h.

Member Function Documentation

◆ get()

static float SoDepthOffsetElement::get ( SoState state)
static

Returns current accumulated offset from the state.

◆ getClassStackIndex()

static int SoDepthOffsetElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoDepthOffsetElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ getMaxOffset()

static float SoDepthOffsetElement::getMaxOffset ( SoState state)
static

Returns current accumulated offset from the state.

◆ pop()

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

Pop the element from the state.

Reimplemented from SoElement.

◆ push()

virtual void SoDepthOffsetElement::push ( SoState )
virtual

Push the element into the state.

Reimplemented from SoElement.

◆ set() [1/3]

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

Sets the current offset in the state.

◆ set() [2/3]

static void SoDepthOffsetElement::set ( SoState state,
float  ,
float  ,
float   
)
static

Sets the current offset in the state.

◆ set() [3/3]

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

Sets the current offset in the state.

◆ setMaxOffset()

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: