rtVTK  0.6.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Public Attributes
Core::Texture Class Reference

Information about object color and scaling. More...

List of all members.

Public Member Functions

 Texture (const string &, float, float)
 Texture (const CoreF::RGB &, float, float)
 Texture ()
 ~Texture ()
size_t size () const
bool load (const char *)
bool readData (FILE *, const char *, uint, uint, uint)
CoreF::RGB getRGB (const Vector &) const
bool read (istream &)
bool write (ostream &) const

Public Attributes

uint width
uint height
float uscale
float vscale
CoreF::RGBvalues

Detailed Description

Information about object color and scaling.


Constructor & Destructor Documentation

Core::Texture::Texture ( const string &  filename,
float  uscale_,
float  vscale_ 
) [inline]

References load().

Core::Texture::Texture ( const CoreF::RGB rgb,
float  uscale_,
float  vscale_ 
) [inline]
Core::Texture::Texture ( ) [inline]

References values.


Member Function Documentation

CoreF::RGB Core::Texture::getRGB ( const Vector &  uvw) const

References height, uscale, values, vscale, and width.

bool Core::Texture::load ( const char *  filename)
Todo:
TODO(cpg) - cplusplus-ify me!

References height, readData(), values, and width.

Referenced by Texture().

bool Core::Texture::read ( istream &  in)

References height, uscale, values, vscale, and width.

Referenced by Core::Mesh::Material::read().

bool Core::Texture::readData ( FILE *  fp,
const char *  magic,
uint  w,
uint  h,
uint  stride 
)
Todo:
TODO(cpg) - cplusplus-ify me!

References height, values, and width.

Referenced by load().

size_t Core::Texture::size ( ) const [inline]

References height, and width.

bool Core::Texture::write ( ostream &  out) const

References height, uscale, values, vscale, and width.


Member Data Documentation

Referenced by getRGB(), load(), read(), readData(), size(), and write().

Referenced by getRGB(), read(), and write().

Referenced by getRGB(), read(), and write().

Bug:
XXX(cpg) - why are these public? and then why not use a struct? if a class is the right construct, make these private and make load() and readData() private as well

Referenced by getRGB(), load(), read(), readData(), size(), and write().


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends