anatomist  5.1.2
3D neuroimaging data viewer
anatomist::Light Class Reference

Light used for OpenGL in 3D windows. More...

#include <anatomist/color/Light.h>

Public Member Functions

 Light ()
 
virtual ~Light ()
 
GLfloat * Ambient ()
 
GLfloat Ambient (int i)
 
GLfloat * Diffuse ()
 
GLfloat Diffuse (int i)
 
GLfloat * Specular ()
 
GLfloat Specular (int i)
 
GLfloat * Background ()
 
GLfloat Background (int i)
 
GLfloat * ModelAmbient ()
 
GLfloat ModelAmbient (int i)
 
GLfloat * Position ()
 
GLfloat Position (int i)
 
GLfloat * SpotDirection ()
 
GLfloat SpotDirection (int i)
 
GLfloat SpotExponent ()
 
GLfloat SpotCutoff ()
 
GLfloat ConstantAttenuation ()
 
GLfloat LinearAttenuation ()
 
GLfloat QuadraticAttenuation ()
 
GLfloat ModelLocalViewer ()
 
GLfloat ModelTwoSide ()
 
void SetSpotExponent (float val)
 Set the light spot attenuation exponent. More...
 
void SetSpotCutoff (float val)
 Set the light spot cutoff angle. More...
 
void SetConstantAttenuation (float val)
 Set the light spot constant attenuation. More...
 
void SetLinearAttenuation (float val)
 Set the light spot linear attenuation. More...
 
void SetQuadraticAttenuation (float val)
 Set the light spot quadratic attenuation. More...
 
void SetModelLocalViewer (float val)
 Set the light local viewer model. More...
 
void SetModelTwoSide (float val)
 Set the light two side model. More...
 
void SetPosition (float, float, float, float)
 Set the four position coordinates of the light. More...
 
void SetPositionX (float val)
 Set the X position of the spot light. More...
 
void SetPositionY (float val)
 Set the Y position of the spot light. More...
 
void SetPositionZ (float val)
 Set the Z position of the spot light. More...
 
void SetPositionW (float val)
 Set the W position of the spot light. More...
 
void SetSpotDirection (float, float, float)
 Set the three spot direction components of the light. More...
 
void SetSpotDirectionX (float val)
 Set the X spot light direction. More...
 
void SetSpotDirectionY (float val)
 Set the Y spot ligth direction. More...
 
void SetSpotDirectionZ (float val)
 Set the Z spot light direction. More...
 
void SetModelAmbient (float, float, float, float)
 Set the four ambient model components of the light. More...
 
void SetModelAmbientR (float val)
 Set the light ambient model red component. More...
 
void SetModelAmbientG (float val)
 Set the light ambient model green component. More...
 
void SetModelAmbientB (float val)
 Set the light ambient model blue component. More...
 
void SetModelAmbientA (float val)
 Set the light ambient model alpha coefficient. More...
 
void SetAmbient (float, float, float, float)
 Set the four ambient components of the light. More...
 
void SetAmbientR (float val)
 Set the ambient red component of the light. More...
 
void SetAmbientG (float val)
 Set the ambient green component of the light. More...
 
void SetAmbientB (float val)
 Set the ambient blue component of the light. More...
 
void SetAmbientA (float val)
 Set the ambient alpha coefficient of the light. More...
 
void SetDiffuse (float, float, float, float)
 Set the four diffuse components of the light . More...
 
void SetDiffuseR (float val)
 Set the diffuse red component of the light. More...
 
void SetDiffuseG (float val)
 Set the diffuse green component of the light. More...
 
void SetDiffuseB (float val)
 Set the diffuse blue component of the light. More...
 
void SetDiffuseA (float val)
 Set the diffuse alpha coefficient of the light. More...
 
void SetSpecular (float, float, float, float)
 Set the four specular components of the light. More...
 
void SetSpecularR (float val)
 Set the specular red component of the light. More...
 
void SetSpecularG (float val)
 Set the specular green component of the light. More...
 
void SetSpecularB (float val)
 Set the specular blue component of the light. More...
 
void SetSpecularA (float val)
 Set the specular alpha coefficient of the light. More...
 
void SetBackground (float, float, float, float)
 Set the four background components of the light. More...
 
void SetBackgroundR (float val)
 Set the specular red component of the light. More...
 
void SetBackgroundG (float val)
 Set the specular green component of the light. More...
 
