1SoIndexedLineSet(3IV)()                                SoIndexedLineSet(3IV)()
2
3
4

NAME

6       SoIndexedLineSet — indexed polyline shape node
7

INHERITS FROM

9       SoBase  >  SoFieldContainer  > SoNode > SoShape > SoVertexShape > SoIn‐
10       dexedShape > SoIndexedLineSet
11

SYNOPSIS

13       #include <Inventor/nodes/SoIndexedLineSet.h>
14
15          Fields from class SoIndexedShape:
16
17     SoMFInt32           coordIndex
18     SoMFInt32           materialIndex
19     SoMFInt32           normalIndex
20     SoMFInt32           textureCoordIndex
21
22          Fields from class SoVertexShape:
23
24     SoSFNode            vertexProperty
25
26          Methods from class SoIndexedLineSet:
27
28                         SoIndexedLineSet()
29     static SoType       getClassTypeId()
30
31          Methods from class SoNode:
32
33     void                setOverride(SbBool state)
34     SbBool              isOverride() const
35     SoNode *            copy(SbBool copyConnections = FALSE) const
36     virtual SbBool      affectsState() const
37     static SoNode *     getByName(const SbName &name)
38     static int          getByName(const SbName &name, SoNodeList &list)
39
40          Methods from class SoFieldContainer:
41
42     void                setToDefaults()
43     SbBool              hasDefaultValues() const
44     SbBool              fieldsAreEqual(const SoFieldContainer *fc) const
45     void                copyFieldValues(const  SoFieldContainer  *fc,  SbBool
46                              copyConnections = FALSE)
47     SbBool              set(const char *fieldDataString)
48     void                get(SbString &fieldDataString)
49     virtual int         getFields(SoFieldList &resultList) const
50     virtual SoField *   getField(const SbName &fieldName) const
51     SbBool              getFieldName(const SoField *field, SbName &fieldName)
52                              const
53     SbBool              isNotifyEnabled() const
54     SbBool              enableNotify(SbBool flag)
55
56          Methods from class SoBase:
57
58     void                ref()
59     void                unref() const
60     void                unrefNoDelete() const
61     void                touch()
62     virtual SoType      getTypeId() const
63     SbBool              isOfType(SoType type) const
64     virtual void        setName(const SbName &name)
65     virtual SbName      getName() const
66
67

DESCRIPTION

69       This node represents a 3D shape formed by constructing  polylines  from
70       vertices  located  at  the  coordinates specified in the vertexProperty
71       field (from SoVertexShape), or the current inherited  coordinates.  For
72       optimal performance, the vertexProperty field is recommended.
73
74       SoIndexedLineSet  uses  the indices in the coordIndex field (from SoIn‐
75       dexedShape) to specify the polylines.  An  index  of  SO_END_LINE_INDEX
76       (-1)  indicates  that  the  current polyline has ended and the next one
77       begins.
78
79       The coordinates of the line set are transformed by the current  cumula‐
80       tive  transformation.  The lines are drawn with the current light model
81       and drawing style (drawing style FILLED is treated as LINES).
82
83       Treatment of the current material and normal binding is as follows: The
84       PER_PART binding specifies a material or normal for each segment of the
85       line. The PER_FACE binding specifies a  material  or  normal  for  each
86       polyline.  PER_VERTEX  specifies  a material or normal for each vertex.
87       The corresponding _INDEXED bindings are the same, but use  the  materi‐
88       alIndex  or normalIndex indices (see SoIndexedShape). The default mate‐
89       rial binding  is  OVERALL.  The  default  normal  binding  is  PER_VER‐
90       TEX_INDEXED
91
92       The  current complexity value has no effect on the rendering of indexed
93       line sets.
94

METHODS

96                         SoIndexedLineSet()
97          Creates an indexed line set node with default settings.
98
99     static SoType       getClassTypeId()
100          Returns type identifier for this class.
101
102

ACTION BEHAVIOR

104       SoGLRenderAction
105          Draws lines based on the current  coordinates,  normals,  materials,
106          drawing style, and so on.
107
108     SoRayPickAction
109          Picks  lines  based  on  the current coordinates and transformation.
110          Details about the intersection are returned in an SoLineDetail.
111
112     SoGetBoundingBoxAction
113          Computes the bounding box that encloses all vertices of the line set
114          with  the current transformation applied to them. Sets the center to
115          the average of the coordinates of all vertices.
116
117     SoCallbackAction
118          If any line segment callbacks are registered with the  action,  they
119          will be invoked for each successive segment in the line set.
120
121

FILE FORMAT/DEFAULTS

123       IndexedLineSet {
124          vertexProperty     NULL
125          coordIndex         0
126          materialIndex      -1
127          normalIndex        -1
128          textureCoordIndex  -1
129     }
130

SEE ALSO

132       SoCoordinate3, SoDrawStyle, SoLineDetail, SoLineSet, SoVertexProperty
133
134
135
136
137                                                       SoIndexedLineSet(3IV)()
Impressum