1SoDirectionalLight(3IV)() SoDirectionalLight(3IV)()
2
3
4
6 SoDirectionalLight — node representing a directional light source
7
9 SoBase > SoFieldContainer > SoNode > SoLight > SoDirectionalLight
10
12 #include <Inventor/nodes/SoDirectionalLight.h>
13
14 Fields from class SoDirectionalLight:
15
16 SoSFVec3f direction
17
18 Fields from class SoLight:
19
20 SoSFBool on
21 SoSFFloat intensity
22 SoSFColor color
23
24 Methods from class SoDirectionalLight:
25
26 SoDirectionalLight()
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 a directional light source that illuminates along
68 rays parallel to a given 3-dimensional vector.
69
71 SoSFVec3f direction
72 Illumination direction vector.
73
74
76 SoDirectionalLight()
77 Creates a directional light source node with default settings.
78
79 static SoType getClassTypeId()
80 Returns type identifier for this class.
81
82
84 SoGLRenderAction
85 Activates this light (if so specified) during traversal. All shape
86 nodes that come after this light in the scene graph are illuminated
87 by this light. The light's direction is affected by the current
88 transformation.
89
90
92 DirectionalLight {
93 on TRUE
94 intensity 1
95 color 1 1 1
96 direction 0 0 -1
97 }
98
100 SoPointLight, SoSpotLight
101
102
103
104
105 SoDirectionalLight(3IV)()