2011-04-27 11:58:34 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2011, Blender Foundation.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTEGRATOR_H__
|
|
|
|
#define __INTEGRATOR_H__
|
|
|
|
|
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
class Device;
|
|
|
|
class DeviceScene;
|
|
|
|
class Scene;
|
|
|
|
|
|
|
|
class Integrator {
|
|
|
|
public:
|
2011-09-01 15:53:36 +00:00
|
|
|
int min_bounce;
|
|
|
|
int max_bounce;
|
|
|
|
|
|
|
|
int max_diffuse_bounce;
|
|
|
|
int max_glossy_bounce;
|
|
|
|
int max_transmission_bounce;
|
|
|
|
bool probalistic_termination;
|
|
|
|
|
|
|
|
int transparent_min_bounce;
|
|
|
|
int transparent_max_bounce;
|
|
|
|
bool transparent_probalistic;
|
|
|
|
bool transparent_shadows;
|
|
|
|
|
2011-04-27 11:58:34 +00:00
|
|
|
bool no_caustics;
|
2011-10-29 14:27:24 +00:00
|
|
|
|
|
|
|
int seed;
|
2011-12-21 20:51:43 +00:00
|
|
|
int layer_flag;
|
2011-10-29 14:27:24 +00:00
|
|
|
|
2011-04-27 11:58:34 +00:00
|
|
|
bool need_update;
|
|
|
|
|
|
|
|
Integrator();
|
|
|
|
~Integrator();
|
|
|
|
|
|
|
|
void device_update(Device *device, DeviceScene *dscene);
|
|
|
|
void device_free(Device *device, DeviceScene *dscene);
|
|
|
|
|
|
|
|
bool modified(const Integrator& integrator);
|
|
|
|
void tag_update(Scene *scene);
|
|
|
|
};
|
|
|
|
|
|
|
|
CCL_NAMESPACE_END
|
|
|
|
|
|
|
|
#endif /* __INTEGRATOR_H__ */
|
|
|
|
|