Hyperboloid Class Reference

Inheritance diagram for Hyperboloid:

Shape ReferenceCounted

List of all members.

Public Member Functions

 Hyperboloid (const Transform &o2w, bool ro, const Point &point1, const Point &point2, float tm)
BBox ObjectBound () const
bool Intersect (const Ray &ray, float *tHit, DifferentialGeometry *dg) const
bool IntersectP (const Ray &ray) const
float Area () const

Protected Attributes

Point p1
Point p2
float zmin
float zmax
float phiMax
float rmax
float a
float c


Detailed Description

Definition at line 27 of file hyperboloid.cpp.


Constructor & Destructor Documentation

Hyperboloid::Hyperboloid ( const Transform o2w,
bool  ro,
const Point point1,
const Point point2,
float  tm 
)

Definition at line 47 of file hyperboloid.cpp.

References a, c, Clamp(), p1, p2, phiMax, Radians(), rmax, Point::x, Point::y, Point::z, zmax, and zmin.

Referenced by CreateShape().


Member Function Documentation

BBox Hyperboloid::ObjectBound (  )  const [virtual]

Implements Shape.

Definition at line 71 of file hyperboloid.cpp.

References p1, p2, rmax, zmax, and zmin.

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

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

Reimplemented from Shape.

Definition at line 168 of file hyperboloid.cpp.

References a, c, Ray::d, M_PI, Ray::maxt, Ray::mint, Ray::o, p1, p2, phiMax, Quadratic(), Shape::WorldToObject, Point::x, Vector::x, Point::y, Vector::y, Point::z, Vector::z, zmax, and zmin.

float Hyperboloid::Area (  )  const [virtual]

Reimplemented from Shape.

Definition at line 224 of file hyperboloid.cpp.

References p1, p2, phiMax, QUAD, SQR, Point::x, Point::y, and Point::z.


Member Data Documentation

Point Hyperboloid::p1 [protected]

Definition at line 40 of file hyperboloid.cpp.

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

Point Hyperboloid::p2 [protected]

Definition at line 40 of file hyperboloid.cpp.

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

float Hyperboloid::zmin [protected]

Definition at line 41 of file hyperboloid.cpp.

Referenced by Hyperboloid(), Intersect(), IntersectP(), and ObjectBound().

float Hyperboloid::zmax [protected]

Definition at line 41 of file hyperboloid.cpp.

Referenced by Hyperboloid(), Intersect(), IntersectP(), and ObjectBound().

float Hyperboloid::phiMax [protected]

Definition at line 42 of file hyperboloid.cpp.

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

float Hyperboloid::rmax [protected]

Definition at line 43 of file hyperboloid.cpp.

Referenced by Hyperboloid(), and ObjectBound().

float Hyperboloid::a [protected]

Definition at line 44 of file hyperboloid.cpp.

Referenced by Hyperboloid(), Intersect(), and IntersectP().

float Hyperboloid::c [protected]

Definition at line 44 of file hyperboloid.cpp.

Referenced by Hyperboloid(), Intersect(), and IntersectP().


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

Generated on Mon Jul 20 17:31:55 2009 for pbrt by  doxygen 1.5.6