| 1 |
//---------------------------------------------------------------------------// |
| 2 |
// Ray_Tracer.hh |
| 3 |
//---------------------------------------------------------------------------// |
| 4 |
|
| 5 |
#ifndef mixed_language_src_Ray_Tracer_hh |
| 6 |
#define mixed_language_src_Ray_Tracer_hh |
| 7 |
|
| 8 |
#include <vector> |
| 9 |
#include "Ray.hh" |
| 10 |
|
| 11 |
namespace tribits_mixed |
| 12 |
{ |
| 13 |
|
| 14 |
//---------------------------------------------------------------------------// |
| 15 |
|
| 16 |
class Ray_Tracer |
| 17 |
{ |
| 18 |
public: |
| 19 |
// Typedefs. |
| 20 |
typedef std::vector<double> Vec_Dbl; |
| 21 |
typedef Ray::Space_Vector Space_Vector; |
| 22 |
|
| 23 |
private: |
| 24 |
|
| 25 |
// Mesh dimensions. |
| 26 |
Vec_Dbl d_x, d_y, d_z; |
| 27 |
|
| 28 |
// Material opacities. |
| 29 |
Vec_Dbl d_sigma; |
| 30 |
|
| 31 |
public: |
| 32 |
// Constructor. |
| 33 |
Ray_Tracer(const Vec_Dbl &x, const Vec_Dbl &y, const Vec_Dbl &z, |
| 34 |
const Vec_Dbl &sigma); |
| 35 |
|
| 36 |
// Destructor. |
| 37 |
~Ray_Tracer(); |
| 38 |
|
| 39 |
// Ray-trace. |
| 40 |
double ray_trace(const Space_Vector &begin, const Space_Vector &end); |
| 41 |
}; |
| 42 |
|
| 43 |
} // namespace tribits_mixed |
| 44 |
|
| 45 |
#endif |
| 46 |
|
| 47 |
//---------------------------------------------------------------------------// |
| 48 |
// end of Ray_Tracer.hh |
| 49 |
//---------------------------------------------------------------------------// |