ViewPlane - set_hres s inline void i...

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

View Full Document Right Arrow Icon
#ifndef __VIEW_PLANE__ #define __VIEW_PLANE__ # //--------------------------------------------------------------------------------- ----- class ViewPlane - class ViewPlane { public: int hres; // horizontal image resolution int vres; // vertical image resolution float s; // pixel size s float gamma; // gamma correction factor float inv_gamma; // the inverse of the gamma correction factor bool show_out_of_gamut; // display red if RGBColor out of gamut R public: p ViewPlane(); // default Constructor C ViewPlane(const ViewPlane& vp); // copy constructor c ViewPlane& operator= (const ViewPlane& rhs); // assignment operator o ~ViewPlane(); // destructor / void v set_hres(const int h_res); s void v set_vres(const int v_res); s void set_pixel_size(const float size); s void set_gamma(const float g); s void set_gamut_display(const bool show); s }; } // ------------------------------------------------------------------------------
Background image of page 1

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

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

Unformatted text preview: set_hres s inline void i ViewPlane::set_hres(const int h_res) { hres = h_res; } // ------------------------------------------------------------------------------ set_vres s inline void i ViewPlane::set_vres(const int v_res) { vres = v_res; } // ------------------------------------------------------------------------------ set_pixel_size s inline void i ViewPlane::set_pixel_size(const float size) { s = size; } // ------------------------------------------------------------------------------ set_gamma s inline void ViewPlane::set_gamma(const float g) { gamma = g; inv_gamma = 1.0 / gamma; } // ------------------------------------------------------------------------------ set_gamut_display s inline void ViewPlane::set_gamut_display(const bool show) { show_out_of_gamut = show; } #endif...
View Full 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 / 2

ViewPlane - set_hres s inline void i...

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