![]() |
anatomist
5.1.2
3D neuroimaging data viewer
|
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 |
anatomist::Light::Light | ( | ) |
|
virtual |
|
inline |
|
inline |
|
inline |
Definition at line 62 of file Light.h.
References _background.
|
inline |
Definition at line 63 of file Light.h.
References _background.
|
inline |
Definition at line 76 of file Light.h.
References _constantAttenuation.
|
inline |
|
inline |
carto::Object anatomist::Light::genericDescription | ( | ) | const |
GLuint anatomist::Light::getGLList | ( | ) |
|
inline |
Definition at line 77 of file Light.h.
References _linearAttenuation.
|
inline |
Definition at line 65 of file Light.h.
References _modelAmbient.
|
inline |
Definition at line 66 of file Light.h.
References _modelAmbient.
|
inline |
Definition at line 79 of file Light.h.
References _modelLocalViewer.
|
inline |
Definition at line 80 of file Light.h.
References _modelTwoSide.
|
inline |
|
inline |
|
inline |
Definition at line 78 of file Light.h.
References _quadraticAttenuation.
void anatomist::Light::refreshGLList | ( | ) |
void anatomist::Light::set | ( | const carto::GenericObject & | ) |
void anatomist::Light::set | ( | const carto::Object & | ) |
void anatomist::Light::SetAmbient | ( | float | , |
float | , | ||
float | , | ||
float | |||
) |
Set the four ambient components of the light.
void anatomist::Light::SetAmbientA | ( | float | val | ) |
Set the ambient alpha coefficient of the light.
void anatomist::Light::SetAmbientB | ( | float | val | ) |
Set the ambient blue component of the light.
void anatomist::Light::SetAmbientG | ( | float | val | ) |
Set the ambient green component of the light.
void anatomist::Light::SetAmbientR | ( | float | val | ) |
Set the ambient red component of the light.
void anatomist::Light::SetBackground | ( | float | , |
float | , | ||
float | , | ||
float | |||
) |
Set the four background components of the light.
void anatomist::Light::SetBackgroundA | ( | float | val | ) |
Set the specular alpha coefficient of the light.
void anatomist::Light::SetBackgroundB | ( | float | val | ) |
Set the specular blue component of the light.
void anatomist::Light::SetBackgroundG | ( | float | val | ) |
Set the specular green component of the light.
void anatomist::Light::SetBackgroundR | ( | float | val | ) |
Set the specular red component of the light.
void anatomist::Light::setChanged | ( | bool | = true | ) |
void anatomist::Light::SetConstantAttenuation | ( | float | val | ) |
Set the light spot constant attenuation.
void anatomist::Light::SetDiffuse | ( | float | , |
float | , | ||
float | , | ||
float | |||
) |
Set the four diffuse components of the light .
void anatomist::Light::SetDiffuseA | ( | float | val | ) |
Set the diffuse alpha coefficient of the light.
void anatomist::Light::SetDiffuseB | ( | float | val | ) |
Set the diffuse blue component of the light.
void anatomist::Light::SetDiffuseG | ( | float | val | ) |
Set the diffuse green component of the light.
void anatomist::Light::SetDiffuseR | ( | float | val | ) |
Set the diffuse red component of the light.
void anatomist::Light::SetLinearAttenuation | ( | float | val | ) |
Set the light spot linear attenuation.
void anatomist::Light::SetModelAmbient | ( | float | , |
float | , | ||
float | , | ||
float | |||
) |
Set the four ambient model components of the light.
void anatomist::Light::SetModelAmbientA | ( | float | val | ) |
Set the light ambient model alpha coefficient.
void anatomist::Light::SetModelAmbientB | ( | float | val | ) |
Set the light ambient model blue component.
void anatomist::Light::SetModelAmbientG | ( | float | val | ) |
Set the light ambient model green component.
void anatomist::Light::SetModelAmbientR | ( | float | val | ) |
Set the light ambient model red component.
void anatomist::Light::SetModelLocalViewer | ( | float | val | ) |
Set the light local viewer model.
void anatomist::Light::SetModelTwoSide | ( | float | val | ) |
Set the light two side model.
void anatomist::Light::SetPosition | ( | float | , |
float | , | ||
float | , | ||
float | |||
) |
Set the four position coordinates of the light.
void anatomist::Light::SetPositionW | ( | float | val | ) |
Set the W position of the spot light.
void anatomist::Light::SetPositionX | ( | float | val | ) |
Set the X position of the spot light.
void anatomist::Light::SetPositionY | ( | float | val | ) |
Set the Y position of the spot light.
void anatomist::Light::SetPositionZ | ( | float | val | ) |
Set the Z position of the spot light.
void anatomist::Light::SetQuadraticAttenuation | ( | float | val | ) |
Set the light spot quadratic attenuation.
void anatomist::Light::SetSpecular | ( | float | , |
float | , | ||
float | , | ||
float | |||
) |
Set the four specular components of the light.
void anatomist::Light::SetSpecularA | ( | float | val | ) |
Set the specular alpha coefficient of the light.
void anatomist::Light::SetSpecularB | ( | float | val | ) |
Set the specular blue component of the light.
void anatomist::Light::SetSpecularG | ( | float | val | ) |
Set the specular green component of the light.
void anatomist::Light::SetSpecularR | ( | float | val | ) |
Set the specular red component of the light.
void anatomist::Light::SetSpotCutoff | ( | float | val | ) |
Set the light spot cutoff angle.
void anatomist::Light::SetSpotDirection | ( | float | , |
float | , | ||
float | |||
) |
Set the three spot direction components of the light.
void anatomist::Light::SetSpotDirectionX | ( | float | val | ) |
Set the X spot light direction.
void anatomist::Light::SetSpotDirectionY | ( | float | val | ) |
Set the Y spot ligth direction.
void anatomist::Light::SetSpotDirectionZ | ( | float | val | ) |
Set the Z spot light direction.
void anatomist::Light::SetSpotExponent | ( | float | val | ) |
Set the light spot attenuation exponent.
|
inline |
|
inline |
|
inline |
Definition at line 75 of file Light.h.
References _spotCutoff.
|
inline |
Definition at line 71 of file Light.h.
References _spotDirection.
|
inline |
Definition at line 72 of file Light.h.
References _spotDirection.
|
inline |
Definition at line 74 of file Light.h.
References _spotExponent.
|
protected |
|
protected |
Definition at line 184 of file Light.h.
Referenced by Background().
|
protected |
Definition at line 189 of file Light.h.
Referenced by ConstantAttenuation().
|
protected |
|
protected |
Definition at line 190 of file Light.h.
Referenced by LinearAttenuation().
|
protected |
Definition at line 192 of file Light.h.
Referenced by ModelAmbient().
|
protected |
Definition at line 193 of file Light.h.
Referenced by ModelLocalViewer().
|
protected |
Definition at line 194 of file Light.h.
Referenced by ModelTwoSide().
|
protected |
Definition at line 185 of file Light.h.
Referenced by Position().
|
protected |
Definition at line 191 of file Light.h.
Referenced by QuadraticAttenuation().
|
protected |
Definition at line 183 of file Light.h.
Referenced by Specular().
|
protected |
Definition at line 188 of file Light.h.
Referenced by SpotCutoff().
|
protected |
Definition at line 186 of file Light.h.
Referenced by SpotDirection().
|
protected |
Definition at line 187 of file Light.h.
Referenced by SpotExponent().