-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviewplane.h
More file actions
47 lines (37 loc) · 996 Bytes
/
viewplane.h
File metadata and controls
47 lines (37 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef VIEWPLANE_H
#define VIEWPLANE_H
#include <stdlib.h>
//loacl include
#include "point3d.h"
#include "vector3d.h"
#include "pixel.h"
class Viewplane
{
public:
Viewplane();
~Viewplane();
Viewplane(int width, int height,
Vector3d A, Vector3d B);
float pixel_size();
int num_sample();
Pixel background();
Point3d ref_point();
Vector3d A();
Vector3d B();
int height();
int width();
void resize(int width, int height);
void set_pixel_size(float s);
void set_background(Pixel bg);
void set_ref(Point3d p);
private:
int _width;
int _height;
float _pixel_size;
Pixel _background;
Point3d _ref; //tells us the position of this plane, it's the bottom left corner
Vector3d _A,_B;
Vector3d _n;
int _num_sample;
};
#endif // VIEWPLANE_H