In file graphics3D/TclLight.h:

namespace yav class TclLight : public TclObject, public Light

TCL interface for a light

Inheritance:


Public Methods

int destroyCmd (int argc, char **argv)
-destroy option
int activeCmd (int argc, char **argv)
-active option
int paramsCmd (int argc, char **argv)
-params TCL command
int showCmd (int argc, char **argv)
-show TCL command
static int list (TclModule *m, int argc, char **argv)
new TCL command callback
static int create (TclModule *m, int argc, char **argv)
new TCL command callback

Public

constructors
TclLight (TclModule *m, CameraOGL *cam)
construct a new directional light
TclLight (TclModule *m, CameraOGL *cam, const GLfloat *ambient, const GLfloat *diffuse, const GLfloat *specular, const GLfloat *position, const GLfloat *direction = 0, GLfloat exponent = 0.0, GLfloat cutoff = 180.0, const GLfloat *attenuation = 0)
construct a new directional light
destructor

Inherited from Light:

Public Methods

void setLight(const GLfloat *ambient, const GLfloat *diffuse, const GLfloat *specular, const GLfloat *position, const GLfloat *direction = 0, GLfloat exponent = 0.0, GLfloat cutoff = 180.0, const GLfloat *attenuation = 0)
GLenum getIndex(void) const
bool isActive(void) const
const GLfloat* getAmbient(void) const
const GLfloat* getDiffuse(void) const
const GLfloat* getSpecular(void) const
const GLfloat* getPosition(void) const
const GLfloat* getDirection(void) const
GLfloat getExponent(void) const
GLfloat getCutoff(void) const
const GLfloat* getAttenuation(void) const
void setAmbient(const GLfloat *ambient)
void setDiffuse(const GLfloat *diffuse)
void setSpecular(const GLfloat *specular)
void setPosition(const GLfloat *position)
void setDirection(const GLfloat *direction)
void setExponent(const GLfloat exponent)
void setCutoff(const GLfloat cutoff)
void setAttenuation(const GLfloat *attenuation)
void glSet(void)
void enable(void)
void disable(void)
void displayFantom(bool disp)
void putInCamera(void)
CameraOGL* getCamera() const

Protected Fields

LightFantom* fantom
CameraOGL* camera
GLenum index
bool active
GLfloat ambient[4]
GLfloat diffuse[4]
GLfloat specular[4]
GLfloat position[4]
GLfloat direction[3]
GLfloat exponent
GLfloat cutoff
GLfloat attenuation[3]

Documentation

TCL interface for a light
constructors

TclLight(TclModule *m, CameraOGL *cam)
construct a new directional light
Parameters:
m - module to create TCL object
cam - camera to apply light in

TclLight(TclModule *m, CameraOGL *cam, const GLfloat *ambient, const GLfloat *diffuse, const GLfloat *specular, const GLfloat *position, const GLfloat *direction = 0, GLfloat exponent = 0.0, GLfloat cutoff = 180.0, const GLfloat *attenuation = 0)
construct a new directional light
Parameters:
m - module to create TCL object
cam - camera to apply light in
ambient - ambient light 4 coefficients
diffuse - diffuse light 4 coefficients
specular - specular light 4 coefficients
position - light position 4 coefficients
direction - spotlight direction 3 coefficients
exponent - spotlight exponent
cutoff - spotlight cutoff (in degrees)
attenuation - spotlight 3 attenuation factors

destructor

int destroyCmd(int argc, char **argv)
-destroy option

int activeCmd(int argc, char **argv)
-active option

int paramsCmd(int argc, char **argv)
-params TCL command

int showCmd(int argc, char **argv)
-show TCL command

static int list(TclModule *m, int argc, char **argv)
new TCL command callback

static int create(TclModule *m, int argc, char **argv)
new TCL command callback


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de