1SoIndexedNurbsCurve(3IV)() SoIndexedNurbsCurve(3IV)()
2
3
4
6 SoIndexedNurbsCurve — indexed NURBS curve shape node
7
9 SoBase > SoFieldContainer > SoNode > SoShape > SoIndexedNurbsCurve
10
12 #include <Inventor/nodes/SoIndexedNurbsCurve.h>
13
14 Fields from class SoIndexedNurbsCurve:
15
16 SoSFInt32 numControlPoints
17 SoMFInt32 coordIndex
18 SoMFFloat knotVector
19
20 Methods from class SoIndexedNurbsCurve:
21
22 SoIndexedNurbsCurve()
23 static SoType getClassTypeId()
24
25 Methods from class SoNode:
26
27 void setOverride(SbBool state)
28 SbBool isOverride() const
29 SoNode * copy(SbBool copyConnections = FALSE) const
30 virtual SbBool affectsState() const
31 static SoNode * getByName(const SbName &name)
32 static int getByName(const SbName &name, SoNodeList &list)
33
34 Methods from class SoFieldContainer:
35
36 void setToDefaults()
37 SbBool hasDefaultValues() const
38 SbBool fieldsAreEqual(const SoFieldContainer *fc) const
39 void copyFieldValues(const SoFieldContainer *fc, SbBool
40 copyConnections = FALSE)
41 SbBool set(const char *fieldDataString)
42 void get(SbString &fieldDataString)
43 virtual int getFields(SoFieldList &resultList) const
44 virtual SoField * getField(const SbName &fieldName) const
45 SbBool getFieldName(const SoField *field, SbName &fieldName)
46 const
47 SbBool isNotifyEnabled() const
48 SbBool enableNotify(SbBool flag)
49
50 Methods from class SoBase:
51
52 void ref()
53 void unref() const
54 void unrefNoDelete() const
55 void touch()
56 virtual SoType getTypeId() const
57 SbBool isOfType(SoType type) const
58 virtual void setName(const SbName &name)
59 virtual SbName getName() const
60
61
63 This class represents a NURBS curve based on the knot vector and the
64 control points that you specify. The knotVector field specifies a
65 floating-point array of values; the values are the coordinates of the
66 knot points in the curve, and you must enter them in non-decreasing
67 order. The numControlPoints field specifies the number of control
68 points the curve will have and will use the current coordinates that
69 are indexed from the coordIndex field.
70
71 You can get a curve of minimum order (2) by specifying two more knots
72 than control points and having at least two control points. This curve
73 would be a set of line segments connecting the control points together.
74
75 You can get a curve of maximum order (8) by specifying 8 more knots
76 than control points and having at least 8 control points. In this
77 curve, each control point would have influence on a larger portion of
78 the curve than with curves of lesser order.
79
80 The control points of the curve are transformed by the current trans‐
81 formation matrix. The curve is drawn with the current lighting model
82 and drawing style (drawing style FILLED is treated as LINES). The coor‐
83 dinates, normals, and texture coordinates of a NURBS curve are gener‐
84 ated, so you cannot bind explicit normals or texture coordinates to a
85 NURBS curve.
86
87 The approximation of the curve by line segments is affected by the cur‐
88 rent complexity value.
89
91 SoSFInt32 numControlPoints
92 Number of control points for the curve.
93
94 SoMFInt32 coordIndex
95 Coordinate indices for the control points.
96
97 SoMFFloat knotVector
98 The knot vector for the curve. Values must be in non-decreasing
99 order.
100
101
103 SoIndexedNurbsCurve()
104 Creates an indexed NURBS curve node with default settings.
105
106 static SoType getClassTypeId()
107 Returns type identifier for this class.
108
109
111 SoGLRenderAction
112 Draws the curve based on the current coordinates, material, and so
113 on.
114
115 SoRayPickAction
116 Picks the curve based on the current coordinates and transformation.
117
118 SoGetBoundingBoxAction
119 Computes the bounding box that encloses all control points of the
120 curve with the current transformation applied to them. Sets the cen‐
121 ter to the average of the control points.
122
123 SoCallbackAction
124 If any line segment callbacks are registered with the action, they
125 will be invoked for each successive segment approximating the curve.
126
127
129 IndexedNurbsCurve {
130 numControlPoints 0
131 coordIndex 0
132 knotVector 0
133 }
134
136 SoNurbsCurve, SoIndexedNurbsSurface
137
138
139
140
141 SoIndexedNurbsCurve(3IV)()