#include <cmath>
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/serialization/string.hpp>
#include <boost/serialization/split_member.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <malloc.h>
#include <alloca.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
#include <iostream>
#include <algorithm>
#include <assert.h>
#include "randomgen.h"
Go to the source code of this file.
Classes | |
struct | lux::TsPack |
Namespaces | |
namespace | lux |
Defines | |
#define | _GNU_SOURCE 1 |
#define | BC_GRID_SIZE 40 |
#define | GRID(v) (int((v) * BC_GRID_SIZE)) |
#define | M_PI 3.14159265358979323846f |
#define | INV_PI 0.31830988618379067154f |
#define | INV_TWOPI 0.15915494309189533577f |
#define | LUX_VERSION 0.6 |
#define | LUX_VERSION_STRING "0.6.1" |
#define | COLOR_SAMPLES 3 |
#define | LUX_PATH_SEP ":" |
#define | _GNU_SOURCE 1 |
#define | BC_GRID_SIZE 40 |
#define | GRID(v) (int((v) * BC_GRID_SIZE)) |
#define | M_PI 3.14159265358979323846f |
#define | INV_PI 0.31830988618379067154f |
#define | INV_TWOPI 0.15915494309189533577f |
#define | LUX_VERSION 0.6 |
#define | LUX_VERSION_STRING "0.6.1" |
#define | COLOR_SAMPLES 3 |
#define | LUX_PATH_SEP ":" |
#define | _GNU_SOURCE 1 |
#define | BC_GRID_SIZE 40 |
#define | GRID(v) (int((v) * BC_GRID_SIZE)) |
#define | M_PI 3.14159265358979323846f |
#define | INV_PI 0.31830988618379067154f |
#define | INV_TWOPI 0.15915494309189533577f |
#define | LUX_VERSION 0.6 |
#define | LUX_VERSION_STRING "0.6.1" |
#define | COLOR_SAMPLES 3 |
#define | LUX_PATH_SEP ":" |
#define | _GNU_SOURCE 1 |
#define | BC_GRID_SIZE 40 |
#define | GRID(v) (int((v) * BC_GRID_SIZE)) |
#define | M_PI 3.14159265358979323846f |
#define | INV_PI 0.31830988618379067154f |
#define | INV_TWOPI 0.15915494309189533577f |
#define | LUX_VERSION 0.6 |
#define | LUX_VERSION_STRING "0.6.1" |
#define | COLOR_SAMPLES 3 |
#define | LUX_PATH_SEP ":" |
#define | _GNU_SOURCE 1 |
#define | BC_GRID_SIZE 40 |
#define | GRID(v) (int((v) * BC_GRID_SIZE)) |
#define | M_PI 3.14159265358979323846f |
#define | INV_PI 0.31830988618379067154f |
#define | INV_TWOPI 0.15915494309189533577f |
#define | LUX_VERSION 0.6 |
#define | LUX_VERSION_STRING "0.6.1" |
#define | COLOR_SAMPLES 3 |
#define | LUX_PATH_SEP ":" |
#define | _GNU_SOURCE 1 |
#define | BC_GRID_SIZE 40 |
#define | GRID(v) (int((v) * BC_GRID_SIZE)) |
#define | M_PI 3.14159265358979323846f |
#define | INV_PI 0.31830988618379067154f |
#define | INV_TWOPI 0.15915494309189533577f |
#define | LUX_VERSION 0.6 |
#define | LUX_VERSION_STRING "0.6.1" |
#define | COLOR_SAMPLES 3 |
#define | LUX_PATH_SEP ":" |
#define | _GNU_SOURCE 1 |
#define | BC_GRID_SIZE 40 |
#define | GRID(v) (int((v) * BC_GRID_SIZE)) |
#define | M_PI 3.14159265358979323846f |
#define | INV_PI 0.31830988618379067154f |
#define | INV_TWOPI 0.15915494309189533577f |
#define | LUX_VERSION 0.6 |
#define | LUX_VERSION_STRING "0.6.1" |
#define | COLOR_SAMPLES 3 |
#define | LUX_PATH_SEP ":" |
#define | _GNU_SOURCE 1 |
#define | BC_GRID_SIZE 40 |
#define | GRID(v) (int((v) * BC_GRID_SIZE)) |
#define | M_PI 3.14159265358979323846f |
#define | INV_PI 0.31830988618379067154f |
#define | INV_TWOPI 0.15915494309189533577f |
#define | LUX_VERSION 0.6 |
#define | LUX_VERSION_STRING "0.6.1" |
#define | COLOR_SAMPLES 3 |
#define | LUX_PATH_SEP ":" |
#define | _GNU_SOURCE 1 |
#define | BC_GRID_SIZE 40 |
#define | GRID(v) (int((v) * BC_GRID_SIZE)) |
#define | M_PI 3.14159265358979323846f |
#define | INV_PI 0.31830988618379067154f |
#define | INV_TWOPI 0.15915494309189533577f |
#define | LUX_VERSION 0.6 |
#define | LUX_VERSION_STRING "0.6.1" |
#define | COLOR_SAMPLES 3 |
#define | LUX_PATH_SEP ":" |
#define | _GNU_SOURCE 1 |
#define | BC_GRID_SIZE 40 |
#define | GRID(v) (int((v) * BC_GRID_SIZE)) |
#define | M_PI 3.14159265358979323846f |
#define | INV_PI 0.31830988618379067154f |
#define | INV_TWOPI 0.15915494309189533577f |
#define | LUX_VERSION 0.6 |
#define | LUX_VERSION_STRING "0.6.1" |
#define | COLOR_SAMPLES 3 |
#define | LUX_PATH_SEP ":" |
#define | _GNU_SOURCE 1 |
#define | BC_GRID_SIZE 40 |
#define | GRID(v) (int((v) * BC_GRID_SIZE)) |
#define | M_PI 3.14159265358979323846f |
#define | INV_PI 0.31830988618379067154f |
#define | INV_TWOPI 0.15915494309189533577f |
#define | LUX_VERSION 0.6 |
#define | LUX_VERSION_STRING "0.6.1" |
#define | COLOR_SAMPLES 3 |
#define | LUX_PATH_SEP ":" |
#define | _GNU_SOURCE 1 |
#define | BC_GRID_SIZE 40 |
#define | GRID(v) (int((v) * BC_GRID_SIZE)) |
#define | M_PI 3.14159265358979323846f |
#define | INV_PI 0.31830988618379067154f |
#define | INV_TWOPI 0.15915494309189533577f |
#define | LUX_VERSION 0.6 |
#define | LUX_VERSION_STRING "0.6.1" |
#define | COLOR_SAMPLES 3 |
#define | LUX_PATH_SEP ":" |
#define | _GNU_SOURCE 1 |
#define | BC_GRID_SIZE 40 |
#define | GRID(v) (int((v) * BC_GRID_SIZE)) |
#define | M_PI 3.14159265358979323846f |
#define | INV_PI 0.31830988618379067154f |
#define | INV_TWOPI 0.15915494309189533577f |
#define | LUX_VERSION 0.6 |
#define | LUX_VERSION_STRING "0.6.1" |
#define | COLOR_SAMPLES 3 |
#define | LUX_PATH_SEP ":" |
#define | _GNU_SOURCE 1 |
#define | BC_GRID_SIZE 40 |
#define | GRID(v) (int((v) * BC_GRID_SIZE)) |
#define | M_PI 3.14159265358979323846f |
#define | INV_PI 0.31830988618379067154f |
#define | INV_TWOPI 0.15915494309189533577f |
#define | LUX_VERSION 0.6 |
#define | LUX_VERSION_STRING "0.6.1" |
#define | COLOR_SAMPLES 3 |
#define | LUX_PATH_SEP ":" |
Typedefs | |
typedef double | StatsCounterType |
typedef unsigned char | u_char |
typedef unsigned short | u_short |
typedef unsigned int | u_int |
typedef unsigned long | u_long |
typedef vector< int > | SampleGrid [BC_GRID_SIZE][BC_GRID_SIZE] |
Functions | |
bool | ParseFile (const char *filename) |
unsigned int | lux::DJBHash (const std::string &str) |
bool | lux::SolveLinearSystem2x2 (const float A[2][2], const float B[2], float x[2]) |
ImageData * | lux::ReadImage (const string &name) |
template<class T > | |
T | Lerp (float t, T v1, T v2) |
template<class T > | |
T | Clamp (T val, T low, T high) |
int | Round2Int (double val) |
int | Round2Int (float val) |
int | Mod (int a, int b) |
float | Radians (float deg) |
float | Degrees (float rad) |
float | Log2 (float x) |
int | Log2Int (float v) |
bool | IsPowerOf2 (int v) |
u_int | RoundUpPow2 (u_int v) |
template<class T > | |
int | Float2Int (T val) |
int | Floor2Int (double val) |
int | Floor2Int (float val) |
int | Ceil2Int (double val) |
int | Ceil2Int (float val) |
bool | Quadratic (float A, float B, float C, float *t0, float *t1) |
float | SmoothStep (float min, float max, float value) |
#define _GNU_SOURCE 1 |
#define _GNU_SOURCE 1 |
#define _GNU_SOURCE 1 |
#define _GNU_SOURCE 1 |
#define _GNU_SOURCE 1 |
#define _GNU_SOURCE 1 |
#define _GNU_SOURCE 1 |
#define _GNU_SOURCE 1 |
#define _GNU_SOURCE 1 |
#define _GNU_SOURCE 1 |
#define _GNU_SOURCE 1 |
#define _GNU_SOURCE 1 |
#define _GNU_SOURCE 1 |
#define BC_GRID_SIZE 40 |
#define BC_GRID_SIZE 40 |
#define BC_GRID_SIZE 40 |
#define BC_GRID_SIZE 40 |
#define BC_GRID_SIZE 40 |
#define BC_GRID_SIZE 40 |
#define BC_GRID_SIZE 40 |
#define BC_GRID_SIZE 40 |
#define BC_GRID_SIZE 40 |
#define BC_GRID_SIZE 40 |
#define BC_GRID_SIZE 40 |
#define BC_GRID_SIZE 40 |
#define BC_GRID_SIZE 40 |
#define COLOR_SAMPLES 3 |
#define COLOR_SAMPLES 3 |
#define COLOR_SAMPLES 3 |
#define COLOR_SAMPLES 3 |
#define COLOR_SAMPLES 3 |
#define COLOR_SAMPLES 3 |
#define COLOR_SAMPLES 3 |
#define COLOR_SAMPLES 3 |
#define COLOR_SAMPLES 3 |
#define COLOR_SAMPLES 3 |
#define COLOR_SAMPLES 3 |
#define COLOR_SAMPLES 3 |
#define COLOR_SAMPLES 3 |
#define COLOR_SAMPLES 3 |
Definition at line 224 of file lux.h.
Referenced by lux::UVTexture::Evaluate(), lux::HarlequinTexture::HarlequinTexture(), and InitParamSet().
#define GRID | ( | v | ) | (int((v) * BC_GRID_SIZE)) |
#define GRID | ( | v | ) | (int((v) * BC_GRID_SIZE)) |
#define GRID | ( | v | ) | (int((v) * BC_GRID_SIZE)) |
#define GRID | ( | v | ) | (int((v) * BC_GRID_SIZE)) |
#define GRID | ( | v | ) | (int((v) * BC_GRID_SIZE)) |
#define GRID | ( | v | ) | (int((v) * BC_GRID_SIZE)) |
#define GRID | ( | v | ) | (int((v) * BC_GRID_SIZE)) |
#define GRID | ( | v | ) | (int((v) * BC_GRID_SIZE)) |
#define GRID | ( | v | ) | (int((v) * BC_GRID_SIZE)) |
#define GRID | ( | v | ) | (int((v) * BC_GRID_SIZE)) |
#define GRID | ( | v | ) | (int((v) * BC_GRID_SIZE)) |
#define GRID | ( | v | ) | (int((v) * BC_GRID_SIZE)) |
#define GRID | ( | v | ) | (int((v) * BC_GRID_SIZE)) |
#define INV_PI 0.31830988618379067154f |
#define INV_PI 0.31830988618379067154f |
#define INV_PI 0.31830988618379067154f |
#define INV_PI 0.31830988618379067154f |
#define INV_PI 0.31830988618379067154f |
#define INV_PI 0.31830988618379067154f |
#define INV_PI 0.31830988618379067154f |
#define INV_PI 0.31830988618379067154f |
#define INV_PI 0.31830988618379067154f |
#define INV_PI 0.31830988618379067154f |
#define INV_PI 0.31830988618379067154f |
#define INV_PI 0.31830988618379067154f |
#define INV_PI 0.31830988618379067154f |
#define INV_PI 0.31830988618379067154f |
Definition at line 216 of file lux.h.
Referenced by lux::CosineHemispherePdf(), lux::OrenNayar::f(), EnvironmentBxDF::f(), lux::EnvironmentCamera::GetSamplePosition(), lux::IESSphericalFunction::IESSphericalFunction(), lux::IrradianceCache::IndirectLo(), lux::LightPhotonMap::LDiffusePhoton(), lux::InfiniteAreaLightIS::Le(), lux::PhotonIntegrator::LPhoton(), lux::ExPhotonIntegrator::LPhoton(), lux::LightPhotonMap::LPhotonDiffuseApprox(), lux::LatLongMapping::Map(), lux::InfiniteAreaLightIS::Pdf(), lux::FresnelBlend::Pdf(), lux::BxDF::Pdf(), lux::ExPhotonIntegrator::Preprocess(), and lux::SphericalMapping2D::sphere().
#define INV_TWOPI 0.15915494309189533577f |
#define INV_TWOPI 0.15915494309189533577f |
#define INV_TWOPI 0.15915494309189533577f |
#define INV_TWOPI 0.15915494309189533577f |
#define INV_TWOPI 0.15915494309189533577f |
#define INV_TWOPI 0.15915494309189533577f |
#define INV_TWOPI 0.15915494309189533577f |
#define INV_TWOPI 0.15915494309189533577f |
#define INV_TWOPI 0.15915494309189533577f |
#define INV_TWOPI 0.15915494309189533577f |
#define INV_TWOPI 0.15915494309189533577f |
#define INV_TWOPI 0.15915494309189533577f |
#define INV_TWOPI 0.15915494309189533577f |
#define INV_TWOPI 0.15915494309189533577f |
Definition at line 217 of file lux.h.
Referenced by lux::Blinn::D(), lux::Anisotropic::D(), lux::EnvironmentCamera::GetSamplePosition(), lux::IESSphericalFunction::IESSphericalFunction(), lux::Disk::Intersect(), lux::SkyLight::Le(), lux::InfiniteAreaLightIS::Le(), lux::InfiniteAreaLight::Le(), lux::AngularMapping::Map(), lux::LatLongMapping::Map(), lux::SkyLight::Pdf(), lux::InfiniteAreaLightIS::Pdf(), lux::InfiniteAreaLight::Pdf(), lux::Anisotropic::Pdf(), lux::BxDF::rho(), lux::Anisotropic::Sample_f(), lux::SkyLight::Sample_L(), lux::InfiniteAreaLight::Sample_L(), lux::AreaLight::Sample_L(), and lux::SphericalMapping2D::sphere().
#define LUX_PATH_SEP ":" |
#define LUX_PATH_SEP ":" |
#define LUX_PATH_SEP ":" |
#define LUX_PATH_SEP ":" |
#define LUX_PATH_SEP ":" |
#define LUX_PATH_SEP ":" |
#define LUX_PATH_SEP ":" |
#define LUX_PATH_SEP ":" |
#define LUX_PATH_SEP ":" |
#define LUX_PATH_SEP ":" |
#define LUX_PATH_SEP ":" |
#define LUX_PATH_SEP ":" |
#define LUX_PATH_SEP ":" |
#define LUX_VERSION 0.6 |
#define LUX_VERSION 0.6 |
#define LUX_VERSION 0.6 |
#define LUX_VERSION 0.6 |
#define LUX_VERSION 0.6 |
#define LUX_VERSION 0.6 |
#define LUX_VERSION 0.6 |
#define LUX_VERSION 0.6 |
#define LUX_VERSION 0.6 |
#define LUX_VERSION 0.6 |
#define LUX_VERSION 0.6 |
#define LUX_VERSION 0.6 |
#define LUX_VERSION 0.6 |
#define LUX_VERSION_STRING "0.6.1" |
#define LUX_VERSION_STRING "0.6.1" |
#define LUX_VERSION_STRING "0.6.1" |
#define LUX_VERSION_STRING "0.6.1" |
#define LUX_VERSION_STRING "0.6.1" |
#define LUX_VERSION_STRING "0.6.1" |
#define LUX_VERSION_STRING "0.6.1" |
#define LUX_VERSION_STRING "0.6.1" |
#define LUX_VERSION_STRING "0.6.1" |
#define LUX_VERSION_STRING "0.6.1" |
#define LUX_VERSION_STRING "0.6.1" |
#define LUX_VERSION_STRING "0.6.1" |
#define LUX_VERSION_STRING "0.6.1" |
#define LUX_VERSION_STRING "0.6.1" |
Definition at line 223 of file lux.h.
Referenced by lux::LuxGuiApp::ProcessCommandLine().
#define M_PI 3.14159265358979323846f |
#define M_PI 3.14159265358979323846f |
#define M_PI 3.14159265358979323846f |
#define M_PI 3.14159265358979323846f |
#define M_PI 3.14159265358979323846f |
#define M_PI 3.14159265358979323846f |
#define M_PI 3.14159265358979323846f |
#define M_PI 3.14159265358979323846f |
#define M_PI 3.14159265358979323846f |
#define M_PI 3.14159265358979323846f |
#define M_PI 3.14159265358979323846f |
#define M_PI 3.14159265358979323846f |
#define M_PI 3.14159265358979323846f |
#define M_PI 3.14159265358979323846f |
Definition at line 215 of file lux.h.
Referenced by blender::blend(), lux::CylindricalMapping2D::cylinder(), lux::WardIsotropic::D(), Degrees(), lux::Ekernel(), lux::LightPhotonMap::EPhoton(), lux::ExPhotonIntegrator::estimateE(), lux::FresnelBlend::f(), lux::CookTorrance::f(), lux::Torus::FindIntersection(), lux::LoopSubdiv::GenerateNormals(), lux::EnvironmentCamera::GenerateRay(), lux::CarPaint::GetBSDF(), lux::EnvironmentCamera::GetSamplePosition(), lux::SkyLight::GetSkySpectralRadiance(), lux::IrradianceCache::IndirectLo(), lux::InfiniteAreaLightIS::InfiniteAreaLightIS(), lux::Sphere::Intersect(), lux::Paraboloid::Intersect(), lux::LensComponent::Intersect(), lux::Hyperboloid::Intersect(), lux::Disk::Intersect(), lux::Cylinder::Intersect(), lux::Cone::Intersect(), lux::Sphere::IntersectP(), lux::Paraboloid::IntersectP(), lux::Hyperboloid::IntersectP(), lux::Disk::IntersectP(), lux::Cylinder::IntersectP(), lux::Cone::IntersectP(), lux::SunLight::Le(), lux::SkyLight::Le(), lux::InfiniteAreaLight::Le(), lux::PhotonIntegrator::LPhoton(), lux::SkyLight::Pdf(), lux::InfiniteAreaLightIS::Pdf(), lux::InfiniteAreaLight::Pdf(), lux::Blinn::Pdf(), lux::PerspectiveCamera::PerspectiveCamera(), PhaseDifference(), lux::SunLight::Power(), lux::SpotLight::Power(), lux::SkyLight::Power(), lux::ProjectionLight::Power(), lux::PointLight::Power(), lux::AreaLight::Power(), lux::InfiniteAreaLightIS::Power(), lux::InfiniteAreaLight::Power(), lux::DistantLight::Power(), lux::IGIIntegrator::Preprocess(), Radians(), lux::BxDF::rho(), RiAngleBetween(), lux::WardIsotropic::Sample_f(), lux::Lafortune::Sample_f(), lux::Blinn::Sample_f(), lux::Beckmann::Sample_f(), lux::Anisotropic::Sample_f(), lux::SunLight::Sample_L(), lux::SkyLight::Sample_L(), lux::InfiniteAreaLightIS::Sample_L(), lux::InfiniteAreaLight::Sample_L(), lux::DistantLight::Sample_L(), lux::AreaLight::Sample_L(), lux::EnvironmentCamera::Sample_W(), lux::Anisotropic::sampleFirstQuadrant(), lux::PerspectiveCamera::SampleLens(), lux::RegularDataSpectrumTexture< T >::SetPower(), lux::IrregularDataSpectrumTexture< T >::SetPower(), lux::GaussianSpectrumTexture< T >::SetPower(), lux::FrequencySpectrumTexture< T >::SetPower(), lux::EqualEnergySpectrumTexture< T >::SetPower(), lux::ConstantRGBColorTexture< T >::SetPower(), lux::BlackBodySpectrumTexture< T >::SetPower(), lux::LanczosSincFilter::Sinc1D(), lux::SkyLight::SkyLight(), lux::SphericalPhi(), blender::tex_saw(), blender::tex_tri(), and lux::Torus::Torus().
typedef vector<int> SampleGrid[BC_GRID_SIZE][BC_GRID_SIZE] |
typedef double StatsCounterType |
int Ceil2Int | ( | double | val | ) | [inline] |
Definition at line 313 of file lux.h.
Referenced by lux::ImageFilm::AddSample(), lux::FlexImageFilm::AddSample(), lux::MIPMapImpl< T, U >::EWA(), lux::FlexImageFilm::FlexImageFilm(), lux::horizontalGaussianBlur(), lux::ImageFilm::ImageFilm(), lux::IrregularSPD::IrregularSPD(), lux::SingleScattering::Li(), and lux::EmissionIntegrator::Li().
T Clamp | ( | T | val, | |
T | low, | |||
T | high | |||
) | [inline] |
Definition at line 261 of file lux.h.
Referenced by lux::Histogram::Calculate(), lux::Histogram::CheckBucketNr(), lux::Cone::Cone(), lux::ImageFilm::CreateFilm(), lux::FlexImageFilm::CreateFilm(), lux::Cylinder::Cylinder(), lux::VolumeGrid::D(), lux::Disk::Disk(), lux::MachineEpsilon::E(), lux::Function1D::Eval(), lux::FresnelDielectric::Evaluate(), lux::Torus::FindIntersection(), lux::MatteTranslucent::GetBSDF(), lux::Matte::GetBSDF(), lux::CarPaint::GetBSDF(), lux::EnvironmentCamera::GetSamplePosition(), lux::GridAccel::GridAccel(), lux::horizontalGaussianBlur(), lux::Hyperboloid::Hyperboloid(), lux::IESSphericalFunction::IESSphericalFunction(), lux::IrradianceCache::IndirectLo(), lux::LensComponent::LensComponent(), lux::IGIIntegrator::Li(), lux::lux_png_error(), lux::Histogram::MakeImage(), lux::VerticalCrossMapping::Map(), lux::AngularMapping::Map(), lux::MIPMapImpl< T, U >::MIPMapImpl(), lux::Paraboloid::Paraboloid(), lux::InfiniteAreaLightIS::Pdf(), lux::GridAccel::PosToVoxel(), lux::PrimitiveSet::Sample(), lux::PdfPhoton::Sample(), lux::IrregularDistribution1D::Sample(), lux::InfiniteAreaLightIS::Sample_L(), SmoothStep(), lux::Sphere::Sphere(), lux::SphericalTheta(), lux::MIPMapImpl< T, U >::texelInternal(), lux::Torus::Torus(), lux::MIPMapImpl< T, U >::triangle(), lux::LuxGui::LuxLightGroupPanel::UpdateWidgetValues(), lux::ImageFilm::WriteImage(), and lux::FlexImageFilm::WriteImage2().
int Float2Int | ( | T | val | ) | [inline] |
Definition at line 304 of file lux.h.
Referenced by lux::MIPMapImpl< T, U >::EWA(), lux::MetropolisSampler::GetNextSample(), lux::ERPTSampler::GetNextSample(), lux::InfiniteAreaLightIS::Pdf(), lux::GridAccel::PosToVoxel(), and lux::InfiniteAreaLightIS::Sample_L().
int Floor2Int | ( | double | val | ) | [inline] |
Definition at line 307 of file lux.h.
Referenced by lux::ImageFilm::AddSample(), lux::FlexImageFilm::AddSample(), lux::ERPTSampler::AddSample(), lux::bilinearSampleImage(), lux::VolumeGrid::Density(), lux::UVTexture::Evaluate(), lux::MarbleTexture::Evaluate(), lux::DotsTexture< T >::Evaluate(), lux::Checkerboard3D< T >::Evaluate(), lux::Checkerboard2D< T >::Evaluate(), lux::MIPMapImpl< T, U >::EWA(), lux::FlexImageFilm::FlexImageFilm(), lux::LowdiscrepancyPixelSampler::GetNextPixel(), lux::ImageFilm::GetSampleExtent(), lux::FlexImageFilm::GetSampleExtent(), lux::IrregularSPD::IrregularSPD(), lux::SingleScattering::Li(), lux::MLTPathIntegrator::Li(), lux::IGIIntegrator::Li(), lux::ExPhotonIntegrator::Li(), lux::BidirIntegrator::Li(), lux::MIPMapImpl< T, U >::Lookup(), lux::MIPMapImpl< T, U >::nearest(), lux::PhotonIntegrator::Preprocess(), lux::IGIIntegrator::Preprocess(), lux::ExPhotonIntegrator::Preprocess(), lux::MIPMapImpl< T, U >::resampleWeights(), lux::SpectrumWavelengths::Sample(), lux::SPD::sample(), lux::SunLight::Sample_L(), lux::SkyLight::Sample_L(), lux::InfiniteAreaLight::Sample_L(), lux::FlexImageFilm::SetParameterValue(), lux::MIPMapImpl< T, U >::triangle(), lux::LuxGui::UpdateStatistics(), and lux::VegasPixelSampler::VegasPixelSampler().
bool IsPowerOf2 | ( | int | v | ) | [inline] |
Definition at line 292 of file lux.h.
Referenced by lux::Voxel::AddPrimitive(), lux::HilbertPixelSampler::HilbertPixelSampler(), lux::LDSampler::LDSampler(), and lux::MIPMapImpl< T, U >::MIPMapImpl().
T Lerp | ( | float | t, | |
T | v1, | |||
T | v2 | |||
) | [inline] |
Definition at line 258 of file lux.h.
Referenced by lux::ColorSystem::Constrain(), lux::VolumeGrid::Density(), lux::VirtualLight::GetSWCSpectrum(), lux::Camera::GetTime(), lux::ColorSystem::Limit(), lux::HighContrastOp::Map(), lux::NURBS::Refine(), lux::SpectrumWavelengths::Sample(), lux::SPD::sample(), lux::MotionSystem::Sample(), and lux::Cylinder::Sample().
float Log2 | ( | float | x | ) | [inline] |
Definition at line 286 of file lux.h.
Referenced by Log2Int(), and lux::MIPMapImpl< T, U >::Lookup().
int Log2Int | ( | float | v | ) | [inline] |
Definition at line 289 of file lux.h.
References Log2(), and Round2Int().
Referenced by lux::MIPMapImpl< T, U >::MIPMapImpl(), lux::TaBRecKdTreeAccel::TaBRecKdTreeAccel(), and lux::UnsafeKdTreeAccel::UnsafeKdTreeAccel().
Definition at line 270 of file lux.h.
Referenced by lux::MIPMapImpl< T, U >::MIPMapImpl(), and lux::MIPMapImpl< T, U >::texelInternal().
bool ParseFile | ( | const char * | filename | ) |
Definition at line 27 of file parser.cpp.
References current_file, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), line_num, LUX_NOFILE, LUX_SEVERE, luxError, cimg_library::cimg::strcmp(), yyin, and yyparse().
Referenced by lux::LuxGui::EngineThread(), and engineThread().
bool Quadratic | ( | float | A, | |
float | B, | |||
float | C, | |||
float * | t0, | |||
float * | t1 | |||
) | [inline] |
Definition at line 319 of file lux.h.
References cimg_library::cimg::swap().
Referenced by lux::Sphere::Intersect(), lux::Quadrilateral::Intersect(), lux::Paraboloid::Intersect(), lux::MeshQuadrilateral::Intersect(), lux::LensComponent::Intersect(), lux::Hyperboloid::Intersect(), lux::Cylinder::Intersect(), lux::Cone::Intersect(), lux::Sphere::IntersectP(), lux::Paraboloid::IntersectP(), lux::LensComponent::IntersectP(), lux::Hyperboloid::IntersectP(), lux::Cylinder::IntersectP(), and lux::Cone::IntersectP().
float Radians | ( | float | deg | ) | [inline] |
Definition at line 280 of file lux.h.
References M_PI.
Referenced by lux::Cone::Cone(), lux::Cylinder::Cylinder(), lux::Disk::Disk(), lux::ExPhotonIntegrator::ExPhotonIntegrator(), lux::Hyperboloid::Hyperboloid(), lux::IESSphericalFunction::IESSphericalFunction(), lux::LensComponent::LensComponent(), lux::OrenNayar::OrenNayar(), lux::Paraboloid::Paraboloid(), lux::PerspectiveCamera::PerspectiveCamera(), lux::ProjectionLight::ProjectionLight(), lux::Sphere::Sphere(), lux::SpotLight::SpotLight(), and lux::Torus::Torus().
int Round2Int | ( | double | val | ) | [inline] |
Definition at line 264 of file lux.h.
Referenced by lux::GridAccel::GridAccel(), Log2Int(), lux::TaBRecKdTreeAccel::TaBRecKdTreeAccel(), and lux::UnsafeKdTreeAccel::UnsafeKdTreeAccel().
Definition at line 295 of file lux.h.
Referenced by lux::HilbertPixelSampler::HilbertPixelSampler(), lux::IGIIntegrator::IGIIntegrator(), lux::LDSampler::LDSampler(), lux::MIPMapImpl< T, U >::MIPMapImpl(), and lux::LDSampler::RoundSize().
float SmoothStep | ( | float | min, | |
float | max, | |||
float | value | |||
) | [inline] |