1SoPointLight(3IV)()                                        SoPointLight(3IV)()
2
3
4

NAME

6       SoPointLight — node representing a point light source
7

INHERITS FROM

9       SoBase > SoFieldContainer > SoNode > SoLight > SoPointLight
10

SYNOPSIS

12       #include <Inventor/nodes/SoPointLight.h>
13
14          Fields from class SoPointLight:
15
16     SoSFVec3f           location
17
18          Fields from class SoLight:
19
20     SoSFBool            on
21     SoSFFloat           intensity
22     SoSFColor           color
23
24          Methods from class SoPointLight:
25
26                         SoPointLight()
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

DESCRIPTION

67       This  node defines a point light source at a fixed 3D location. A point
68       source illuminates equally in all directions;  that  is,  it  is  omni-
69       directional.
70

FIELDS

72     SoSFVec3f           location
73          Location of the source.
74
75

METHODS

77                         SoPointLight()
78          Creates a point light source node with default settings.
79
80     static SoType       getClassTypeId()
81          Returns type identifier for this class.
82
83

ACTION BEHAVIOR

85       SoGLRenderAction
86          Activates  this  light (if so specified) during traversal. All shape
87          nodes that come after this light in the scene graph are  illuminated
88          by  this  light.  The  light's  location  is affected by the current
89          transformation.
90
91

FILE FORMAT/DEFAULTS

93       PointLight {
94          on         TRUE
95          intensity  1
96          color      1 1 1
97          location   0 0 1
98     }
99

SEE ALSO

101       SoDirectionalLight, SoSpotLight
102
103
104
105
106                                                           SoPointLight(3IV)()
Impressum