-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathcheckerboard_8cpp.html
212 lines (197 loc) · 12.7 KB
/
checkerboard_8cpp.html
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>pbrt: checkerboard.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>File Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>checkerboard.cpp File Reference</h1><code>#include "<a class="el" href="pbrt_8h_source.html">pbrt.h</a>"</code><br/>
<code>#include "<a class="el" href="texture_8h_source.html">texture.h</a>"</code><br/>
<code>#include "<a class="el" href="paramset_8h_source.html">paramset.h</a>"</code><br/>
<code>#include "<a class="el" href="sampling_8h_source.html">sampling.h</a>"</code><br/>
<code>#include "<a class="el" href="shape_8h_source.html">shape.h</a>"</code><br/>
<p><a href="checkerboard_8cpp_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classCheckerboard2D.html">Checkerboard2D< T ></a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classCheckerboard3D.html">Checkerboard3D< T ></a></td></tr>
<tr><td colspan="2"><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="checkerboard_8cpp.html#ae8c5205815b68fc9de4f82cdc21918ed">BUMPINT</a>(x)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="checkerboard_8cpp.html#a5d0de4a232c036b372767dafa0674aea">SQRT_SAMPLES</a> 4</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="checkerboard_8cpp.html#a864e696e58717460cdb19e5ce8f7ce20">N_SAMPLES</a> (SQRT_SAMPLES * SQRT_SAMPLES)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="checkerboard_8cpp.html#a864e696e58717460cdb19e5ce8f7ce20">N_SAMPLES</a> 4</td></tr>
<tr><td colspan="2"><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="checkerboard_8cpp.html#afb8b1782c7ca57b785b7ac95e95caceb">AAMethod</a> { <a class="el" href="checkerboard_8cpp.html#afb8b1782c7ca57b785b7ac95e95cacebac157bdf0b85a40d2619cbc8bc1ae5fe2">NONE</a>,
<a class="el" href="checkerboard_8cpp.html#afb8b1782c7ca57b785b7ac95e95cacebab1176404115e6134ba334730b3ebc9d8">SUPERSAMPLE</a>,
<a class="el" href="checkerboard_8cpp.html#afb8b1782c7ca57b785b7ac95e95cacebab9573cd43a5a371e99cb31b53ce6a86d">CLOSEDFORM</a>
}</td></tr>
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">DLLEXPORT <a class="el" href="classTexture.html">Texture</a>< float > * </td><td class="memItemRight" valign="bottom"><a class="el" href="checkerboard_8cpp.html#aa327196792a520cf6474d6d070066738">CreateFloatTexture</a> (const <a class="el" href="classTransform.html">Transform</a> &tex2world, const <a class="el" href="classTextureParams.html">TextureParams</a> &tp)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">DLLEXPORT <a class="el" href="classTexture.html">Texture</a>< <a class="el" href="classSpectrum.html">Spectrum</a> > * </td><td class="memItemRight" valign="bottom"><a class="el" href="checkerboard_8cpp.html#a310da60fe3129572e26e896019bb4f7f">CreateSpectrumTexture</a> (const <a class="el" href="classTransform.html">Transform</a> &tex2world, const <a class="el" href="classTextureParams.html">TextureParams</a> &tp)</td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="ae8c5205815b68fc9de4f82cdc21918ed"></a><!-- doxytag: member="checkerboard.cpp::BUMPINT" ref="ae8c5205815b68fc9de4f82cdc21918ed" args="(x)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BUMPINT</td>
<td>(</td>
<td class="paramtype">x </td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<b>Value:</b><div class="fragment"><pre class="fragment">(<a class="code" href="pbrt_8h.html#a02648670ea7bf29f5782902cd9aa87c1">Floor2Int</a>((x)/2) + \
2.f * max((x/2)-<a class="code" href="pbrt_8h.html#a02648670ea7bf29f5782902cd9aa87c1">Floor2Int</a>(x/2) - .5f, 0.f))
</pre></div>
<p>Referenced by <a class="el" href="checkerboard_8cpp_source.html#l00057">Checkerboard2D< T >::Evaluate()</a>.</p>
</div>
</div>
<a class="anchor" id="a864e696e58717460cdb19e5ce8f7ce20"></a><!-- doxytag: member="checkerboard.cpp::N_SAMPLES" ref="a864e696e58717460cdb19e5ce8f7ce20" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define N_SAMPLES 4</td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a864e696e58717460cdb19e5ce8f7ce20"></a><!-- doxytag: member="checkerboard.cpp::N_SAMPLES" ref="a864e696e58717460cdb19e5ce8f7ce20" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define N_SAMPLES (SQRT_SAMPLES * SQRT_SAMPLES)</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Referenced by <a class="el" href="checkerboard_8cpp_source.html#l00140">Checkerboard3D< T >::Evaluate()</a>, and <a class="el" href="checkerboard_8cpp_source.html#l00057">Checkerboard2D< T >::Evaluate()</a>.</p>
</div>
</div>
<a class="anchor" id="a5d0de4a232c036b372767dafa0674aea"></a><!-- doxytag: member="checkerboard.cpp::SQRT_SAMPLES" ref="a5d0de4a232c036b372767dafa0674aea" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define SQRT_SAMPLES 4</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Referenced by <a class="el" href="checkerboard_8cpp_source.html#l00057">Checkerboard2D< T >::Evaluate()</a>.</p>
</div>
</div>
<hr/><h2>Enumeration Type Documentation</h2>
<a class="anchor" id="afb8b1782c7ca57b785b7ac95e95caceb"></a><!-- doxytag: member="checkerboard.cpp::AAMethod" ref="afb8b1782c7ca57b785b7ac95e95caceb" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="checkerboard_8cpp.html#afb8b1782c7ca57b785b7ac95e95caceb">AAMethod</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="afb8b1782c7ca57b785b7ac95e95cacebac157bdf0b85a40d2619cbc8bc1ae5fe2"></a><!-- doxytag: member="NONE" ref="afb8b1782c7ca57b785b7ac95e95cacebac157bdf0b85a40d2619cbc8bc1ae5fe2" args="" -->NONE</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="afb8b1782c7ca57b785b7ac95e95cacebab1176404115e6134ba334730b3ebc9d8"></a><!-- doxytag: member="SUPERSAMPLE" ref="afb8b1782c7ca57b785b7ac95e95cacebab1176404115e6134ba334730b3ebc9d8" args="" -->SUPERSAMPLE</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="afb8b1782c7ca57b785b7ac95e95cacebab9573cd43a5a371e99cb31b53ce6a86d"></a><!-- doxytag: member="CLOSEDFORM" ref="afb8b1782c7ca57b785b7ac95e95cacebab9573cd43a5a371e99cb31b53ce6a86d" args="" -->CLOSEDFORM</em> </td><td>
</td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="checkerboard_8cpp_source.html#l00031">31</a> of file <a class="el" href="checkerboard_8cpp_source.html">checkerboard.cpp</a>.</p>
</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="aa327196792a520cf6474d6d070066738"></a><!-- doxytag: member="checkerboard.cpp::CreateFloatTexture" ref="aa327196792a520cf6474d6d070066738" args="(const Transform &tex2world, const TextureParams &tp)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">DLLEXPORT <a class="el" href="classTexture.html">Texture</a><float>* CreateFloatTexture </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classTransform.html">Transform</a> & </td>
<td class="paramname"> <em>tex2world</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classTextureParams.html">TextureParams</a> & </td>
<td class="paramname"> <em>tp</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="checkerboard_8cpp_source.html#l00177">177</a> of file <a class="el" href="checkerboard_8cpp_source.html">checkerboard.cpp</a>.</p>
<p>References <a class="el" href="util_8cpp_source.html#l00086">Error()</a>, <a class="el" href="paramset_8h_source.html#l00177">TextureParams::FindFloat()</a>, <a class="el" href="paramset_8h_source.html#l00184">TextureParams::FindInt()</a>, <a class="el" href="paramset_8h_source.html#l00181">TextureParams::FindString()</a>, <a class="el" href="paramset_8h_source.html#l00193">TextureParams::FindVector()</a>, <a class="el" href="paramset_8cpp_source.html#l00452">TextureParams::GetFloatTexture()</a>, and <a class="el" href="transform_8h_source.html#l00053">Transform::GetInverse()</a>.</p>
</div>
</div>
<a class="anchor" id="a310da60fe3129572e26e896019bb4f7f"></a><!-- doxytag: member="checkerboard.cpp::CreateSpectrumTexture" ref="a310da60fe3129572e26e896019bb4f7f" args="(const Transform &tex2world, const TextureParams &tp)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">DLLEXPORT <a class="el" href="classTexture.html">Texture</a><<a class="el" href="classSpectrum.html">Spectrum</a>>* CreateSpectrumTexture </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classTransform.html">Transform</a> & </td>
<td class="paramname"> <em>tex2world</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classTextureParams.html">TextureParams</a> & </td>
<td class="paramname"> <em>tp</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="checkerboard_8cpp_source.html#l00218">218</a> of file <a class="el" href="checkerboard_8cpp_source.html">checkerboard.cpp</a>.</p>
<p>References <a class="el" href="util_8cpp_source.html#l00086">Error()</a>, <a class="el" href="paramset_8h_source.html#l00177">TextureParams::FindFloat()</a>, <a class="el" href="paramset_8h_source.html#l00184">TextureParams::FindInt()</a>, <a class="el" href="paramset_8h_source.html#l00181">TextureParams::FindString()</a>, <a class="el" href="paramset_8h_source.html#l00193">TextureParams::FindVector()</a>, <a class="el" href="transform_8h_source.html#l00053">Transform::GetInverse()</a>, and <a class="el" href="paramset_8cpp_source.html#l00436">TextureParams::GetSpectrumTexture()</a>.</p>
</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>