CylindricalMapping2D Class Reference

#include <texture.h>

Inheritance diagram for CylindricalMapping2D:

TextureMapping2D

List of all members.

Public Member Functions

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

Private Member Functions

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

Private Attributes

Transform WorldToTexture


Detailed Description

Definition at line 64 of file texture.h.


Constructor & Destructor Documentation

CylindricalMapping2D::CylindricalMapping2D ( const Transform toCyl  )  [inline]

Definition at line 68 of file texture.h.


Member Function Documentation

void CylindricalMapping2D::Map ( const DifferentialGeometry dg,
float *  s,
float *  t,
float *  dsdx,
float *  dtdx,
float *  dsdy,
float *  dtdy 
) const [virtual]

void CylindricalMapping2D::cylinder ( const Point P,
float *  s,
float *  t 
) const [private]

Definition at line 125 of file texture.cpp.

References M_PI, Normalize(), WorldToTexture, Vector::x, Vector::y, and Vector::z.

Referenced by Map().


Member Data Documentation

Definition at line 76 of file texture.h.

Referenced by cylinder().


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

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