C++ Ray Tracer Solution

C++ Ray Tracer Solution - assignment operator o...

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

View Full Document Right Arrow Icon
// This file contains the definition the ViewPlane class / #include "ViewPlane.h" # // ---------------------------------------------------------------- default constructor c ViewPlane::ViewPlane(void) V : hres(400), vres(400), s(1.0), gamma(1.0), inv_gamma(1.0), show_out_of_gamut(false) {} { // ---------------------------------------------------------------- copy constructor c ViewPlane::ViewPlane(const ViewPlane& vp) : hres(vp.hres), vres(vp.vres), s(vp.s), 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
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: {} { // ---------------------------------------------------------------- assignment operator o ViewPlane& ViewPlane::operator= (const ViewPlane& rhs) { if (this == &rhs) return (*this); r hres = rhs.hres; vres = rhs.vres; s = rhs.s; gamma = rhs.gamma; inv_gamma = rhs.inv_gamma; show_out_of_gamut = rhs.show_out_of_gamut; = return (*this); } // -------------------------------------------------------------- destructor / ViewPlane::~ViewPlane(void) {} V V...
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

C++ Ray Tracer Solution - assignment operator o...

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