Open Inventor Reference
SoPointLight Class Reference

Node representing a point light source. More...

#include <Inventor/nodes/SoPointLight.h>

Inheritance diagram for SoPointLight:
SoLight SoNode SoFieldContainer SoBase SoPointLightManip

List of all members.

Public Member Functions

 SoPointLight ()
 Creates a point light source node with default settings.
virtual void GLRender (SoGLRenderAction *action)
 Creates a light source during rendering.

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

Fields
SoSFVec3f location
 Location of the source.

Protected Member Functions

virtual ~SoPointLight ()

Detailed Description

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

File Format/Default
PointLight {
  on TRUE
  intensity 1
  color 1 1 1
  location 0 0 1
}
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. The light's location is affected by the current transformation.
See Also
SoDirectionalLight, SoSpotLight

Definition at line 93 of file SoPointLight.h.


Constructor & Destructor Documentation

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

Member Function Documentation

virtual void SoPointLight::GLRender ( SoGLRenderAction action) [virtual]

Reimplemented from SoNode.

Reimplemented in SoPointLightManip.

static void SoPointLight::initClass ( ) [static]

Reimplemented from SoLight.

Reimplemented in SoPointLightManip.


Member Data Documentation

Definition at line 102 of file SoPointLight.h.


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