SourceLight Class Reference

#include <SourceLight.h>

List of all members.

Public Member Functions

 SourceLight (Color *_ambientColor, Color *_diffuseColor, Color *_specularColor, float *_specularExponent)
 ~SourceLight ()
ColorgetAmbientColor ()
ColorgetDiffuseColor ()
ColorgetSpecularColor ()
float getSpecularExponent ()
float * getOrientation ()
float * getGlobalDirection ()
void setAmbientColor (const float r, const float g, const float b)
void setDiffuseColor (const float r, const float g, const float b)
void setSpecularColor (const float r, const float g, const float b)
void setSpecularExponent (float expo)
void setOrientation (const float a11, const float a12, const float a13, const float a14, const float a21, const float a22, const float a23, const float a24, const float a31, const float a32, const float a33, const float a34, const float a41, const float a42, const float a43, const float a44)

Detailed Description

Class for the Lightsource


Constructor & Destructor Documentation

SourceLight::SourceLight ( Color _ambientColor,
Color _diffuseColor,
Color _specularColor,
float *  _specularExponent 
)

Construct a new SourceLight object

Parameters:
_ambientColor Pointer to the ambient color
_specularColor Pointer to the specular color
_diffuseColor Pointer to the diffuse color
_specularExponent Pointer to the specular exponent
SourceLight::~SourceLight (  ) 

Destroy the object


Member Function Documentation

Color * SourceLight::getAmbientColor (  ) 

Return a pointer to the ambient color

Returns:
Pointer to the ambient color
Color * SourceLight::getDiffuseColor (  ) 

Return a pointer to the diffuse color

Returns:
Pointer to the diffuse color
float * SourceLight::getGlobalDirection (  ) 

Return the global direction of the lightsource

Returns:
The global direction of the lightsource
float * SourceLight::getOrientation (  ) 

Return the orientation of the light - array with 16 elements

Returns:
The orientation matrix packaged in an array with 16 elements
Color * SourceLight::getSpecularColor (  ) 

Return a pointer to the specular color

Returns:
Pointer to the diffuse color
float SourceLight::getSpecularExponent (  ) 

Return the specular exponent

Returns:
The specular exponent
void SourceLight::setAmbientColor ( const float  r,
const float  g,
const float  b 
)

Set the ambient color

Parameters:
r Red part of the color
g Green part of the color
b Blue part of the color
void SourceLight::setDiffuseColor ( const float  r,
const float  g,
const float  b 
)

Set the diffuse color

Parameters:
r Red part of the color
g Green part of the color
b Blue part of the color
void SourceLight::setOrientation ( const float  a11,
const float  a12,
const float  a13,
const float  a14,
const float  a21,
const float  a22,
const float  a23,
const float  a24,
const float  a31,
const float  a32,
const float  a33,
const float  a34,
const float  a41,
const float  a42,
const float  a43,
const float  a44 
)

Sets the orientation of the lightsource

Parameters:
a11 Value of the rotation matrix at row 1, column 1
a12 Value of the rotation matrix at row 1, column 2
a13 Value of the rotation matrix at row 1, column 3
a14 Value of the rotation matrix at row 1, column 4
a21 Value of the rotation matrix at row 2, column 1
a22 Value of the rotation matrix at row 2, column 2
a23 Value of the rotation matrix at row 2, column 3
a24 Value of the rotation matrix at row 2, column 4
a31 Value of the rotation matrix at row 3, column 1
a32 Value of the rotation matrix at row 3, column 2
a33 Value of the rotation matrix at row 3, column 3
a34 Value of the rotation matrix at row 3, column 4
a41 Value of the rotation matrix at row 4, column 1
a42 Value of the rotation matrix at row 4, column 2
a43 Value of the rotation matrix at row 4, column 3
a44 Value of the rotation matrix at row 4, column 4
void SourceLight::setSpecularColor ( const float  r,
const float  g,
const float  b 
)

Set the specular color

Parameters:
r Red part of the color
g Green part of the color
b Blue part of the color
void SourceLight::setSpecularExponent ( float  expo  ) 

Set the specular exponent

Parameters:
expo The specular exponent

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

Generated on Tue Dec 8 16:10:51 2009 for VisLab by  doxygen 1.6.1