1 |
root |
1.1 |
/* |
2 |
|
|
* radiance interface |
3 |
|
|
*/ |
4 |
|
|
|
5 |
|
|
#ifndef RAD_INT_H |
6 |
|
|
#define RAD_INT_H |
7 |
|
|
|
8 |
|
|
#include "interface.h" |
9 |
|
|
#include "attr.h" |
10 |
|
|
#include "matrix.h" |
11 |
|
|
|
12 |
|
|
using namespace std; |
13 |
|
|
|
14 |
|
|
class rad_int : public gfx_int { |
15 |
|
|
ostream &o; |
16 |
|
|
|
17 |
|
|
string material; |
18 |
|
|
double width; |
19 |
|
|
|
20 |
|
|
double x1, y1, z1, x2, y2, z2; |
21 |
|
|
|
22 |
|
|
void clip (const vec &v) t_no; |
23 |
|
|
void check_attrs (const attribute_set &attr) t_err; |
24 |
|
|
public: |
25 |
|
|
rad_int (ostream &out) t_no; |
26 |
|
|
~rad_int () t_no; |
27 |
|
|
|
28 |
|
|
void begin_fig () t_no; |
29 |
|
|
void end_fig () t_no; |
30 |
|
|
|
31 |
|
|
void segment (const point &a, const point &b) t_err; |
32 |
|
|
void object (const points &v) t_err; |
33 |
|
|
}; |
34 |
|
|
|
35 |
|
|
#endif |