1SoLightModel(3IV)() SoLightModel(3IV)()
2
3
4
6 SoLightModel — node that defines the lighting model to use when render‐
7 ing
8
10 SoBase > SoFieldContainer > SoNode > SoLightModel
11
13 #include <Inventor/nodes/SoLightModel.h>
14
15 enum Model {
16 SoLightModel::BASE_COLOR Use only the base (diffuse) object color
17 SoLightModel::PHONG Use Phong lighting model
18 }
19
20 Fields from class SoLightModel:
21
22 SoSFEnum model
23
24 Methods from class SoLightModel:
25
26 SoLightModel()
27 static SoType getClassTypeId()
28
29 Methods from class SoNode:
30
31 void setOverride(SbBool state)
32 SbBool isOverride() const
33 SoNode * copy(SbBool copyConnections = FALSE) const
34 virtual SbBool affectsState() const
35 static SoNode * getByName(const SbName &name)
36 static int getByName(const SbName &name, SoNodeList &list)
37
38 Methods from class SoFieldContainer:
39
40 void setToDefaults()
41 SbBool hasDefaultValues() const
42 SbBool fieldsAreEqual(const SoFieldContainer *fc) const
43 void copyFieldValues(const SoFieldContainer *fc, SbBool
44 copyConnections = FALSE)
45 SbBool set(const char *fieldDataString)
46 void get(SbString &fieldDataString)
47 virtual int getFields(SoFieldList &resultList) const
48 virtual SoField * getField(const SbName &fieldName) const
49 SbBool getFieldName(const SoField *field, SbName &fieldName)
50 const
51 SbBool isNotifyEnabled() const
52 SbBool enableNotify(SbBool flag)
53
54 Methods from class SoBase:
55
56 void ref()
57 void unref() const
58 void unrefNoDelete() const
59 void touch()
60 virtual SoType getTypeId() const
61 SbBool isOfType(SoType type) const
62 virtual void setName(const SbName &name)
63 virtual SbName getName() const
64
65
67 This node defines the lighting model to be used when rendering subse‐
68 quent shapes. The lighting model is specified in the model field. When
69 the default model (Phong lighting) is used, light sources are required
70 in a scene for objects to be easily visible.
71
73 SoSFEnum model
74 Lighting model to use
75
76
78 SoLightModel()
79 Creates a light model node with default settings.
80
81 static SoType getClassTypeId()
82 Returns type identifier for this class.
83
84
86 SoGLRenderAction, SoCallbackAction
87 Sets the current lighting model in the state.
88
89
91 LightModel {
92 model PHONG
93 }
94
96 SoBaseColor, SoEnvironment, SoLight, SoMaterial
97
98
99
100
101 SoLightModel(3IV)()