Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

ThingSpotlight Class Reference

#include <ThingSpotlight.h>

Inherits ThingLight.

Inheritance diagram for ThingSpotlight:

Inheritance graph
[legend]
Collaboration diagram for ThingSpotlight:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ThingSpotlight (float x_direction, float y_direction, float z_direction)
 constructor, direction can be set directly in the constructor
 ~ThingSpotlight (void)
void setSpotDirection (float x, float y, float z)
 set the direction of the spotlight
void setSpotExponent (float exp)
 set the exponent of the spotlight
void setSpotCutoff (float cutoffAngle)
 set the cutoff angle of the light cone
TransformgetSpotDirection ()
 get the spot direction
float getSpotExponent ()
 get the spot exponent
float getSpotCutoff ()
 get the cutoff angle of the light cone
void init ()
 initialize the spotlight, should be called in at last method from setting the light up in the openGL init()
void render ()
 render the spotlight (e.g. Transformation and enabling/disabling), should be called in the openGL display() method
void setThingTransform (Thing *ttrans)
void setLightPosition ()

Public Attributes

int light

Private Attributes

ThingTransformtt
Transform direction
float position [4]
float exponent
float angle

Constructor & Destructor Documentation

ThingSpotlight::ThingSpotlight float  x_direction,
float  y_direction,
float  z_direction
 

constructor, direction can be set directly in the constructor

Parameters:
x-part of the direction vector
y-part of the direction vector
z-part of the direction vector

ThingSpotlight::~ThingSpotlight void   ) 
 


Member Function Documentation

float ThingSpotlight::getSpotCutoff  ) 
 

get the cutoff angle of the light cone

Returns:
cutogg angle of the light cone

Transform * ThingSpotlight::getSpotDirection  ) 
 

get the spot direction

Returns:
Transform object with the spot direction

float ThingSpotlight::getSpotExponent  ) 
 

get the spot exponent

Returns:
spot exponent

void ThingSpotlight::init  )  [virtual]
 

initialize the spotlight, should be called in at last method from setting the light up in the openGL init()

Reimplemented from ThingLight.

void ThingSpotlight::render  )  [virtual]
 

render the spotlight (e.g. Transformation and enabling/disabling), should be called in the openGL display() method

Reimplemented from ThingLight.

void ThingSpotlight::setLightPosition  ) 
 

void ThingSpotlight::setSpotCutoff float  cutoffAngle  ) 
 

set the cutoff angle of the light cone

Parameters:
cutoff angle of the light cone

void ThingSpotlight::setSpotDirection float  x,
float  y,
float  z
 

set the direction of the spotlight

Parameters:
x-part of the direction vector
y-part of the direction vector
z-part of the direction vector

void ThingSpotlight::setSpotExponent float  exp  ) 
 

set the exponent of the spotlight

Parameters:
new exponent of the spotlight

void ThingSpotlight::setThingTransform Thing ttrans  ) 
 


Member Data Documentation

float ThingSpotlight::angle [private]
 

Transform ThingSpotlight::direction [private]
 

float ThingSpotlight::exponent [private]
 

int ThingSpotlight::light
 

float ThingSpotlight::position[4] [private]
 

Reimplemented from ThingLight.

ThingTransform* ThingSpotlight::tt [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 17:42:34 2005 for Loud and Proud by doxygen 1.3.8