Open Inventor Reference
SoGLLineWidthElement Class Reference

Element that stores the current line width in GL. More...

#include <Inventor/elements/SoGLLineWidthElement.h>

Inheritance diagram for SoGLLineWidthElement:
SoLineWidthElement SoFloatElement SoElement

List of all members.

Public Member Functions

virtual void init (SoState *state)
 Initializes element.
virtual void push (SoState *state)
 Override push() method to copy state pointer and value of previous element, to avoid sending GL commands if the elements are the same.
virtual void pop (SoState *state, const SoElement *prevTopElement)
 Override pop() method so side effects can occur in GL.

Static Public Member Functions

static void initClass ()
 Initializes the SoGLLineWidthElement class.

Protected Member Functions

virtual void setElt (float width)
 Sets the line width in an instance. Has GL side effects.
virtual ~SoGLLineWidthElement ()

Detailed Description

Overrides the virtual methods on SoLineWidthElement to send the line width to GL when necessary.

Note that this class relies on SoLineWidthElement to store the width in the instance.

Definition at line 74 of file SoGLLineWidthElement.h.


Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from SoLineWidthElement.

static void SoGLLineWidthElement::initClass ( ) [static]

Reimplemented from SoLineWidthElement.

virtual void SoGLLineWidthElement::pop ( SoState state,
const SoElement prevTopElement 
) [virtual]

Reimplemented from SoElement.

virtual void SoGLLineWidthElement::push ( SoState state) [virtual]

Reimplemented from SoElement.

virtual void SoGLLineWidthElement::setElt ( float  width) [protected, virtual]

Reimplemented from SoFloatElement.


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