Open Inventor Reference
SoLight Class Reference

Abstract base class for all light source nodes. More...

#include <Inventor/nodes/SoLight.h>

Inheritance diagram for SoLight:
SoNode SoFieldContainer SoBase SoDirectionalLight SoPointLight SoSpotLight SoDirectionalLightManip SoPointLightManip SoSpotLightManip

List of all members.

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

Fields
SoSFBool on
 Determines whether the source is active or inactive.
SoSFFloat intensity
 Illumination intensity of light source.
SoSFColor color
 Light source illumination color.

Protected Member Functions

 SoLight ()
 Makes this abstract.
virtual ~SoLight ()

Detailed Description

SoLight is the abstract base class for all light nodes. A light node defines an illumination source that may affect subsequent shapes in the scene graph, depending on the current lighting style. Light sources are affected by the current transformation. A light node under a separator does not affect any objects outside that separator.

You can also use a node kit to create a light; see the reference page for SoLightKit.

Action Behavior
SoGLRenderAction
Activates this light (if so specified) during traversal. All shape nodes that come after this light in the scene graph are illuminated by this light.
See Also
SoDirectionalLight, SoEnvironment, SoLightKit, SoLightModel, SoMaterial, SoPointLight, SoSpotLight

Definition at line 90 of file SoLight.h.


Constructor & Destructor Documentation

SoLight::SoLight ( ) [protected]
virtual SoLight::~SoLight ( ) [protected, virtual]

Member Function Documentation

static void SoLight::initClass ( ) [static]

Member Data Documentation

Definition at line 107 of file SoLight.h.

Valid values range from 0.0 (no illumination) to 1.0 (maximum illumination).

Definition at line 104 of file SoLight.h.

When inactive, the source does not illuminate at all.

Definition at line 100 of file SoLight.h.


The documentation for this class was generated from the following file: