SphericalMapping2D Class Reference

#include <texture.h>

Inheritance diagram for SphericalMapping2D:
TextureMapping2D

List of all members.

Public Member Functions

 SphericalMapping2D (const Transform &toSph)
void Map (const DifferentialGeometry &dg, float *s, float *t, float *dsdx, float *dtdx, float *dsdy, float *dtdy) const

Private Member Functions

void sphere (const Point &P, float *s, float *t) const

Private Attributes

Transform WorldToTexture

Detailed Description

Definition at line 60 of file texture.h.


Constructor & Destructor Documentation

SphericalMapping2D::SphericalMapping2D ( const Transform toSph  )  [inline]

Definition at line 63 of file texture.h.


Member Function Documentation

void SphericalMapping2D::Map ( const DifferentialGeometry dg,
float *  s,
float *  t,
float *  dsdx,
float *  dtdx,
float *  dsdy,
float *  dtdy 
) const [virtual]
void SphericalMapping2D::sphere ( const Point P,
float *  s,
float *  t 
) const [private]

Definition at line 113 of file texture.cpp.

References INV_PI, INV_TWOPI, Normalize(), SphericalPhi(), SphericalTheta(), and WorldToTexture.

Referenced by Map().


Member Data Documentation

Definition at line 71 of file texture.h.

Referenced by sphere().


The documentation for this class was generated from the following files:
Generated on Sat Aug 28 20:00:15 2010 for pbrt by  doxygen 1.6.3