V-ART
spotlight.cpp
Go to the documentation of this file.
1 
5 #include "vart/spotlight.h"
6 
7 VART::SpotLight::SpotLight(VART::Point4D a, float bw, float coa, VART::Point4D l, VART::Point4D d, float r) {
8 
9  attenuation=a;
10  beamWidth=bw;
11  cutOffAngle=coa;
12  location=l;
13  direction=d;
14  radius=r;
15 }
16 
18  attenuation=a;
19 }
20 
22  return(attenuation);
23 }
24 
26  beamWidth=bw;
27 }
28 
30  return(beamWidth);
31 }
32 
34  cutOffAngle=coa;
35 }
36 
38  return(cutOffAngle);
39 }
40 
42  direction = d;
43 }
44 
46  return(direction);
47 }
48 
50  radius=r;
51 }
52 
54  return(radius);
55 }
Point4D location
Definition: light.h:87
Points and vectors using homogeneous coordinates.
Definition: point4d.h:22
Header file for V-ART class "SpotLight".
Point4D GetDirection(void)
Definition: spotlight.cpp:45
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
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