Open Inventor Reference
SoDrawStyle Class Reference

Node that defines the style to use when rendering. More...

#include <Inventor/nodes/SoDrawStyle.h>

Inheritance diagram for SoDrawStyle:
SoNode SoFieldContainer SoBase

List of all members.

Public Types

enum  Style { FILLED = SoDrawStyleElement::FILLED, LINES = SoDrawStyleElement::LINES, POINTS = SoDrawStyleElement::POINTS, INVISIBLE = SoDrawStyleElement::INVISIBLE }

Public Member Functions

 SoDrawStyle ()
 Creates a drawing style node with default settings.
virtual void doAction (SoAction *action)
 This method performs the "typical" operation of a node for any action.
virtual void GLRender (SoGLRenderAction *action)
 These virtual functions implement all of the actions for nodes, Most of the default implementations do nothing.
virtual void callback (SoCallbackAction *action)

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

Fields
SoSFEnum style
 Drawing style.
SoSFFloat pointSize
 Radius of points (for POINTS style).
SoSFFloat lineWidth
 Width of lines (for LINES style).
SoSFUShort linePattern
 Stipple pattern for lines (for LINES style).

Protected Member Functions

virtual ~SoDrawStyle ()

Detailed Description

This node defines the current drawing style for all subsequent shape nodes in a scene graph. SoDrawStyle specifies how primitives should be rendered. The drawing style has no effect on picking or callback primitive generation.

File Format/Default
DrawStyle {
  style FILLED
  pointSize 0
  lineWidth 0
  linePattern 65535
}
Action Behavior
SoGLRenderAction, SoCallbackAction
Sets the current drawing style.
See Also
SoLightModel, SoPickStyle, SoShapeHints

Definition at line 101 of file SoDrawStyle.h.


Member Enumeration Documentation

Enumerator:
FILLED 

Filled regions.

LINES 

Outlined regions.

POINTS 

Points.

INVISIBLE 

Nothing!

Definition at line 106 of file SoDrawStyle.h.


Constructor & Destructor Documentation

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

Member Function Documentation

virtual void SoDrawStyle::callback ( SoCallbackAction action) [virtual]

Reimplemented from SoNode.

virtual void SoDrawStyle::doAction ( SoAction action) [virtual]

The default implementation does nothing.

Reimplemented from SoNode.

virtual void SoDrawStyle::GLRender ( SoGLRenderAction action) [virtual]

Reimplemented from SoNode.

static void SoDrawStyle::initClass ( ) [static]

Reimplemented from SoNode.


Member Data Documentation

Values can range from 0 (invisible) to 0xffff (solid). This specifies how dashed or dotted lines will be drawn.

Definition at line 128 of file SoDrawStyle.h.

Definition at line 123 of file SoDrawStyle.h.

Definition at line 120 of file SoDrawStyle.h.

Definition at line 117 of file SoDrawStyle.h.


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