ViewPlane - package

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
package; //import raytracer.utility.Normal; public class ViewPlane { public int hres; // horizontal image resolution public int vres; // vertical image resolution public float s; // pixel size public int num_samples; // number of samples per pixel public float gamma; // gamma correction factor public float inv_gamma; // the inverse of the gamma correction factor public boolean show_out_of_gamut; // display red if RGBColor out of gamut // ---------------------------------------------------------------- default constructor public ViewPlane() { hres = 400; vres = 400; s = 1f; num_samples = 1; gamma = 1f; inv_gamma = 1f; show_out_of_gamut = false; } // ---------------------------------------------------------------- copy constructor public ViewPlane(ViewPlane vp){ hres = vp.hres; vres = vp.vres; s = vp.s; num_samples = vp.num_samples; gamma = vp.gamma; inv_gamma = vp.inv_gamma; show_out_of_gamut = vp.show_out_of_gamut; } // ----------------------------------------------------------------
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/19/2010 for the course CS 390 taught by Professor Hu during the Spring '10 term at Westminster UT.

Page1 / 3

ViewPlane - package

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online