SoDrawStyleElement Class Reference
[Elements]

Stores the current draw style. More...

#include <Inventor/elements/SoDrawStyleElement.h>

Inheritance diagram for SoDrawStyleElement:
SoInt32Element SoElement SoTypedObject

List of all members.

Public Types

enum  Style {
  FILLED,
  LINES,
  POINTS,
  INVISIBLE,
  MARKERS
}

Public Member Functions

virtual void print (FILE *fp) const

Static Public Member Functions

static SoType getClassTypeId ()
static int getClassStackIndex ()
static void set (SoState *state, Style style)
static void set (SoState *state, SoNode *, Style style)
static Style get (SoState *state)
static Style getDefault ()

Detailed Description

Stores the current draw style.

This element stores the current draw style.

SEE ALSO

SoDrawStyle


Member Enumeration Documentation

These are the available draw styles.

Enumerator:
FILLED 

Filled regions.

LINES 

Outlined regions.

POINTS 

Points.

INVISIBLE 

Nothing.

MARKERS 

Markers.


Member Function Documentation

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

Returns current draw style from the state.

static int SoDrawStyleElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoInt32Element.

static SoType SoDrawStyleElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoInt32Element.

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

Returns the default draw style.

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

Prints element (for debugging).

Reimplemented from SoInt32Element.

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

Sets the current draw style in the state.

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

Sets the current draw style in the state.


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

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/