World::Texture Class Reference

#include <Texture.hh>

Inheritance diagram for World::Texture:

Inheritance graph
[legend]
Collaboration diagram for World::Texture:

Collaboration graph
[legend]

List of all members.


Detailed Description

Texture interface.

Texture is a function which returns color for given u,v coordinates

Definition at line 33 of file Texture.hh.


Public Member Functions

virtual Color Get (Math::Point UV) const =0

Protected Member Functions

 Texture (const Double SizeU=1.0, const Double SizeV=1.0, const Bool Tiled=true)
void Tile (Math::Point &UV) const
virtual std::string Dump () const

Protected Attributes

const Bool Tiled
const Double SizeU
const Double SizeV

Friends

std::ostream & operator<< (std::ostream &os, const Texture &T)

Constructor & Destructor Documentation

World::Texture::Texture ( const Double  SizeU = 1.0,
const Double  SizeV = 1.0,
const Bool  Tiled = true 
) [inline, protected]

Default constructor for creating textures.

Definition at line 41 of file Texture.hh.


Member Function Documentation

void World::Texture::Tile ( Math::Point UV  )  const [inline, protected]

Change u,v coords if they are outside (0, Size) range

Definition at line 47 of file Texture.hh.

References Math::Point::GetU(), Math::Point::GetV(), Math::Point::SetU(), Math::Point::SetV(), SizeU, and SizeV.

Referenced by World::TexLib::Checked::Get().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string World::Texture::Dump (  )  const [protected, virtual]

Debug function; dumps information about texture

Reimplemented in World::TexLib::Plain, and World::TexLib::Checked.

Definition at line 23 of file Texture.cc.

References SizeU, SizeV, and Tiled.

Referenced by World::TexLib::Checked::Dump(), World::TexLib::Plain::Dump(), and World::operator<<().

Here is the caller graph for this function:

virtual Color World::Texture::Get ( Math::Point  UV  )  const [pure virtual]

Get texture color at point (u,v)

Implemented in World::TexLib::Plain, and World::TexLib::Checked.

Referenced by World::Material::GetColor().

Here is the caller graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Texture T 
) [friend]

Pretty-printer

Definition at line 33 of file Texture.cc.


Member Data Documentation

const Double World::Texture::SizeU [protected]

Texture Size

Definition at line 36 of file Texture.hh.

Referenced by Dump(), World::TexLib::Checked::Get(), and Tile().

const Double World::Texture::SizeV [protected]

Texture Size

Definition at line 36 of file Texture.hh.

Referenced by Dump(), World::TexLib::Checked::Get(), and Tile().

const Bool World::Texture::Tiled [protected]

Tilling setting

Definition at line 38 of file Texture.hh.

Referenced by Dump(), and World::TexLib::Checked::Get().


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

Generated on Wed Mar 12 00:37:02 2008 for blaRAY by  doxygen 1.5.5