00001 00002 /*************************************************************************** 00003 * Copyright (C) 1998-2008 by authors (see AUTHORS.txt ) * 00004 * * 00005 * This file is part of LuxRender. * 00006 * * 00007 * Lux Renderer is free software; you can redistribute it and/or modify * 00008 * it under the terms of the GNU General Public License as published by * 00009 * the Free Software Foundation; either version 3 of the License, or * 00010 * (at your option) any later version. * 00011 * * 00012 * Lux Renderer is distributed in the hope that it will be useful, * 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00015 * GNU General Public License for more details. * 00016 * * 00017 * You should have received a copy of the GNU General Public License * 00018 * along with this program. If not, see <http://www.gnu.org/licenses/>. * 00019 * * 00020 * This project is based on PBRT ; see http://www.pbrt.org * 00021 * Lux Renderer website : http://www.luxrender.net * 00022 ***************************************************************************/ 00023 00024 00025 #ifndef LUX_RAYDIFFERENTIAL_H 00026 #define LUX_RAYDIFFERENTIAL_H 00027 00028 #include "vector.h" 00029 #include "point.h" 00030 #include "ray.h" 00031 00032 namespace lux 00033 { 00034 00035 class RayDifferential : public Ray { 00036 public: 00037 // RayDifferential Methods 00038 RayDifferential() { hasDifferentials = false; } 00039 RayDifferential(const Point &org, const Vector &dir) 00040 : Ray(org, dir) { 00041 hasDifferentials = false; 00042 } 00043 explicit RayDifferential(const Ray &ray) : Ray(ray) { 00044 hasDifferentials = false; 00045 } 00046 // RayDifferential Public Data 00047 00048 Ray rx, ry; 00049 bool hasDifferentials; 00050 00051 00052 }; 00053 00054 }//namespace lux 00055 00056 #endif //LUX_RAYDIFFERENTIAL_H