rcrt::WaterTexture Class Reference

#include <WaterTexture.h>

Inheritance diagram for rcrt::WaterTexture:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 WaterTexture ()
virtual ~WaterTexture ()
virtual RGBAColor getColor (const Point2D &p) const
virtual Vec3D getBump (const Point2D &p, const float &scale, const Matrix4D &onb) const
float getScale (const Point3D &hit, float disturbation, float widthFactor, bool &down, Vec3D &radius) const
void setWidth (const float &w)
void setIntensity (const float &i)

Private Attributes

float width
float intensity


Detailed Description

Definition at line 10 of file WaterTexture.h.


Constructor & Destructor Documentation

rcrt::WaterTexture::WaterTexture (  ) 

Definition at line 7 of file WaterTexture.cpp.

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

Definition at line 11 of file WaterTexture.cpp.


Member Function Documentation

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

Implements rcrt::Texture2D.

Definition at line 25 of file WaterTexture.cpp.

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

Implements rcrt::Texture2D.

Definition at line 15 of file WaterTexture.cpp.

References rcrt::Texture< T >::frame, intensity, PerlinNoise::turbulence(), and width.

float rcrt::WaterTexture::getScale ( const Point3D hit,
float  disturbation,
float  widthFactor,
bool &  down,
Vec3D radius 
) const

void rcrt::WaterTexture::setWidth ( const float &  w  ) 

Definition at line 30 of file WaterTexture.cpp.

References width.

void rcrt::WaterTexture::setIntensity ( const float &  i  ) 

Definition at line 35 of file WaterTexture.cpp.

References intensity.


Member Data Documentation

float rcrt::WaterTexture::width [private]

Definition at line 13 of file WaterTexture.h.

Referenced by getBump(), and setWidth().

float rcrt::WaterTexture::intensity [private]

Definition at line 13 of file WaterTexture.h.

Referenced by getBump(), and setIntensity().


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