void SetBackgroundB (float val)
 Set the specular blue component of the light. More...
 
void SetBackgroundA (float val)
 Set the specular alpha coefficient of the light. More...
 
GLuint getGLList ()
 
void refreshGLList ()
 
void setChanged (bool=true)
 
void set (const carto::GenericObject &)
 
void set (const carto::Object &)
 
carto::Object genericDescription () const
 

Protected Attributes

GLfloat _ambient [4]
 
GLfloat _diffuse [4]
 
GLfloat _specular [4]
 
GLfloat _background [4]
 
GLfloat _position [4]
 
GLfloat _spotDirection [3]
 
GLfloat _spotExponent
 
GLfloat _spotCutoff
 
GLfloat _constantAttenuation
 
GLfloat _linearAttenuation
 
GLfloat _quadraticAttenuation
 
GLfloat _modelAmbient [4]
 
GLfloat _modelLocalViewer
 
GLfloat _modelTwoSide
 
GLuint _GLList
 
bool _GLLRefreshFlag
 

Detailed Description

Light used for OpenGL in 3D windows.

Definition at line 47 of file Light.h.

Constructor & Destructor Documentation

◆ Light()

anatomist::Light::Light ( )

◆ ~Light()

virtual anatomist::Light::~Light ( )
virtual

Member Function Documentation

◆ Ambient() [1/2]

GLfloat* anatomist::Light::Ambient ( )
inline

Definition at line 53 of file Light.h.

References _ambient.

◆ Ambient() [2/2]

GLfloat anatomist::Light::Ambient ( int  i)
inline

Definition at line 54 of file Light.h.

References _ambient.

◆ Background() [1/2]

GLfloat* anatomist::Light::Background ( )
inline

Definition at line 62 of file Light.h.

References _background.

◆ Background() [2/2]

GLfloat anatomist::Light::Background ( int  i)
inline

Definition at line 63 of file Light.h.

References _background.

◆ ConstantAttenuation()

GLfloat anatomist::Light::ConstantAttenuation ( )
inline

Definition at line 76 of file Light.h.

References _constantAttenuation.

◆ Diffuse() [1/2]

GLfloat* anatomist::Light::Diffuse ( )
inline

Definition at line 56 of file Light.h.

References _diffuse.

◆ Diffuse() [2/2]

GLfloat anatomist::Light::Diffuse ( int  i)
inline

Definition at line 57 of file Light.h.

References _diffuse.

◆ genericDescription()

carto::Object anatomist::Light::genericDescription ( ) const

◆ getGLList()

GLuint anatomist::Light::getGLList ( )

◆ LinearAttenuation()

GLfloat anatomist::Light::LinearAttenuation ( )
inline

Definition at line 77 of file Light.h.

References _linearAttenuation.

◆ ModelAmbient() [1/2]

GLfloat* anatomist::Light::ModelAmbient ( )
inline

Definition at line 65 of file Light.h.

References _modelAmbient.

◆ ModelAmbient() [2/2]

GLfloat anatomist::Light::ModelAmbient ( int  i)
inline

Definition at line 66 of file Light.h.

References _modelAmbient.

◆ ModelLocalViewer()

GLfloat anatomist::Light::ModelLocalViewer ( )
inline

Definition at line 79 of file Light.h.

References _modelLocalViewer.

◆ ModelTwoSide()

GLfloat anatomist::Light::ModelTwoSide ( )
inline

Definition at line 80 of file Light.h.

References _modelTwoSide.

◆ Position() [1/2]

GLfloat* anatomist::Light::Position ( )
inline

Definition at line 68 of file Light.h.

References _position.

◆ Position() [2/2]

GLfloat anatomist::Light::Position ( int  i)
inline

Definition at line 69 of file Light.h.

References _position.

◆ QuadraticAttenuation()

GLfloat anatomist::Light::QuadraticAttenuation ( )
inline

Definition at line 78 of file Light.h.

References _quadraticAttenuation.

◆ refreshGLList()

void anatomist::Light::refreshGLList ( )

◆ set() [1/2]

void anatomist::Light::set ( const carto::GenericObject )

◆ set() [2/2]

void anatomist::Light::set ( const carto::Object )

◆ SetAmbient()

void anatomist::Light::SetAmbient ( float  ,
float  ,
float  ,
float   
)

Set the four ambient components of the light.

◆ SetAmbientA()

void anatomist::Light::SetAmbientA ( float  val)

