1SoNormalBinding(3IV)()                                  SoNormalBinding(3IV)()
2
3
4

NAME

6       SoNormalBinding  — node that specifies how multiple surface normals are
7       bound to shapes
8

INHERITS FROM

10       SoBase > SoFieldContainer > SoNode > SoNormalBinding
11

SYNOPSIS

13       #include <Inventor/nodes/SoNormalBinding.h>
14
15     enum Binding {
16          SoNormalBinding::OVERALL     Whole object has same normal
17          SoNormalBinding::PER_PART    One normal for each part of object
18          SoNormalBinding::PER_PART_INDEXED
19                                       One normal for each part, indexed
20          SoNormalBinding::PER_FACE    One normal for each face of object
21          SoNormalBinding::PER_FACE_INDEXED
22                                       One normal for each face, indexed
23          SoNormalBinding::PER_VERTEX  One normal for each vertex of object
24          SoNormalBinding::PER_VERTEX_INDEXED
25                                       One normal for each vertex, indexed
26     }
27
28          Fields from class SoNormalBinding:
29
30     SoSFEnum            value
31
32          Methods from class SoNormalBinding:
33
34                         SoNormalBinding()
35     static SoType       getClassTypeId()
36
37          Methods from class SoNode:
38
39     void                setOverride(SbBool state)
40     SbBool              isOverride() const
41     SoNode *            copy(SbBool copyConnections = FALSE) const
42     virtual SbBool      affectsState() const
43     static SoNode *     getByName(const SbName &name)
44     static int          getByName(const SbName &name, SoNodeList &list)
45
46          Methods from class SoFieldContainer:
47
48     void                setToDefaults()
49     SbBool              hasDefaultValues() const
50     SbBool              fieldsAreEqual(const SoFieldContainer *fc) const
51     void                copyFieldValues(const  SoFieldContainer  *fc,  SbBool
52                              copyConnections = FALSE)
53     SbBool              set(const char *fieldDataString)
54     void                get(SbString &fieldDataString)
55     virtual int         getFields(SoFieldList &resultList) const
56     virtual SoField *   getField(const SbName &fieldName) const
57     SbBool              getFieldName(const SoField *field, SbName &fieldName)
58                              const
59     SbBool              isNotifyEnabled() const
60     SbBool              enableNotify(SbBool flag)
61
62          Methods from class SoBase:
63
64     void                ref()
65     void                unref() const
66     void                unrefNoDelete() const
67     void                touch()
68     virtual SoType      getTypeId() const
69     SbBool              isOfType(SoType type) const
70     virtual void        setName(const SbName &name)
71     virtual SbName      getName() const
72
73

DESCRIPTION

75       This node specifies how the current normals are bound  to  shapes  that
76       follow  in the scene graph. Each shape node may interpret bindings dif‐
77       ferently.
78
79       The bindings for faces and vertices are meaningful only for shapes that
80       are  made  from faces and vertices. Similarly, the indexed bindings are
81       only used by the shapes that allow indexing. For bindings that  require
82       multiple  normals,  be sure to have at least as many normals defined as
83       are necessary; otherwise, errors will occur.
84

FIELDS

86     SoSFEnum            value
87          Specifies how to bind normals to shapes.
88
89

METHODS

91                         SoNormalBinding()
92          Creates a normal binding node with default settings.
93
94     static SoType       getClassTypeId()
95          Returns type identifier for this class.
96
97

ACTION BEHAVIOR

99       SoGLRenderAction, SoCallbackAction, SoRayPickAction
100          Sets the current normal binding type.
101
102

FILE FORMAT/DEFAULTS

104       NormalBinding {
105          value  PER_VERTEX_INDEXED
106     }
107

SEE ALSO

109       SoMaterialBinding, SoNormal, SoTextureCoordinateBinding, SoVertexShape
110
111
112
113
114                                                        SoNormalBinding(3IV)()
Impressum