1SoNormal(3IV)() SoNormal(3IV)()
2
3
4
6 SoNormal — node that defines surface normals for shapes
7
9 SoBase > SoFieldContainer > SoNode > SoNormal
10
12 #include <Inventor/nodes/SoNormal.h>
13
14 Fields from class SoNormal:
15
16 SoMFVec3f vector
17
18 Methods from class SoNormal:
19
20 SoNormal()
21 static SoType getClassTypeId()
22
23 Methods from class SoNode:
24
25 void setOverride(SbBool state)
26 SbBool isOverride() const
27 SoNode * copy(SbBool copyConnections = FALSE) const
28 virtual SbBool affectsState() const
29 static SoNode * getByName(const SbName &name)
30 static int getByName(const SbName &name, SoNodeList &list)
31
32 Methods from class SoFieldContainer:
33
34 void setToDefaults()
35 SbBool hasDefaultValues() const
36 SbBool fieldsAreEqual(const SoFieldContainer *fc) const
37 void copyFieldValues(const SoFieldContainer *fc, SbBool
38 copyConnections = FALSE)
39 SbBool set(const char *fieldDataString)
40 void get(SbString &fieldDataString)
41 virtual int getFields(SoFieldList &resultList) const
42 virtual SoField * getField(const SbName &fieldName) const
43 SbBool getFieldName(const SoField *field, SbName &fieldName)
44 const
45 SbBool isNotifyEnabled() const
46 SbBool enableNotify(SbBool flag)
47
48 Methods from class SoBase:
49
50 void ref()
51 void unref() const
52 void unrefNoDelete() const
53 void touch()
54 virtual SoType getTypeId() const
55 SbBool isOfType(SoType type) const
56 virtual void setName(const SbName &name)
57 virtual SbName getName() const
58
59
61 This node defines a set of 3D surface normal vectors to be used by ver‐
62 tex-based shape nodes that follow it in the scene graph. This node does
63 not produce a visible result during rendering; it simply replaces the
64 current normals in the rendering state for subsequent nodes to use.
65 This node contains one multiple-valued field that contains the normal
66 vectors.
67
68 Surface normals are needed to compute lighting when the Phong lighting
69 model is used. Most vertex-based shapes that use normals can compute
70 default normals if none are specified, depending on the current normal
71 binding.
72
74 SoMFVec3f vector
75 Surface normal vectors.
76
77
79 SoNormal()
80 Creates a surface normal node with default settings.
81
82 static SoType getClassTypeId()
83 Returns type identifier for this class.
84
85
87 SoGLRenderAction, SoCallbackAction, SoRayPickAction
88 Sets the current normals in the traversal state.
89
90
92 Normal {
93 vector [ ]
94 }
95
97 SoCoordinate3, SoLightModel, SoNormalBinding, SoVertexShape
98
99
100
101
102 SoNormal(3IV)()