1SoDrawStyle(3IV)()                                          SoDrawStyle(3IV)()
2
3
4

NAME

6       SoDrawStyle — node that defines the style to use when rendering
7

INHERITS FROM

9       SoBase > SoFieldContainer > SoNode > SoDrawStyle
10

SYNOPSIS

12       #include <Inventor/nodes/SoDrawStyle.h>
13
14     enum Style {
15          SoDrawStyle::FILLED     Draw filled regions
16          SoDrawStyle::LINES      Draw only outlines (wire frame)
17          SoDrawStyle::POINTS     Draw points at vertices
18          SoDrawStyle::INVISIBLE  Do not draw anything at all
19     }
20
21          Fields from class SoDrawStyle:
22
23     SoSFEnum            style
24     SoSFFloat           pointSize
25     SoSFFloat           lineWidth
26     SoSFUShort          linePattern
27
28          Methods from class SoDrawStyle:
29
30                         SoDrawStyle()
31     static SoType       getClassTypeId()
32
33          Methods from class SoNode:
34
35     void                setOverride(SbBool state)
36     SbBool              isOverride() const
37     SoNode *            copy(SbBool copyConnections = FALSE) const
38     virtual SbBool      affectsState() const
39     static SoNode *     getByName(const SbName &name)
40     static int          getByName(const SbName &name, SoNodeList &list)
41
42          Methods from class SoFieldContainer:
43
44     void                setToDefaults()
45     SbBool              hasDefaultValues() const
46     SbBool              fieldsAreEqual(const SoFieldContainer *fc) const
47     void                copyFieldValues(const  SoFieldContainer  *fc,  SbBool
48                              copyConnections = FALSE)
49     SbBool              set(const char *fieldDataString)
50     void                get(SbString &fieldDataString)
51     virtual int         getFields(SoFieldList &resultList) const
52     virtual SoField *   getField(const SbName &fieldName) const
53     SbBool              getFieldName(const SoField *field, SbName &fieldName)
54                              const
55     SbBool              isNotifyEnabled() const
56     SbBool              enableNotify(SbBool flag)
57
58          Methods from class SoBase:
59
60     void                ref()
61     void                unref() const
62     void                unrefNoDelete() const
63     void                touch()
64     virtual SoType      getTypeId() const
65     SbBool              isOfType(SoType type) const
66     virtual void        setName(const SbName &name)
67     virtual SbName      getName() const
68
69

DESCRIPTION

71       This  node  defines  the current drawing style for all subsequent shape
72       nodes in a scene graph. SoDrawStyle specifies how primitives should  be
73       rendered. The drawing style has no effect on picking or callback primi‐
74       tive generation.
75

FIELDS

77     SoSFEnum            style
78          Drawing style.
79
80     SoSFFloat           pointSize
81          Radius of points (for POINTS style).
82
83     SoSFFloat           lineWidth
84          Width of lines (for LINES style).
85
86     SoSFUShort          linePattern
87          Stipple pattern for lines (for LINES style). Values can range from 0
88          (invisible)  to  0xffff (solid). This specifies how dashed or dotted
89          lines will be drawn.
90
91

METHODS

93                         SoDrawStyle()
94          Creates a drawing style node with default settings.
95
96     static SoType       getClassTypeId()
97          Returns type identifier for this class.
98
99

ACTION BEHAVIOR

101       SoGLRenderAction, SoCallbackAction
102          Sets the current drawing style.
103
104

FILE FORMAT/DEFAULTS

106       DrawStyle {
107          style        FILLED
108          pointSize    0
109          lineWidth    0
110          linePattern  0xffff
111     }
112

SEE ALSO

114       SoLightModel, SoPickStyle, SoShapeHints
115
116
117
118
119                                                            SoDrawStyle(3IV)()
Impressum