cpe::texture Class Reference

Container for texture. More...

Collaboration diagram for cpe::texture:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 texture ()
 emtpy constructor
void load_picture (const std::string &filename)
 load texture file
void export_ppm (const std::string &filename) const
 export ppm texture file
const unsigned int & get_Nx () const
 get image width
const unsigned int & get_Ny () const
 get image height
const unsigned int & get_depth () const
 get image depth
const std::vector< unsigned
char > & 
get_data () const
 get internal data

Private Member Functions

void load_ppm_picture (const std::string &filename)
 load ppm texture file

Private Attributes

unsigned int N_x
 internal width
unsigned int N_y
 internal height
unsigned int depth
 internal depth
std::vector< unsigned char > picture
 internal storage of picture data

Detailed Description

Container for texture.


Constructor & Destructor Documentation

cpe::texture::texture (  ) 

emtpy constructor


Member Function Documentation

void cpe::texture::export_ppm ( const std::string &  filename  )  const

export ppm texture file

References N_x, N_y, and picture.

const std::vector< unsigned char > & cpe::texture::get_data (  )  const

get internal data

References picture.

Referenced by cpe::opengl_drawer::generate_texture().

const unsigned int & cpe::texture::get_depth (  )  const

get image depth

References depth.

const unsigned int & cpe::texture::get_Nx (  )  const

get image width

References N_x.

Referenced by cpe::opengl_drawer::generate_texture().

const unsigned int & cpe::texture::get_Ny (  )  const

get image height

References N_y.

Referenced by cpe::opengl_drawer::generate_texture().

void cpe::texture::load_picture ( const std::string &  filename  ) 

load texture file

References load_ppm_picture().

Referenced by cpe::opengl_drawer::generate_texture().

Here is the call graph for this function:

void cpe::texture::load_ppm_picture ( const std::string &  filename  )  [private]

load ppm texture file

References cpe::string_converter::delete_empty(), depth, N_x, N_y, picture, and cpe::string_tokenizer::tokenize().

Referenced by load_picture().

Here is the call graph for this function:


Member Data Documentation

unsigned int cpe::texture::depth [private]

internal depth

Referenced by get_depth(), and load_ppm_picture().

unsigned int cpe::texture::N_x [private]

internal width

Referenced by export_ppm(), get_Nx(), and load_ppm_picture().

unsigned int cpe::texture::N_y [private]

internal height

Referenced by export_ppm(), get_Ny(), and load_ppm_picture().

std::vector<unsigned char> cpe::texture::picture [private]

internal storage of picture data

Referenced by export_ppm(), get_data(), and load_ppm_picture().


The documentation for this class was generated from the following files:
Generated on Mon Feb 27 18:30:22 2012 by  doxygen 1.6.3