#include <lenscomponent.h>

Public Member Functions | |
| LensComponent (const Transform &o2w, bool ro, float rad, float zmin, float zmax, float phiMax, float aperture) | |
| BBox | ObjectBound () const |
| bool | Intersect (const Ray &ray, float *tHit, DifferentialGeometry *dg) const |
| bool | IntersectP (const Ray &ray) const |
| float | Area () const |
| Point | Sample (float u1, float u2, Normal *n) const |
Static Public Member Functions | |
| static Shape * | CreateShape (const Transform &o2w, bool reverseOrientation, const ParamSet ¶ms) |
Private Attributes | |
| float | apRadius |
| float | radius |
| float | phiMax |
| float | zmin |
| float | zmax |
| float | thetaMin |
| float | thetaMax |
Definition at line 28 of file lenscomponent.h.
| LensComponent::LensComponent | ( | const Transform & | o2w, | |
| bool | ro, | |||
| float | rad, | |||
| float | zmin, | |||
| float | zmax, | |||
| float | phiMax, | |||
| float | aperture | |||
| ) |
Definition at line 36 of file lenscomponent.cpp.
References apRadius, Clamp(), cimg_library::cimg::max(), cimg_library::cimg::min(), phiMax, Radians(), radius, thetaMax, thetaMin, zmax, and zmin.
Referenced by CreateShape().
| float LensComponent::Area | ( | ) | const [virtual] |
| Shape * LensComponent::CreateShape | ( | const Transform & | o2w, | |
| bool | reverseOrientation, | |||
| const ParamSet & | params | |||
| ) | [static] |
Definition at line 187 of file lenscomponent.cpp.
References lux::ParamSet::FindOneFloat(), LensComponent(), radius, zmax, and zmin.
Referenced by lux::MakeShape().
| bool LensComponent::Intersect | ( | const Ray & | ray, | |
| float * | tHit, | |||
| DifferentialGeometry * | dg | |||
| ) | const [virtual] |
Reimplemented from lux::Shape.
Definition at line 58 of file lenscomponent.cpp.
References apRadius, lux::Ray::d, M_PI, lux::Ray::maxt, lux::Ray::mint, lux::Ray::o, lux::Shape::ObjectToWorld, phiMax, Quadratic(), radius, thetaMax, thetaMin, lux::Shape::WorldToObject, lux::Point::x, lux::Vector::x, lux::Point::y, lux::Vector::y, lux::Point::z, and lux::Vector::z.
| bool LensComponent::IntersectP | ( | const Ray & | ray | ) | const [virtual] |
Reimplemented from lux::Shape.
Definition at line 137 of file lenscomponent.cpp.
References apRadius, lux::Ray::d, lux::Ray::maxt, lux::Ray::mint, lux::Ray::o, Quadratic(), radius, lux::Shape::WorldToObject, lux::Point::x, lux::Vector::x, lux::Point::y, lux::Vector::y, lux::Point::z, and lux::Vector::z.
| BBox LensComponent::ObjectBound | ( | ) | const [virtual] |
Reimplemented from lux::Shape.
Definition at line 47 of file lenscomponent.cpp.
References lux::ConcentricSampleDisk(), lux::Shape::ObjectToWorld, and radius.
float lux::LensComponent::apRadius [private] |
Definition at line 46 of file lenscomponent.h.
Referenced by Intersect(), IntersectP(), and LensComponent().
float lux::LensComponent::phiMax [private] |
Definition at line 48 of file lenscomponent.h.
Referenced by Area(), Intersect(), and LensComponent().
float lux::LensComponent::radius [private] |
Definition at line 47 of file lenscomponent.h.
Referenced by Area(), CreateShape(), Intersect(), IntersectP(), LensComponent(), ObjectBound(), and Sample().
float lux::LensComponent::thetaMax [private] |
float lux::LensComponent::thetaMin [private] |
float lux::LensComponent::zmax [private] |
Definition at line 49 of file lenscomponent.h.
Referenced by Area(), CreateShape(), LensComponent(), and ObjectBound().
float lux::LensComponent::zmin [private] |
Definition at line 49 of file lenscomponent.h.
Referenced by Area(), CreateShape(), LensComponent(), and ObjectBound().
1.5.9