TexturePNG Class Reference

#include <TexturePNG.h>

Inheritance diagram for TexturePNG:

Texture2D Texture ESGObject List of all members.

Public Types

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

Public Member Functions

 TexturePNG (const char *)
virtual bool value (unsigned row, unsigned col, Color3f &c) const
virtual bool mapUV (float u, float v, Color3f &c) const
bool mapUV (const Vector2 &uv, Color3f &c) const
virtual bool mapXYZ (float x, float y, float z, 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 10 of file TexturePNG.h.


Member Enumeration Documentation

enum Mapping [inherited]
 

Enumerator:
UV_MAPPING 
XYZ_MAPPING 

Definition at line 14 of file Texture.h.


Constructor & Destructor Documentation

TexturePNG const char *   ) 
 

Definition at line 7 of file TexturePNG.cc.

References Texture2D::_allocate_texture(), Texture2D::_height, Texture2D::_texture, Texture2D::_width, and PNG_BYTES_TO_CHECK.


Member Function Documentation

void _allocate_texture unsigned  w,
unsigned  h
[protected, inherited]
 

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, inherited]
 

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, inherited]
 

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, inherited]
 

Implements Texture.

Definition at line 44 of file Texture2D.cc.

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

Definition at line 28 of file Texture2D.cc.

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


Member Data Documentation

unsigned _height [protected, inherited]
 

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, inherited]
 

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, inherited]
 

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