| 1 |
NAME SoDrawStyle SoDStyle SO_D_STYLE_ { |
| 2 |
node that defines the style to use when rendering |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE nodes/SoDrawStyle.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
This node defines the current drawing style for all subsequent shape |
| 9 |
nodes in a scene graph. \cSoDrawStyle\. specifies how primitives |
| 10 |
should be rendered. The drawing style has no effect on picking or |
| 11 |
callback primitive generation. |
| 12 |
} |
| 13 |
|
| 14 |
ENUM Style { |
| 15 |
FILLED "Draw filled regions", |
| 16 |
LINES "Draw only outlines (wire frame)", |
| 17 |
POINTS "Draw points at vertices", |
| 18 |
INVISIBLE "Do not draw anything at all" |
| 19 |
} |
| 20 |
|
| 21 |
FIELD style { Drawing style. } |
| 22 |
|
| 23 |
FIELD pointSize { Radius of points (for \kPOINTS\. style). } |
| 24 |
|
| 25 |
FIELD lineWidth { Width of lines (for \kLINES\. style). } |
| 26 |
|
| 27 |
FIELD linePattern { |
| 28 |
Stipple pattern for lines (for \kLINES\. style). Values can range from |
| 29 |
0 (invisible) to 0xffff (solid). This specifies how dashed or dotted |
| 30 |
lines will be drawn. |
| 31 |
} |
| 32 |
|
| 33 |
METHOD "" SoDrawStyle() { |
| 34 |
Creates a drawing style node with default settings. |
| 35 |
} |
| 36 |
|
| 37 |
METHOD "" static SoType getClassTypeId() { |
| 38 |
Returns type identifier for this class. |
| 39 |
} |
| 40 |
|
| 41 |
ACTION SoGLRenderAction, SoCallbackAction { |
| 42 |
Sets the current drawing style. |
| 43 |
} |
| 44 |
|
| 45 |
ALSO { SoLightModel, SoPickStyle, SoShapeHints } |