lux::SphericalMapping2D Class Reference

#include <texture.h>

Inheritance diagram for lux::SphericalMapping2D:
[legend]
Collaboration diagram for lux::SphericalMapping2D:
[legend]

List of all members.

Public Member Functions

 SphericalMapping2D (const Transform &toSph)
virtual ~SphericalMapping2D ()
virtual 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 54 of file texture.h.


Constructor & Destructor Documentation

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

Definition at line 57 of file texture.h.

virtual lux::SphericalMapping2D::~SphericalMapping2D (  )  [inline, virtual]

Definition at line 60 of file texture.h.


Member Function Documentation

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

Definition at line 101 of file texture.cpp.

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

Referenced by Map().


Member Data Documentation

Definition at line 66 of file texture.h.

Referenced by sphere().


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208