Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoPolygonOffsetElement Class Reference

VSG extension Stores current polygon offset state. More...

#include <Inventor/elements/SoPolygonOffsetElement.h>

+ Inheritance diagram for SoPolygonOffsetElement:

Public Types

enum  Style {
  FILLED = SbEnums::OFFSET_SOLID ,
  LINES = SbEnums::OFFSET_WIREFRAME ,
  POINTS = SbEnums::OFFSET_WIREFRAME
}
 PolygonOffset style. More...
 

Public Member Functions

virtual void push (SoState *state)
 Push copies the values from the previous element.
 
- Public Member Functions inherited from SoReplacedElement
virtual void print (FILE *fp) const
 Prints element (for debugging).
 
- Public Member Functions inherited from SoElement
virtual void pop (SoState *state, const SoElement *prevTopElement)
 Pops element.
 
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, SoNode *node, float factor, float units, Style styles, SbBool on)
 Sets the current polygon offset attributes in the state.
 
static void get (SoState *state, float &factor, float &units, Style &styles, SbBool &on)
 Gets the current polygon offset attributes in the state.
 
static void getDefault (float &factor, float &units, Style &styles, SbBool &on)
 Default values.
 
- Static Public Member Functions inherited from SoReplacedElement
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 Stores current polygon offset state.

SEE ALSO

SoPolygonOffset

Definition at line 42 of file SoPolygonOffsetElement.h.

Member Enumeration Documentation

◆ Style

PolygonOffset style.

Enumerator
FILLED 

FILLED.

LINES 

LINES.

POINTS 

POINTS.

Definition at line 48 of file SoPolygonOffsetElement.h.

Member Function Documentation

◆ get()

static void SoPolygonOffsetElement::get ( SoState state,
float &  factor,
float &  units,
Style styles,
SbBool on 
)
static

Gets the current polygon offset attributes in the state.

◆ getClassStackIndex()

static int SoPolygonOffsetElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoPolygonOffsetElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ getDefault()

static void SoPolygonOffsetElement::getDefault ( float &  factor,
float &  units,
Style styles,
SbBool on 
)
static

Default values.

◆ push()

virtual void SoPolygonOffsetElement::push ( SoState state)
virtual

Push copies the values from the previous element.

Reimplemented from SoElement.

◆ set()

static void SoPolygonOffsetElement::set ( SoState state,
SoNode node,
float  factor,
float  units,
Style  styles,
SbBool  on 
)
static

Sets the current polygon offset attributes in the state.


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