lux::LensComponent Class Reference

#include <lenscomponent.h>

Inheritance diagram for lux::LensComponent:

lux::Shape

List of all members.

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 ShapeCreateShape (const Transform &o2w, bool reverseOrientation, const ParamSet &params)

Private Attributes

float apRadius
float radius
float phiMax
float zmin
float zmax
float thetaMin
float thetaMax


Detailed Description

Definition at line 28 of file lenscomponent.h.


Constructor & Destructor Documentation

LensComponent::LensComponent ( const Transform o2w,
bool  ro,
float  rad,
float  zmin,
float  zmax,
float  phiMax,
float  aperture 
)


Member Function Documentation

float LensComponent::Area (  )  const [virtual]

Reimplemented from lux::Shape.

Definition at line 183 of file lenscomponent.cpp.

References phiMax, radius, zmax, and zmin.

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]

bool LensComponent::IntersectP ( const Ray ray  )  const [virtual]

BBox LensComponent::ObjectBound (  )  const [virtual]

Implements lux::Shape.

Definition at line 54 of file lenscomponent.cpp.

References radius, zmax, and zmin.

Point LensComponent::Sample ( float  u1,
float  u2,
Normal n 
) const [virtual]

Reimplemented from lux::Shape.

Definition at line 47 of file lenscomponent.cpp.

References lux::ConcentricSampleDisk(), lux::Shape::ObjectToWorld, and radius.


Member Data Documentation

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 50 of file lenscomponent.h.

Referenced by Intersect(), and LensComponent().

Definition at line 50 of file lenscomponent.h.

Referenced by Intersect(), and LensComponent().

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().


The documentation for this class was generated from the following files:

Generated on Mon May 18 07:16:20 2009 for lux by  doxygen 1.5.8