Set the ambient alpha coefficient of the light.

◆ SetAmbientB()

void anatomist::Light::SetAmbientB ( float  val)

Set the ambient blue component of the light.

◆ SetAmbientG()

void anatomist::Light::SetAmbientG ( float  val)

Set the ambient green component of the light.

◆ SetAmbientR()

void anatomist::Light::SetAmbientR ( float  val)

Set the ambient red component of the light.

◆ SetBackground()

void anatomist::Light::SetBackground ( float  ,
float  ,
float  ,
float   
)

Set the four background components of the light.

◆ SetBackgroundA()

void anatomist::Light::SetBackgroundA ( float  val)

Set the specular alpha coefficient of the light.

◆ SetBackgroundB()

void anatomist::Light::SetBackgroundB ( float  val)

Set the specular blue component of the light.

◆ SetBackgroundG()

void anatomist::Light::SetBackgroundG ( float  val)

Set the specular green component of the light.

◆ SetBackgroundR()

void anatomist::Light::SetBackgroundR ( float  val)

Set the specular red component of the light.

◆ setChanged()

void anatomist::Light::setChanged ( bool  = true)

◆ SetConstantAttenuation()

void anatomist::Light::SetConstantAttenuation ( float  val)

Set the light spot constant attenuation.

◆ SetDiffuse()

void anatomist::Light::SetDiffuse ( float  ,
float  ,
float  ,
float   
)

Set the four diffuse components of the light .

◆ SetDiffuseA()

void anatomist::Light::SetDiffuseA ( float  val)

Set the diffuse alpha coefficient of the light.

◆ SetDiffuseB()

void anatomist::Light::SetDiffuseB ( float  val)

Set the diffuse blue component of the light.

◆ SetDiffuseG()

void anatomist::Light::SetDiffuseG ( float  val)

Set the diffuse green component of the light.

◆ SetDiffuseR()

void anatomist::Light::SetDiffuseR ( float  val)

Set the diffuse red component of the light.

◆ SetLinearAttenuation()

void anatomist::Light::SetLinearAttenuation ( float  val)

Set the light spot linear attenuation.

◆ SetModelAmbient()

void anatomist::Light::SetModelAmbient ( float  ,
float  ,
float  ,
float   
)

Set the four ambient model components of the light.

◆ SetModelAmbientA()

void anatomist::Light::SetModelAmbientA ( float  val)

Set the light ambient model alpha coefficient.

◆ SetModelAmbientB()

void anatomist::Light::SetModelAmbientB ( float  val)

Set the light ambient model blue component.

◆ SetModelAmbientG()

void anatomist::Light::SetModelAmbientG ( float  val)

Set the light ambient model green component.

◆ SetModelAmbientR()

void anatomist::Light::SetModelAmbientR ( float  val)

Set the light ambient model red component.

◆ SetModelLocalViewer()

void anatomist::Light::SetModelLocalViewer ( float  val)

Set the light local viewer model.

◆ SetModelTwoSide()

void anatomist::Light::SetModelTwoSide ( float  val)

Set the light two side model.

◆ SetPosition()

void anatomist::Light::SetPosition ( float  ,
float  ,
float  ,
float   
)

Set the four position coordinates of the light.

◆ SetPositionW()

void anatomist::Light::SetPositionW ( float  val)

Set the W position of the spot light.

◆ SetPositionX()

void anatomist::Light::SetPositionX ( float  val)

Set the X position of the spot light.

◆ SetPositionY()

void anatomist::Light::SetPositionY ( float  val)

Set the Y position of the spot light.

◆ SetPositionZ()

void anatomist::Light::SetPositionZ ( float  val)

Set the Z position of the spot light.

◆ SetQuadraticAttenuation()

void anatomist::Light::SetQuadraticAttenuation ( float  val)

Set the light spot quadratic attenuation.

◆ SetSpecular()

void anatomist::Light::SetSpecular ( float  ,
float  ,
float  ,
float   
)

Set the four specular components of the light.

◆ SetSpecularA()

void anatomist::Light::SetSpecularA ( float  val)

Set the specular alpha coefficient of the light.

◆ SetSpecularB()

void anatomist::Light::SetSpecularB ( float  val)

Set the specular blue component of the light.

◆ SetSpecularG()

void anatomist::Light::SetSpecularG ( float  val)

Set the specular green component of the light.

◆ SetSpecularR()

