Assignments Assignments

sphereLight.h
Go to the documentation of this file.
1#ifndef SPHERE_LIGHT_INCLUDED
2#define SPHERE_LIGHT_INCLUDED
3#include "pointLight.h"
4
5 namespace Ray
6{
11 class SphereLight : public PointLight
12 {
13 protected:
15 double _radius;
16
17 public:
19 static std::string Directive( void ){ return "light_sphere"; }
20
22 // Light methods //
24 private:
25 void _write( std::ostream &stream ) const;
26 void _read( std::istream &stream );
27 public:
28 std::string name( void ) const { return "sphere light"; }
29 Util::Point3D transparency( const class RayShapeIntersectionInfo &iInfo , const class Shape &shape , Util::Point3D cLimit , unsigned int samples , unsigned int tIdx ) const;
30 };
31}
32#endif // SPHERE_LIGHT_INCLUDED
33
34
Ray::PointLight
Definition pointLight.h:9
Ray::RayShapeIntersectionInfo
Definition scene.h:223
Ray::Shape
Definition shape.h:90
Ray::SphereLight
Definition sphereLight.h:12
Ray::SphereLight::Directive
static std::string Directive(void)
Definition sphereLight.h:19
Ray::SphereLight::_write
void _write(std::ostream &stream) const
Definition sphereLight.cpp:22
Ray::SphereLight::_read
void _read(std::istream &stream)
Definition sphereLight.cpp:16
Ray::SphereLight::transparency
Util::Point3D transparency(const class RayShapeIntersectionInfo &iInfo, const class Shape &shape, Util::Point3D cLimit, unsigned int samples, unsigned int tIdx) const
Definition sphereLight.todo.cpp:13
Ray::SphereLight::name
std::string name(void) const
Definition sphereLight.h:28
Ray::SphereLight::_radius
double _radius
Definition sphereLight.h:15
Util::Point< 3 >
Ray
Definition box.h:7
pointLight.h