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
5namespace 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
Definition: pointLight.h:9
Definition: scene.h:223
Definition: shape.h:89
Definition: sphereLight.h:12
static std::string Directive(void)
Definition: sphereLight.h:19
void _write(std::ostream &stream) const
Definition: sphereLight.cpp:22
void _read(std::istream &stream)
Definition: sphereLight.cpp:16
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
std::string name(void) const
Definition: sphereLight.h:28
double _radius
Definition: sphereLight.h:15
Definition: box.h:7