rcrt::WoodTexture Class Reference

#include <WoodTexture.h>

Inheritance diagram for rcrt::WoodTexture:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 WoodTexture (float ringDist, float distortion, float weight, Point3D org, Vec3D dir, const RGBColor &light, const RGBColor &dark)
virtual ~WoodTexture ()
virtual RGBAColor getColor (const Point3D &p) const
RGBAColor calcColor (const float &x) const
float getScale (const Point3D &hit, float disturbation, float widthFactor, bool &down, Vec3D &radius) const
Vec3D getBump (const Point3D &p, const Vec3D &normal) const

Private Attributes

float ringDist
float distortion
float weight
Vec3D dir
Point3D org
RGBAColor light
RGBAColor dark


Detailed Description

Definition at line 10 of file WoodTexture.h.


Constructor & Destructor Documentation

rcrt::WoodTexture::WoodTexture ( float  ringDist,
float  distortion,
float  weight,
Point3D  org,
Vec3D  dir,
const RGBColor light,
const RGBColor dark 
)

Definition at line 6 of file WoodTexture.cpp.

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

Definition at line 12 of file WoodTexture.cpp.


Member Function Documentation

RGBAColor rcrt::WoodTexture::getColor ( const Point3D p  )  const [virtual]

Implements rcrt::Texture3D.

Definition at line 16 of file WoodTexture.cpp.

References calcColor(), getScale(), and PerlinNoise::turbulence().

Referenced by rcrt::WoodMaterial::sample(), and rcrt::WoodMaterial::scatterPhoton().

RGBAColor rcrt::WoodTexture::calcColor ( const float &  x  )  const

Definition at line 29 of file WoodTexture.cpp.

References dark, and light.

Referenced by getColor().

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

Definition at line 34 of file WoodTexture.cpp.

References dir, distortion, rcrt::Vec3D::norm(), rcrt::Vec3D::normalize(), org, and ringDist.

Referenced by getBump(), and getColor().

Vec3D rcrt::WoodTexture::getBump ( const Point3D p,
const Vec3D normal 
) const

Definition at line 65 of file WoodTexture.cpp.

References getScale(), PerlinNoise::turbulence(), and weight.

Referenced by rcrt::WoodMaterial::getShadingNormal().


Member Data Documentation

float rcrt::WoodTexture::ringDist [private]

Definition at line 13 of file WoodTexture.h.

Referenced by getScale().

float rcrt::WoodTexture::distortion [private]

Definition at line 13 of file WoodTexture.h.

Referenced by getScale().

float rcrt::WoodTexture::weight [private]

Definition at line 13 of file WoodTexture.h.

Referenced by getBump().

Vec3D rcrt::WoodTexture::dir [private]

Definition at line 14 of file WoodTexture.h.

Referenced by getScale().

Point3D rcrt::WoodTexture::org [private]

Definition at line 15 of file WoodTexture.h.

Referenced by getScale().

RGBAColor rcrt::WoodTexture::light [private]

Definition at line 16 of file WoodTexture.h.

Referenced by calcColor().

RGBAColor rcrt::WoodTexture::dark [private]

Definition at line 16 of file WoodTexture.h.

Referenced by calcColor().


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