Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

SoVRMLLight Class Reference

The SoVRMLLight class is a superclass for VRML light nodes. More...

#include <Inventor/VRMLnodes/SoVRMLLight.h>

Inheritance diagram for SoVRMLLight:

SoNode SoFieldContainer SoBase SoVRMLDirectionalLight SoVRMLPointLight SoVRMLSpotLight List of all members.

Public Methods

virtual void GLRender (SoGLRenderAction *action)

Static Public Methods

void initClass (void)

Public Attributes

SoSFBool on
SoSFFloat intensity
SoSFColor color
SoSFFloat ambientIntensity

Protected Methods

 SoVRMLLight (void)
virtual ~SoVRMLLight ()

Detailed Description

The SoVRMLLight class is a superclass for VRML light nodes.


Constructor & Destructor Documentation

SoVRMLLight::SoVRMLLight void    [protected]
 

Constructor.

SoVRMLLight::~SoVRMLLight   [protected, virtual]
 

Destructor.


Member Function Documentation

void SoVRMLLight::initClass void    [static]
 

Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.

Reimplemented from SoNode.

Reimplemented in SoVRMLDirectionalLight, SoVRMLPointLight, and SoVRMLSpotLight.

void SoVRMLLight::GLRender SoGLRenderAction   action [virtual]
 

Action method for the SoGLRenderAction.

This is called during rendering traversals. Nodes influencing the rendering state in any way or who wants to throw geometry primitives at OpenGL overrides this method.

Reimplemented from SoNode.

Reimplemented in SoVRMLDirectionalLight, SoVRMLPointLight, and SoVRMLSpotLight.


Member Data Documentation

SoSFBool SoVRMLLight::on
 

Enable/disable light. Default value is TRUE.

SoSFFloat SoVRMLLight::intensity
 

The light intensity. A value from 0 to 1. Default value is 1.

SoSFColor SoVRMLLight::color
 

The light color. Default value is (1, 1, 1).

SoSFFloat SoVRMLLight::ambientIntensity
 

The light ambient intensity. A value from 0 to 1. Default value is 0.


The documentation for this class was generated from the following files:
Generated on Sat May 24 22:39:54 2003 for Coin by doxygen1.2.18