| 1 |
NAME SoLineSet SoLSet "" { polyline shape node } |
| 2 |
|
| 3 |
INCLUDE nodes/SoLineSet.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
This node represents a 3D shape formed by constructing polylines from |
| 7 |
vertices located at the coordinates specified in the |
| 8 |
\vvertexProperty\. field (from \cSoVertexShape\.), |
| 9 |
or the current inherited coordinates. |
| 10 |
For optimal performance, the \vvertexProperty\. field is recommended. |
| 11 |
\p |
| 12 |
\cSoLineSet\. uses the |
| 13 |
coordinates in order, starting with the first one. |
| 14 |
Each line has a number of vertices specified by |
| 15 |
a value in the \vnumVertices\. field. For example, an \cSoLineSet\. |
| 16 |
with a \vnumVertices\. of [3,4,2] would use |
| 17 |
coordinates 1, 2, and 3 for the first line, coordinates 4, 5, 6, and 7 |
| 18 |
for the second line, and coordinates 8 and 9 for the third. \p |
| 19 |
The number of values in the \vnumVertices\. field indicates the |
| 20 |
number of polylines in the set. |
| 21 |
\p |
| 22 |
The coordinates of the line set are transformed by the current |
| 23 |
cumulative transformation. The lines are drawn with the current light |
| 24 |
model and drawing style (drawing style \kFILLED\. is treated as |
| 25 |
\kLINES\.). |
| 26 |
\p |
| 27 |
Treatment of the current material and normal binding is as follows: |
| 28 |
The \kPER_PART\. binding specifies a material or normal for each |
| 29 |
segment of the line. The \kPER_FACE\. binding specifies a material or |
| 30 |
normal for each polyline. The \k_INDEXED\. bindings are equivalent to |
| 31 |
their non-indexed counterparts. The default material binding is |
| 32 |
\kOVERALL\.. The default normal binding is |
| 33 |
\kPER_VERTEX\.. |
| 34 |
\p |
| 35 |
The current complexity value has no effect on the rendering of line |
| 36 |
sets. |
| 37 |
} |
| 38 |
|
| 39 |
FIELD numVertices { Number of vertices per polyline. } |
| 40 |
|
| 41 |
METHOD "" SoLineSet() { Creates a line set node with default settings. } |
| 42 |
|
| 43 |
METHOD "" static SoType getClassTypeId() { |
| 44 |
Returns type identifier for this class. |
| 45 |
} |
| 46 |
|
| 47 |
ACTION SoGLRenderAction { |
| 48 |
Draws lines based on the current coordinates, normals, materials, |
| 49 |
drawing style, and so on. |
| 50 |
} |
| 51 |
|
| 52 |
ACTION SoRayPickAction { |
| 53 |
Picks lines based on the current coordinates and transformation. |
| 54 |
Details about the intersection are returned in an \cSoLineDetail\.. |
| 55 |
} |
| 56 |
|
| 57 |
ACTION SoGetBoundingBoxAction { |
| 58 |
Computes the bounding box that encloses all vertices of the line set |
| 59 |
with the current transformation applied to them. Sets the center to |
| 60 |
the average of the coordinates of all vertices. |
| 61 |
} |
| 62 |
|
| 63 |
ACTION SoCallbackAction { |
| 64 |
If any line segment callbacks are registered with the action, they will |
| 65 |
be invoked for each successive segment in the line set. |
| 66 |
} |
| 67 |
|
| 68 |
ALSO { |
| 69 |
SoCoordinate3, |
| 70 |
SoDrawStyle, |
| 71 |
SoIndexedLineSet, |
| 72 |
SoLineDetail, |
| 73 |
SoVertexProperty |
| 74 |
} |