Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

vpspotlight.cpp

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 // ChangeLog
00006 // September 16, 2004 - Bruno de Oliveira Schneider
00007 // - Code typing has been cleaned. DoxyGen documentation started.
00008 // - Removed "vp" prefix from every method name.
00009 // - Removed "location" attribute because it was added to VPLight.
00010 // - Removed the methods: SetLocation, GetLocation.
00011 // August 10, 2000 - Anderson Maciel
00012 // - Classes declaration and methods addition.
00013 // - Includes and text format.
00014 // June 19, 2000 - Rodrigo Berggevist Martins
00015 // - Classes declaration.
00016 // - Constructors and some methods implementation.
00017 // June 08, 2000 - Luciana Porcher Nedel
00018 // - Classes declaration.
00019 // May 22, 2000 - Isabel Harb Manssour
00020 // - Classes declaration.
00021 
00022 #include "vpspotlight.h"
00023 
00024 VPSpotLight::VPSpotLight(VPVector3D a, float bw, float coa,
00025                          VPPoint3D l, VPVector3D d, float r){
00026     attenuation=a;
00027     beamWidth=bw;
00028     cutOffAngle=coa;
00029     location=l;
00030     direction=d;
00031     radius=r;
00032 }
00033 
00034 void VPSpotLight::SetAttenuation(VPVector3D a){
00035     attenuation=a;
00036 }
00037 
00038 VPVector3D VPSpotLight::GetAttenuation(){
00039     return(attenuation);
00040 }
00041 
00042 void VPSpotLight::SetBeamWidth(float bw){
00043     beamWidth=bw;
00044 }
00045 
00046 float VPSpotLight::GetBeamWidth(){
00047     return(beamWidth);
00048 }
00049 
00050 void VPSpotLight::SetCutOffAngle(float coa){
00051     cutOffAngle=coa;
00052 }
00053 
00054 float VPSpotLight::GetCutOffAngle(){
00055     return(cutOffAngle);
00056 }
00057 
00058 void VPSpotLight::SetDirection(VPVector3D d) {
00059     direction = d;
00060 }
00061 
00062 VPVector3D VPSpotLight::GetDirection(){
00063     return(direction);
00064 }
00065 
00066 void VPSpotLight::SetRadius(float r){
00067     radius=r;
00068 }
00069 
00070 float VPSpotLight::GetRadius(){
00071     return(radius);
00072 }

Generated on Tue Sep 6 10:00:07 2005 for VPAT by  doxygen 1.4.4