#include <surfacepoints.h>
Public Member Functions | |
| SurfacePointsRenderer (float md, const Point &pc, float t, const string &fn) | |
| void | Render (const Scene *scene) |
| Spectrum | Li (const Scene *scene, const RayDifferential &ray, const Sample *sample, RNG &rng, MemoryArena &arena, Intersection *isect, Spectrum *T) const |
| Spectrum | Transmittance (const Scene *scene, const RayDifferential &ray, const Sample *sample, RNG &rng, MemoryArena &arena) const |
Private Attributes | |
| float | minDist |
| float | time |
| Point | pCamera |
| string | filename |
| vector< SurfacePoint > | points |
Friends | |
| void | FindPoissonPointDistribution (const Point &pCamera, float time, float minDist, const Scene *scene, vector< SurfacePoint > *points) |
Definition at line 48 of file surfacepoints.h.
| SurfacePointsRenderer::SurfacePointsRenderer | ( | float | md, | |
| const Point & | pc, | |||
| float | t, | |||
| const string & | fn | |||
| ) | [inline] |
Definition at line 51 of file surfacepoints.h.
| Spectrum SurfacePointsRenderer::Li | ( | const Scene * | scene, | |
| const RayDifferential & | ray, | |||
| const Sample * | sample, | |||
| RNG & | rng, | |||
| MemoryArena & | arena, | |||
| Intersection * | isect, | |||
| Spectrum * | T | |||
| ) | const [virtual] |
Implements Renderer.
Definition at line 88 of file surfacepoints.cpp.
| void SurfacePointsRenderer::Render | ( | const Scene * | scene | ) | [virtual] |
Implements Renderer.
Definition at line 101 of file surfacepoints.cpp.
References SurfacePoint::area, BBox::BoundingSphere(), RWMutex::Create(), RWMutex::Destroy(), ProgressReporter::Done(), EnqueueTasks(), BBox::Expand(), filename, Inverse(), minDist, SurfacePoint::n, NumSystemCores(), SurfacePoint::p, PbrtOptions, pCamera, points, Options::quickRender, SurfacePoint::rayEpsilon, Severe(), time, Translate(), BBox::Volume(), WaitForAllTasks(), Scene::WorldBound(), Normal::x, Point::x, Normal::y, Point::y, Normal::z, and Point::z.
Referenced by FindPoissonPointDistribution().
| Spectrum SurfacePointsRenderer::Transmittance | ( | const Scene * | scene, | |
| const RayDifferential & | ray, | |||
| const Sample * | sample, | |||
| RNG & | rng, | |||
| MemoryArena & | arena | |||
| ) | const [virtual] |
Implements Renderer.
Definition at line 95 of file surfacepoints.cpp.
| void FindPoissonPointDistribution | ( | const Point & | pCamera, | |
| float | time, | |||
| float | minDist, | |||
| const Scene * | scene, | |||
| vector< SurfacePoint > * | points | |||
| ) | [friend] |
Definition at line 256 of file surfacepoints.cpp.
string SurfacePointsRenderer::filename [private] |
Definition at line 64 of file surfacepoints.h.
Referenced by Render().
float SurfacePointsRenderer::minDist [private] |
Definition at line 62 of file surfacepoints.h.
Referenced by Render().
Point SurfacePointsRenderer::pCamera [private] |
Definition at line 63 of file surfacepoints.h.
Referenced by Render().
vector<SurfacePoint> SurfacePointsRenderer::points [private] |
Definition at line 67 of file surfacepoints.h.
Referenced by FindPoissonPointDistribution(), and Render().
float SurfacePointsRenderer::time [private] |
Definition at line 62 of file surfacepoints.h.
Referenced by Render().
1.6.3