lux::Sphere Class Reference

#include <sphere.h>

Inheritance diagram for lux::Sphere:

lux::Shape

List of all members.

Public Member Functions

 Sphere (const Transform &o2w, bool ro, float rad, float zmin, float zmax, float phiMax)
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 *ns) const
Point Sample (const Point &p, float u1, float u2, Normal *ns) const
float Pdf (const Point &p, const Vector &wi) const

Static Public Member Functions

static ShapeCreateShape (const Transform &o2w, bool reverseOrientation, const ParamSet &params)

Private Attributes

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


Detailed Description

Definition at line 31 of file sphere.h.


Constructor & Destructor Documentation

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


Member Function Documentation

float Sphere::Area (  )  const [virtual]

Reimplemented from lux::Shape.

Definition at line 191 of file sphere.cpp.

References phiMax, radius, zmax, and zmin.

Shape * Sphere::CreateShape ( const Transform o2w,
bool  reverseOrientation,
const ParamSet params 
) [static]

Definition at line 194 of file sphere.cpp.

References lux::ParamSet::FindOneFloat(), radius, Sphere(), zmax, and zmin.

Referenced by lux::MakeShape().

bool Sphere::Intersect ( const Ray ray,
float *  tHit,
DifferentialGeometry dg 
) const [virtual]

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

BBox Sphere::ObjectBound (  )  const [virtual]

Implements lux::Shape.

Definition at line 40 of file sphere.cpp.

References radius, zmax, and zmin.

float lux::Sphere::Pdf ( const Point p,
const Vector wi 
) const [inline, virtual]

Point lux::Sphere::Sample ( const Point p,
float  u1,
float  u2,
Normal ns 
) const [inline, virtual]

Point lux::Sphere::Sample ( float  u1,
float  u2,
Normal ns 
) const [inline, virtual]


Member Data Documentation

float lux::Sphere::phiMax [private]

Definition at line 90 of file sphere.h.

Referenced by Area(), Intersect(), IntersectP(), and Sphere().

float lux::Sphere::radius [private]

Definition at line 89 of file sphere.h.

Referenced by Area(), CreateShape(), Intersect(), IntersectP(), ObjectBound(), Pdf(), Sample(), and Sphere().

float lux::Sphere::thetaMax [private]

Definition at line 92 of file sphere.h.

Referenced by Intersect(), and Sphere().

float lux::Sphere::thetaMin [private]

Definition at line 92 of file sphere.h.

Referenced by Intersect(), and Sphere().

float lux::Sphere::zmax [private]

Definition at line 91 of file sphere.h.

Referenced by Area(), CreateShape(), Intersect(), IntersectP(), ObjectBound(), and Sphere().

float lux::Sphere::zmin [private]

Definition at line 91 of file sphere.h.

Referenced by Area(), CreateShape(), Intersect(), IntersectP(), ObjectBound(), and Sphere().


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

Generated on Sat Aug 15 14:17:07 2009 for lux by  doxygen 1.5.9