rcrt::ImageTexture Class Reference

#include <ImageTexture.h>

Inheritance diagram for rcrt::ImageTexture:

Inheritance graph
[legend]
Collaboration diagram for rcrt::ImageTexture:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ImageTexture (Image *img)
virtual ~ImageTexture ()
virtual RGBAColor getColor (const Point2D &p) const
virtual Vec3D getBump (const Point2D &p, const float &scale, const Matrix4D &onb) const

Private Attributes

Imageimage


Detailed Description

Definition at line 10 of file ImageTexture.h.


Constructor & Destructor Documentation

rcrt::ImageTexture::ImageTexture ( Image img  ) 

Definition at line 6 of file ImageTexture.cpp.

rcrt::ImageTexture::~ImageTexture (  )  [virtual]

Definition at line 10 of file ImageTexture.cpp.

References image.


Member Function Documentation

RGBAColor rcrt::ImageTexture::getColor ( const Point2D p  )  const [virtual]

Implements rcrt::Texture2D.

Definition at line 15 of file ImageTexture.cpp.

References rcrt::Image::getHeight(), rcrt::Image::getPixel(), rcrt::Image::getWidth(), image, rcrt::Point2D::x(), and rcrt::Point2D::y().

Referenced by getBump(), rcrt::DisplacedTriangle::getDispPoint(), rcrt::ImageMaterial::sample(), rcrt::ImageMaterial::sampleDiffuse(), rcrt::ImageMaterial::sampleSpecular(), and rcrt::ImageMaterial::scatterPhoton().

Vec3D rcrt::ImageTexture::getBump ( const Point2D p,
const float &  scale,
const Matrix4D onb 
) const [virtual]

Implements rcrt::Texture2D.

Definition at line 54 of file ImageTexture.cpp.

References getColor(), rcrt::Image::getHeight(), rcrt::RGBAColor::getLuminance(), rcrt::Image::getPixel(), rcrt::Image::getWidth(), image, rcrt::Point2D::x(), and rcrt::Point2D::y().


Member Data Documentation

Image* rcrt::ImageTexture::image [private]

Definition at line 13 of file ImageTexture.h.

Referenced by getBump(), getColor(), and ~ImageTexture().


The documentation for this class was generated from the following files:
Generated on Thu Jan 31 19:33:19 2008 for RenderingCompetitionRayTracer by  doxygen 1.5.3