V-ART
spotlight.h
Go to the documentation of this file.
1 
5 #ifndef VART_SPOTLIGHT_H
6 #define VART_SPOTLIGHT_H
7 
8 #include "vart/light.h"
9 
10 namespace VART {
15  class SpotLight : public Light {
16  public:
17  SpotLight(Point4D a, float bw, float coa, Point4D l, Point4D d, float r);
18  void SetAttenuation( Point4D a );
19  Point4D GetAttenuation( void );
20  void SetBeamWidth( float bw );
21  float GetBeamWidth( void );
22  void SetCutOffAngle( float coa );
23  float GetCutOffAngle( void );
24  void SetDirection( Point4D d );
25  Point4D GetDirection( void );
26  void SetRadius( float r );
27  float GetRadius( void );
28  private:
29  Point4D attenuation;
30  float beamWidth;
31  float cutOffAngle;
32  Point4D direction;
33  float radius;
34  }; // end class declaration
35 } // end namespace
36 #endif
Points and vectors using homogeneous coordinates.
Definition: point4d.h:22
Point4D GetDirection(void)
Definition: spotlight.cpp:45
Header file for V-ART class "Light".
void SetCutOffAngle(float coa)
Definition: spotlight.cpp:33
SpotLight(Point4D a, float bw, float coa, Point4D l, Point4D d, float r)
Definition: spotlight.cpp:7
void SetRadius(float r)
Definition: spotlight.cpp:49
void SetAttenuation(Point4D a)
Definition: spotlight.cpp:17
Spot Light representation.
Definition: spotlight.h:15
float GetBeamWidth(void)
Definition: spotlight.cpp:29
void SetBeamWidth(float bw)
Definition: spotlight.cpp:25
void SetDirection(Point4D d)
Definition: spotlight.cpp:41
Point4D GetAttenuation(void)
Definition: spotlight.cpp:21
float GetRadius(void)
Definition: spotlight.cpp:53
float GetCutOffAngle(void)
Definition: spotlight.cpp:37
Represents a light source.
Definition: light.h:22