void anatomist::Light::SetSpecularR ( float  val)

Set the specular red component of the light.

◆ SetSpotCutoff()

void anatomist::Light::SetSpotCutoff ( float  val)

Set the light spot cutoff angle.

◆ SetSpotDirection()

void anatomist::Light::SetSpotDirection ( float  ,
float  ,
float   
)

Set the three spot direction components of the light.

◆ SetSpotDirectionX()

void anatomist::Light::SetSpotDirectionX ( float  val)

Set the X spot light direction.

◆ SetSpotDirectionY()

void anatomist::Light::SetSpotDirectionY ( float  val)

Set the Y spot ligth direction.

◆ SetSpotDirectionZ()

void anatomist::Light::SetSpotDirectionZ ( float  val)

Set the Z spot light direction.

◆ SetSpotExponent()

void anatomist::Light::SetSpotExponent ( float  val)

Set the light spot attenuation exponent.

◆ Specular() [1/2]

GLfloat* anatomist::Light::Specular ( )
inline

Definition at line 59 of file Light.h.

References _specular.

◆ Specular() [2/2]

GLfloat anatomist::Light::Specular ( int  i)
inline

Definition at line 60 of file Light.h.

References _specular.

◆ SpotCutoff()

GLfloat anatomist::Light::SpotCutoff ( )
inline

Definition at line 75 of file Light.h.

References _spotCutoff.

◆ SpotDirection() [1/2]

GLfloat* anatomist::Light::SpotDirection ( )
inline

Definition at line 71 of file Light.h.

References _spotDirection.

◆ SpotDirection() [2/2]

GLfloat anatomist::Light::SpotDirection ( int  i)
inline

Definition at line 72 of file Light.h.

References _spotDirection.

◆ SpotExponent()

GLfloat anatomist::Light::SpotExponent ( )
inline

Definition at line 74 of file Light.h.

References _spotExponent.

Member Data Documentation

◆ _ambient

GLfloat anatomist::Light::_ambient[4]
protected

Definition at line 181 of file Light.h.

Referenced by Ambient().

◆ _background

GLfloat anatomist::Light::_background[4]
protected

Definition at line 184 of file Light.h.

Referenced by Background().

◆ _constantAttenuation

GLfloat anatomist::Light::_constantAttenuation
protected

Definition at line 189 of file Light.h.

Referenced by ConstantAttenuation().

◆ _diffuse

GLfloat anatomist::Light::_diffuse[4]
protected

Definition at line 182 of file Light.h.

Referenced by Diffuse().

◆ _GLList

GLuint anatomist::Light::_GLList
protected

Definition at line 195 of file Light.h.

◆ _GLLRefreshFlag

bool anatomist::Light::_GLLRefreshFlag
protected

Definition at line 196 of file Light.h.

◆ _linearAttenuation

GLfloat anatomist::Light::_linearAttenuation
protected

Definition at line 190 of file Light.h.

Referenced by LinearAttenuation().

◆ _modelAmbient

GLfloat anatomist::Light::_modelAmbient[4]
protected

Definition at line 192 of file Light.h.

Referenced by ModelAmbient().

◆ _modelLocalViewer

GLfloat anatomist::Light::_modelLocalViewer
protected

Definition at line 193 of file Light.h.

Referenced by ModelLocalViewer().

◆ _modelTwoSide

GLfloat anatomist::Light::_modelTwoSide
protected

Definition at line 194 of file Light.h.

Referenced by ModelTwoSide().

◆ _position

GLfloat anatomist::Light::_position[4]
protected

Definition at line 185 of file Light.h.

Referenced by Position().

◆ _quadraticAttenuation

GLfloat anatomist::Light::_quadraticAttenuation
protected

Definition at line 191 of file Light.h.

Referenced by QuadraticAttenuation().

◆ _specular

GLfloat anatomist::Light::_specular[4]
protected

Definition at line 183 of file Light.h.

Referenced by Specular().

◆ _spotCutoff

GLfloat anatomist::Light::_spotCutoff
protected

Definition at line 188 of file Light.h.

Referenced by SpotCutoff().

◆ _spotDirection

GLfloat anatomist::Light::_spotDirection[3]
protected

Definition at line 186 of file Light.h.

Referenced by SpotDirection().

◆ _spotExponent

GLfloat anatomist::Light::_spotExponent
protected

Definition at line 187 of file Light.h.

Referenced by SpotExponent().


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