Subversion Repositories gelsvn

Rev

Rev 346 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 346 Rev 349
1
#ifndef __PATHTRACER_OMNI__HPP__
1
#ifndef __PATHTRACER_OMNI__HPP__
2
#define __PATHTRACER_OMNI__HPP__
2
#define __PATHTRACER_OMNI__HPP__
3
 
3
 
4
#include "luminaire.hpp"
4
#include "luminaire.hpp"
5
 
5
 
6
class omni : public luminaire
6
class omni : public luminaire
7
{
7
{
8
public:
8
public:
9
	omni(const CGLA::Vec3f& phi);
9
    omni(const CGLA::Vec3f& phi);
10
 
10
 
11
	void set_power(const CGLA::Vec3f& phi);
11
    void set_power(const CGLA::Vec3f& phi);
12
 
12
 
13
	bool sample(const ray&, const hit_info&, CGLA::Vec3f& L, 
13
    bool sample(const ray&, const hit_info&, CGLA::Vec3f& L,
14
		CGLA::Vec3f& w) const;
14
                CGLA::Vec3f& w) const;
15
 
15
 
16
private:
16
private:
17
 
17
 
18
	//power in W
18
    //power in W
19
	CGLA::Vec3f power_;
19
    CGLA::Vec3f power_;
20
 
20
 
21
};
21
};
22
 
22
 
23
#endif
23
#endif
24
 
24
 
25
//02566 framework, Anders Wang Kristensen, awk@imm.dtu.dk, 2007
25
//02566 framework, Anders Wang Kristensen, awk@imm.dtu.dk, 2007
26
 
26
 
27
 
27
 
28

Generated by GNU Enscript 1.6.6.
28

Generated by GNU Enscript 1.6.6.
29
 
29
 
30
 
30
 
31
 
31