1SoIndexedTriangleStripSet(3IV)() SoIndexedTriangleStripSet(3IV)()
2
3
4
6 SoIndexedTriangleStripSet — indexed triangle strip set shape node
7
9 SoBase > SoFieldContainer > SoNode > SoShape > SoVertexShape > SoIn‐
10 dexedShape > SoIndexedTriangleStripSet
11
13 #include <Inventor/nodes/SoIndexedTriangleStripSet.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 SoIndexedTriangleStripSet:
27
28 SoIndexedTriangleStripSet()
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
69 This shape node constructs triangle strips out of vertices located at
70 the coordinates specified in the vertexProperty field (from SoVer‐
71 texShape), or the current inherited coordinates. For optimal perfor‐
72 mance, the vertexProperty field is recommended.
73
74 SoIndexedTriangleStripSet uses the indices in the coordIndex field
75 (from SoIndexedShape) to specify the vertices of the triangle strips.
76 An index of SO_END_STRIP_INDEX (-1) indicates that the current strip
77 has ended and the next one begins.
78
79 The vertices of the faces are transformed by the current transformation
80 matrix. The faces are drawn with the current light model and drawing
81 style.
82
83 Treatment of the current material and normal binding is as follows:
84 PER_PART specifies a material or normal per strip. PER_FACE binding
85 specifies a material or normal for each triangle. PER_VERTEX specifies
86 a material or normal for each vertex. The corresponding _INDEXED bind‐
87 ings are the same, but use the materialIndex or normalIndex indices
88 (see SoIndexedShape). The default material binding is OVERALL. The
89 default normal binding is PER_VERTEX_INDEXED
90
91 If any normals (or materials) are specified, Inventor assumes you pro‐
92 vide the correct number of them, as indicated by the binding. You will
93 see unexpected results if you specify fewer normals (or materials) than
94 the shape requires. If no normals are specified, they will be generated
95 automatically.
96
98 SoIndexedTriangleStripSet()
99 Creates an indexed triangle strip set node with default settings.
100
101 static SoType getClassTypeId()
102 Returns type identifier for this class.
103
104
106 SoGLRenderAction
107 Draws a strip set based on the current coordinates, normals, materi‐
108 als, drawing style, and so on.
109
110 SoRayPickAction
111 Picks on the strip set based on the current coordinates and trans‐
112 formation. Details about the intersection are returned in an
113 SoFaceDetail.
114
115 SoGetBoundingBoxAction
116 Computes the bounding box that encloses all vertices of the strip
117 set with the current transformation applied to them. Sets the center
118 to the average of the coordinates of all vertices.
119
120 SoCallbackAction
121 If any triangle callbacks are registered with the action, they will
122 be invoked for each successive triangle forming the strips of the
123 set.
124
125
127 IndexedTriangleStripSet {
128 vertexProperty NULL
129 coordIndex 0
130 materialIndex -1
131 normalIndex -1
132 textureCoordIndex -1
133 }
134
136 SoCoordinate3, SoDrawStyle, SoFaceDetail, SoIndexedFaceSet, SoTrian‐
137 gleStripSet, SoVertexProperty
138
139
140
141
142 SoIndexedTriangleStripSet(3IV)()