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

SoPointLight — node representing a point 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  location  is  affected  by  the  current
          transformation.

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.

Fields

SoSFVec3flocation
          Location of the source.

File Format/Defaults

PointLight{onTRUEintensity1color111location001}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoLight > SoPointLight

Methods

SoPointLight()
          Creates a point light source node with default settings.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoPointLight — node representing a point light source

See Also

SoDirectionalLight,SoSpotLightSoPointLight(3IV)()

Synopsis

#include<Inventor/nodes/SoPointLight.h>

          Fields from class SoPointLight:

     SoSFVec3flocation

          Fields from class SoLight:

     SoSFBoolonSoSFFloatintensitySoSFColorcolor

          Methods from class SoPointLight:

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