#include <scene.h>
Public Member Functions | |
| RenderThread (int _n, int _signal, SurfaceIntegrator *_Si, VolumeIntegrator *_Vi, Sampler *_Splr, Camera *_Cam, Scene *_Scn) | |
| ~RenderThread () | |
Static Public Member Functions | |
| static void | render (RenderThread *r) |
Public Attributes | |
| int | n |
| int | signal |
| double | stat_Samples |
| double | stat_blackSamples |
| SurfaceIntegrator * | surfaceIntegrator |
| VolumeIntegrator * | volumeIntegrator |
| Sample * | sample |
| Sampler * | sampler |
| Camera * | camera |
| Scene * | scene |
| boost::thread * | thread |
Static Public Attributes | |
| static const int | SIG_RUN = 1 |
| static const int | SIG_PAUSE = 2 |
| static const int | SIG_EXIT = 3 |
Definition at line 37 of file scene.h.
| lux::RenderThread::RenderThread | ( | int | _n, | |
| int | _signal, | |||
| SurfaceIntegrator * | _Si, | |||
| VolumeIntegrator * | _Vi, | |||
| Sampler * | _Splr, | |||
| Camera * | _Cam, | |||
| Scene * | _Scn | |||
| ) | [inline] |
Definition at line 39 of file scene.h.
References sample, scene, stat_blackSamples, stat_Samples, surfaceIntegrator, and volumeIntegrator.
| lux::RenderThread::~RenderThread | ( | ) | [inline] |
| void RenderThread::render | ( | RenderThread * | r | ) | [static] |
Definition at line 215 of file scene.cpp.
References lux::Sampler::AddSample(), lux::BSDF::arena, lux::SWCSpectrum::Black(), camera, lux::BSDF::FreeAll(), lux::Camera::GenerateRay(), lux::Sampler::GetNextSample(), lux::Sampler::GetTotalSamplePos(), lux::RayDifferential::hasDifferentials, lux::Sample::imageX, lux::Sample::imageY, lux::random::init(), lux::Integrator::Li(), LUX_INFO, LUX_NOERROR, luxError, n, lux::Scene::preprocessDone, lux::RayDifferential::rx, lux::RayDifferential::ry, lux::SpectrumWavelengths::Sample(), sample, sampler, sampPos, sampPosMutex, scene, lux::Scene::seedBase, SIG_EXIT, SIG_PAUSE, signal, lux::Sample::singleWavelength, cimg_library::cimg::sleep(), stat_blackSamples, stat_Samples, surfaceIntegrator, thread, thread_wavelengths, and lux::Sample::wavelengths.
Referenced by lux::Scene::CreateRenderThread().
const int lux::RenderThread::SIG_EXIT = 3 [static] |
Definition at line 65 of file scene.h.
Referenced by lux::Scene::Exit(), lux::Scene::RemoveRenderThread(), and render().
const int lux::RenderThread::SIG_PAUSE = 2 [static] |
const int lux::RenderThread::SIG_RUN = 1 [static] |
| boost::thread* lux::RenderThread::thread |
Definition at line 63 of file scene.h.
Referenced by lux::Scene::CreateRenderThread(), render(), and ~RenderThread().
1.5.9