#include <aggregatetest.h>
Public Member Functions | |
AggregateTest (int nIters, const vector< Reference< Primitive > > &primitives) | |
void | Render (const Scene *scene) |
Spectrum | Li (const Scene *scene, const RayDifferential &ray, const Sample *sample, RNG &rng, MemoryArena &arena, Intersection *isect=NULL, Spectrum *T=NULL) const |
Spectrum | Transmittance (const Scene *scene, const RayDifferential &ray, const Sample *sample, RNG &rng, MemoryArena &arena) const |
Private Attributes | |
int | nIterations |
vector< Reference< Primitive > > | primitives |
vector< BBox > | bboxes |
Definition at line 37 of file aggregatetest.h.
Definition at line 36 of file aggregatetest.cpp.
References bboxes, nIterations, and primitives.
Spectrum AggregateTest::Li | ( | const Scene * | scene, | |
const RayDifferential & | ray, | |||
const Sample * | sample, | |||
RNG & | rng, | |||
MemoryArena & | arena, | |||
Intersection * | isect = NULL , |
|||
Spectrum * | T = NULL | |||
) | const [virtual] |
Implements Renderer.
Definition at line 114 of file aggregatetest.cpp.
void AggregateTest::Render | ( | const Scene * | scene | ) | [virtual] |
Implements Renderer.
Definition at line 53 of file aggregatetest.cpp.
References bboxes, Ray::d, ProgressReporter::Done(), BBox::Expand(), Scene::Intersect(), IntersectP(), Lerp(), BBox::MaximumExtent(), Ray::maxt, Ray::mint, nIterations, Ray::o, BBox::pMax, BBox::pMin, primitives, RNG::RandomFloat(), RNG::RandomUInt(), Intersection::rayEpsilon, rng, UniformSampleSphere(), ProgressReporter::Update(), Warning(), Scene::WorldBound(), Vector::x, Point::x, Vector::y, Point::y, Vector::z, and Point::z.
Spectrum AggregateTest::Transmittance | ( | const Scene * | scene, | |
const RayDifferential & | ray, | |||
const Sample * | sample, | |||
RNG & | rng, | |||
MemoryArena & | arena | |||
) | const [virtual] |
Implements Renderer.
Definition at line 121 of file aggregatetest.cpp.
vector<BBox> AggregateTest::bboxes [private] |
Definition at line 51 of file aggregatetest.h.
Referenced by AggregateTest(), and Render().
int AggregateTest::nIterations [private] |
Definition at line 49 of file aggregatetest.h.
Referenced by AggregateTest(), and Render().
vector<Reference<Primitive> > AggregateTest::primitives [private] |
Definition at line 50 of file aggregatetest.h.
Referenced by AggregateTest(), and Render().