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

SoDirectionalLight — node representing a directional light source

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  direction  is  affected  by  the  current
          transformation.

Description

       This  node  defines  a  directional  light  source  that  illuminates  along  rays  parallel  to  a given
       3-dimensional vector.

Fields

SoSFVec3fdirection
          Illumination direction vector.

File Format/Defaults

DirectionalLight{onTRUEintensity1color111direction00-1}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoLight > SoDirectionalLight

Methods

SoDirectionalLight()
          Creates a directional light source node with default settings.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoDirectionalLight — node representing a directional light source

See Also

SoPointLight,SoSpotLightSoDirectionalLight(3IV)()

Synopsis

#include<Inventor/nodes/SoDirectionalLight.h>

          Fields from class SoDirectionalLight:

     SoSFVec3fdirection

          Fields from class SoLight:

     SoSFBoolonSoSFFloatintensitySoSFColorcolor

          Methods from class SoDirectionalLight:

                         SoDirectionalLight()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