1SoLight(3IV)()                                                  SoLight(3IV)()
2
3
4

NAME

6       SoLight — abstract base class for all light source nodes
7

INHERITS FROM

9       SoBase > SoFieldContainer > SoNode > SoLight
10

SYNOPSIS

12       #include <Inventor/nodes/SoLight.h>
13
14          Fields from class SoLight:
15
16     SoSFBool            on
17     SoSFFloat           intensity
18     SoSFColor           color
19
20          Methods from class SoLight:
21
22     static SoType       getClassTypeId()
23
24          Methods from class SoNode:
25
26     void                setOverride(SbBool state)
27     SbBool              isOverride() const
28     SoNode *            copy(SbBool copyConnections = FALSE) const
29     virtual SbBool      affectsState() const
30     static SoNode *     getByName(const SbName &name)
31     static int          getByName(const SbName &name, SoNodeList &list)
32
33          Methods from class SoFieldContainer:
34
35     void                setToDefaults()
36     SbBool              hasDefaultValues() const
37     SbBool              fieldsAreEqual(const SoFieldContainer *fc) const
38     void                copyFieldValues(const  SoFieldContainer  *fc,  SbBool
39                              copyConnections = FALSE)
40     SbBool              set(const char *fieldDataString)
41     void                get(SbString &fieldDataString)
42     virtual int         getFields(SoFieldList &resultList) const
43     virtual SoField *   getField(const SbName &fieldName) const
44     SbBool              getFieldName(const SoField *field, SbName &fieldName)
45                              const
46     SbBool              isNotifyEnabled() const
47     SbBool              enableNotify(SbBool flag)
48
49          Methods from class SoBase:
50
51     void                ref()
52     void                unref() const
53     void                unrefNoDelete() const
54     void                touch()
55     virtual SoType      getTypeId() const
56     SbBool              isOfType(SoType type) const
57     virtual void        setName(const SbName &name)
58     virtual SbName      getName() const
59
60

DESCRIPTION

62       SoLight  is  the  abstract base class for all light nodes. A light node
63       defines an illumination source that may affect subsequent shapes in the
64       scene graph, depending on the current lighting style. Light sources are
65       affected by the current transformation. A light node under a  separator
66       does not affect any objects outside that separator.
67
68       You  can  also use a node kit to create a light; see the reference page
69       for SoLightKit.
70

FIELDS

72     SoSFBool            on
73          Determines whether the source is active or inactive. When  inactive,
74          the source does not illuminate at all.
75
76     SoSFFloat           intensity
77          Illumination  intensity of light source. Valid values range from 0.0
78          (no illumination) to 1.0 (maximum illumination).
79
80     SoSFColor           color
81          Light source illumination color.
82
83

METHODS

85     static SoType       getClassTypeId()
86          Returns type identifier for this class.
87
88

ACTION BEHAVIOR

90       SoGLRenderAction
91          Activates this light (if so specified) during traversal.  All  shape
92          nodes  that come after this light in the scene graph are illuminated
93          by this light.
94
95

FILE FORMAT/DEFAULTS

97       This is an abstract class. See the reference page of  a  derived  class
98       for the format and default values.
99

SEE ALSO

101       SoDirectionalLight,  SoEnvironment,  SoLightKit,  SoLightModel, SoMate‐
102       rial, SoPointLight, SoSpotLight
103
104
105
106
107                                                                SoLight(3IV)()
Impressum