Texture2D Class Reference

#include <Texture2D.h>

Inheritance diagram for Texture2D:

Texture ESGObject TexturePNG List of all members.

Public Types

enum  Mapping { UV_MAPPING = (1<<0), XYZ_MAPPING = (1<<1) }

Public Member Functions

 Texture2D (void)
virtual ~Texture2D ()
virtual bool value (unsigned row, unsigned col, Color3f &c) const
virtual bool mapUV (float u, float v, Color3f &c) const
virtual bool mapXYZ (float x, float y, float z, Color3f &c) const
bool mapUV (const Vector2 &uv, Color3f &c) const
bool mapXYZ (const Vector3 &v, Color3f &c) const
Mapping mapping (void) const

Protected Member Functions

void _delete_texture (void)
void _allocate_texture (unsigned w, unsigned h)

Protected Attributes

Color3f ** _texture
unsigned _width
unsigned _height
Mapping _mapping

Detailed Description

Definition at line 11 of file Texture2D.h.


Member Enumeration Documentation

enum Mapping [inherited]
 

Enumerator:
UV_MAPPING 
XYZ_MAPPING 

Definition at line 14 of file Texture.h.


Constructor & Destructor Documentation

Texture2D void   )  [inline]
 

Definition at line 22 of file Texture2D.h.

virtual ~Texture2D  )  [inline, virtual]
 

Definition at line 25 of file Texture2D.h.

References Texture2D::_delete_texture().


Member Function Documentation

void _allocate_texture unsigned  w,
unsigned  h
[protected]
 

Definition at line 12 of file Texture2D.cc.

References Texture2D::_delete_texture(), Texture2D::_height, Texture2D::_texture, and Texture2D::_width.

Referenced by TexturePNG::TexturePNG().

void _delete_texture void   )  [protected]
 

Definition at line 5 of file Texture2D.cc.

References Texture2D::_height, and Texture2D::_texture.

Referenced by Texture2D::_allocate_texture(), and Texture2D::~Texture2D().

Mapping mapping void   )  const [inline, inherited]
 

Definition at line 29 of file Texture.h.

bool mapUV const Vector2 uv,
Color3f &  c
const [inline, inherited]
 

Definition at line 31 of file Texture.h.

bool mapUV float  u,
float  v,
Color3f &  c
const [virtual]
 

Implements Texture.

Definition at line 37 of file Texture2D.cc.

References Texture2D::_height, Texture2D::_texture, and Texture2D::_width.

bool mapXYZ const Vector3 v,
Color3f &  c
const [inline, inherited]
 

Definition at line 36 of file Texture.h.

bool mapXYZ float  x,
float  y,
float  z,
Color3f &  c
const [virtual]
 

Implements Texture.

Definition at line 44 of file Texture2D.cc.

bool value unsigned  row,
unsigned  col,
Color3f &  c
const [virtual]
 

Definition at line 28 of file Texture2D.cc.

References Texture2D::_height, Texture2D::_texture, and Texture2D::_width.


Member Data Documentation

unsigned _height [protected]
 

Definition at line 15 of file Texture2D.h.

Referenced by Texture2D::_allocate_texture(), Texture2D::_delete_texture(), Texture2D::mapUV(), TexturePNG::TexturePNG(), and Texture2D::value().

Mapping _mapping [protected, inherited]
 

Definition at line 20 of file Texture.h.

Color3f** _texture [protected]
 

Definition at line 13 of file Texture2D.h.

Referenced by Texture2D::_allocate_texture(), Texture2D::_delete_texture(), Texture2D::mapUV(), TexturePNG::TexturePNG(), and Texture2D::value().

unsigned _width [protected]
 

Definition at line 14 of file Texture2D.h.

Referenced by Texture2D::_allocate_texture(), Texture2D::mapUV(), TexturePNG::TexturePNG(), and Texture2D::value().


The documentation for this class was generated from the following files:
Generated on Wed Jun 28 12:24:36 2006 for esg by  doxygen 1.4.6