Open Inventor Reference
SoDrawStyleElement Class Reference

Element that stores the current draw style.

#include <Inventor/elements/SoDrawStyleElement.h>

Inheritance diagram for SoDrawStyleElement:
SoInt32Element SoElement SoGLDrawStyleElement

List of all members.

Public Types

enum  Style { FILLED, LINES, POINTS, INVISIBLE }
 These are the available draw styles: More...

Public Member Functions

virtual void init (SoState *state)
 Initializes element.
virtual void print (FILE *fp) const
 Prints element (for debugging)

Static Public Member Functions

static void set (SoState *state, Style style)
 Sets the current draw style in the state.
static void set (SoState *state, SoNode *, Style style)
static Style get (SoState *state)
 Returns current draw style from the state.
static Style getDefault ()
 Returns the default draw style.
static void initClass ()
 Initializes the SoDrawStyleElement class.

Protected Member Functions

virtual ~SoDrawStyleElement ()

Detailed Description

Definition at line 69 of file SoDrawStyleElement.h.


Member Enumeration Documentation

Enumerator:
FILLED 

Filled regions.

LINES 

Outlined regions.

POINTS 

Points.

INVISIBLE 

Nothing!

Definition at line 75 of file SoDrawStyleElement.h.


Constructor & Destructor Documentation

virtual SoDrawStyleElement::~SoDrawStyleElement ( ) [protected, virtual]

Member Function Documentation

static Style SoDrawStyleElement::get ( SoState state) [inline, static]

Definition at line 94 of file SoDrawStyleElement.h.

References SoInt32Element::get().

static Style SoDrawStyleElement::getDefault ( ) [inline, static]

Definition at line 98 of file SoDrawStyleElement.h.

virtual void SoDrawStyleElement::init ( SoState state) [virtual]

Reimplemented from SoElement.

Reimplemented in SoGLDrawStyleElement.

static void SoDrawStyleElement::initClass ( ) [static]

Reimplemented from SoInt32Element.

Reimplemented in SoGLDrawStyleElement.

virtual void SoDrawStyleElement::print ( FILE *  fp) const [virtual]

Reimplemented from SoInt32Element.

static void SoDrawStyleElement::set ( SoState state,
SoNode ,
Style  style 
) [inline, static]

Definition at line 89 of file SoDrawStyleElement.h.

static void SoDrawStyleElement::set ( SoState state,
Style  style 
) [static]

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