lux::Cylinder Class Reference

#include <cylinder.h>

Inheritance diagram for lux::Cylinder:

lux::Shape

List of all members.

Public Member Functions

 Cylinder (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

Static Public Member Functions

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

Protected Attributes

float radius
float zmin
float zmax
float phiMax


Detailed Description

Definition at line 30 of file cylinder.h.


Constructor & Destructor Documentation

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

Definition at line 30 of file cylinder.cpp.

References Clamp(), cimg_library::cimg::max(), cimg_library::cimg::min(), phiMax, Radians(), radius, zmax, and zmin.

Referenced by CreateShape().


Member Function Documentation

float Cylinder::Area (  )  const [virtual]

Reimplemented from lux::Shape.

Definition at line 157 of file cylinder.cpp.

References phiMax, radius, zmax, and zmin.

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

Definition at line 160 of file cylinder.cpp.

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

Referenced by lux::MakeShape().

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

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

BBox Cylinder::ObjectBound (  )  const [virtual]

Implements lux::Shape.

Definition at line 38 of file cylinder.cpp.

References radius, zmax, and zmin.

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


Member Data Documentation

float lux::Cylinder::phiMax [protected]

Definition at line 55 of file cylinder.h.

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

float lux::Cylinder::radius [protected]

Definition at line 53 of file cylinder.h.

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

float lux::Cylinder::zmax [protected]

Definition at line 54 of file cylinder.h.

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

float lux::Cylinder::zmin [protected]

Definition at line 54 of file cylinder.h.

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


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

Generated on Tue Nov 10 01:36:41 2009 for lux by  doxygen 1.5.9