logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoLight — abstract base class for all light source nodes

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.

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.

Fields

SoSFBoolon
          Determines whether the source is active or inactive. When inactive, the source does not illuminate  at
          all.

     SoSFFloatintensity
          Illumination  intensity of light source. Valid values range from 0.0 (no illumination) to 1.0 (maximum
          illumination).

     SoSFColorcolor
          Light source illumination color.

File Format/Defaults

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

Inherits From

       SoBase > SoFieldContainer > SoNode > SoLight

Methods

staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoLight — abstract base class for all light source nodes

See Also

SoDirectionalLight,SoEnvironment,SoLightKit,SoLightModel,SoMaterial,SoPointLight,SoSpotLightSoLight(3IV)()

Synopsis

#include<Inventor/nodes/SoLight.h>

          Fields from class SoLight:

     SoSFBoolonSoSFFloatintensitySoSFColorcolor

          Methods from class SoLight:

     staticSoTypegetClassTypeId()

          Methods from class SoNode:

     voidsetOverride(SbBoolstate)SbBoolisOverride()constSoNode*copy(SbBoolcopyConnections=FALSE)constvirtualSbBoolaffectsState()conststaticSoNode*getByName(constSbName&name)staticintgetByName(constSbName&name,SoNodeList&list)

          Methods from class SoFieldContainer:

     voidsetToDefaults()SbBoolhasDefaultValues()constSbBoolfieldsAreEqual(constSoFieldContainer*fc)constvoidcopyFieldValues(constSoFieldContainer*fc,SbBoolcopyConnections=FALSE)SbBoolset(constchar*fieldDataString)voidget(SbString&fieldDataString)virtualintgetFields(SoFieldList&resultList)constvirtualSoField*getField(constSbName&fieldName)constSbBoolgetFieldName(constSoField*field,SbName&fieldName)constSbBoolisNotifyEnabled()constSbBoolenableNotify(SbBoolflag)

          Methods from class SoBase:

     voidref()voidunref()constvoidunrefNoDelete()constvoidtouch()virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvirtualvoidsetName(constSbName&name)virtualSbNamegetName()const

See Also