-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathViewPlane.h
38 lines (30 loc) · 853 Bytes
/
ViewPlane.h
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
#ifndef VIEWPLANE_H
#define VIEWPLANE_H
#include "common.h"
class Sampler;
class ViewPlane {
/*
the ViewPlane is perpendicular to the z_w - axis
the coordinate (x_w, y_w) of the middle of the ViewPlane is (0, 0)
x_w = s(c - h_res/2 + 0.5), x cor of center of some pixel grid
y_w = s(r - v_res/2 + 0.5), y cor of center of some pixel grid
*/
public:
ViewPlane();
ViewPlane(const ViewPlane &);
int hRes; // horizontal Resolution
int vRes; // vertical Resolution
RTdouble s; // pixel size
RTdouble gamma; // monitor gamma factor
RTdouble inv_gamma; // 1 / gamma
int num_samples;
Sampler * sampler_ptr;
void setResH(const int&);
void setResV(const int&);
void setPixelSize(const RTdouble &);
void setGamma(const RTdouble &);
void setSampleNumber(const int&);
void setSampler(Sampler *);
void setSamples(const int &);
};
#endif