00001 /*************************************************************************** 00002 * Copyright (C) 1998-2007 by authors (see AUTHORS.txt ) * 00003 * * 00004 * This file is part of Lux Renderer. * 00005 * * 00006 * Lux Renderer is free software; you can redistribute it and/or modify * 00007 * it under the terms of the GNU General Public License as published by * 00008 * the Free Software Foundation; either version 3 of the License, or * 00009 * (at your option) any later version. * 00010 * * 00011 * Lux Renderer is distributed in the hope that it will be useful, * 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00014 * GNU General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU General Public License * 00017 * along with this program. If not, see <http://www.gnu.org/licenses/>. * 00018 * * 00019 * This project is based on PBRT ; see http://www.pbrt.org * 00020 * Lux Renderer website : http://www.luxrender.org * 00021 ***************************************************************************/ 00022 00023 // NOTE - Radiance - currently disabled due to reimplementation of pixelsampling, will fix 00024 00025 /* 00026 // stratified.cpp* 00027 #include "sampling.h" 00028 #include "paramset.h" 00029 #include "film.h" 00030 // StratifiedSampler Declarations 00031 class StratifiedSampler : public Sampler { 00032 public: 00033 // StratifiedSampler Public Methods 00034 StratifiedSampler(int xstart, int xend, 00035 int ystart, int yend, 00036 int xs, int ys, bool jitter, bool prog); 00037 int RoundSize(int size) const { 00038 return size; 00039 } 00040 ~StratifiedSampler() { 00041 FreeAligned(imageSamples); 00042 } 00043 bool GetNextSample(Sample *sample, u_int *use_pos); 00044 virtual StratifiedSampler* clone() const; // Lux (copy) constructor for multithreading 00045 00046 static Sampler *CreateSampler(const ParamSet ¶ms, const Film *film); 00047 private: 00048 // StratifiedSampler Private Data 00049 int xPixelSamples, yPixelSamples; 00050 bool jitterSamples; 00051 int xPos, yPos; 00052 float *imageSamples, *lensSamples, *timeSamples; 00053 int samplePos; 00054 bool fs_progressive; 00055 }; 00056 */