lux::ImageData Class Reference

#include <imagereader.h>

List of all members.

Public Types

enum  PixelDataType { UNSIGNED_CHAR_TYPE, UNSIGNED_SHORT_TYPE, FLOAT_TYPE }

Public Member Functions

 ImageData (int width, int height, PixelDataType type, int noChannels, TextureColorBase *data)
 ~ImageData ()
int getWidth ()
int getHeight ()
int getChannels ()
PixelDataType getPixelDataType ()
TextureColorBasegetData ()
bool isExrImage ()
void setIsExrImage (bool isExrImage)
template<class T >
MIPMap< T > * createMIPMap (ImageTextureFilterType filterType=BILINEAR, float maxAniso=8.f, ImageWrap wrapMode=TEXTURE_REPEAT, float gain=1.0f, float gamma=1.0f)

Private Attributes

int width_
int height_
int noChannels_
TextureColorBasedata_
PixelDataType pixel_type_
bool isExrImage_


Detailed Description

Definition at line 35 of file imagereader.h.


Member Enumeration Documentation

Enumerator:
UNSIGNED_CHAR_TYPE 
UNSIGNED_SHORT_TYPE 
FLOAT_TYPE 

Definition at line 37 of file imagereader.h.


Constructor & Destructor Documentation

lux::ImageData::ImageData ( int  width,
int  height,
PixelDataType  type,
int  noChannels,
TextureColorBase data 
) [inline]

Definition at line 43 of file imagereader.h.

References data_, height_, isExrImage_, noChannels_, pixel_type_, and width_.

lux::ImageData::~ImageData (  )  [inline]

Definition at line 54 of file imagereader.h.

References data_.


Member Function Documentation

template<class T >
MIPMap<T>* lux::ImageData::createMIPMap ( ImageTextureFilterType  filterType = BILINEAR,
float  maxAniso = 8.f,
ImageWrap  wrapMode = TEXTURE_REPEAT,
float  gain = 1.0f,
float  gamma = 1.0f 
) [inline]

int lux::ImageData::getChannels (  )  [inline]

Definition at line 66 of file imagereader.h.

References noChannels_.

TextureColorBase* lux::ImageData::getData (  )  [inline]

Definition at line 74 of file imagereader.h.

References data_.

int lux::ImageData::getHeight (  )  [inline]

Definition at line 62 of file imagereader.h.

References height_.

PixelDataType lux::ImageData::getPixelDataType (  )  [inline]

Definition at line 70 of file imagereader.h.

References pixel_type_.

int lux::ImageData::getWidth (  )  [inline]

Definition at line 58 of file imagereader.h.

References width_.

bool lux::ImageData::isExrImage (  )  [inline]

Definition at line 78 of file imagereader.h.

References isExrImage_.

void lux::ImageData::setIsExrImage ( bool  isExrImage  )  [inline]

Definition at line 82 of file imagereader.h.

References isExrImage_.

Referenced by lux::ReadImage().


Member Data Documentation

Definition at line 211 of file imagereader.h.

Referenced by createMIPMap(), getData(), ImageData(), and ~ImageData().

int lux::ImageData::height_ [private]

Definition at line 209 of file imagereader.h.

Referenced by createMIPMap(), getHeight(), and ImageData().

Definition at line 213 of file imagereader.h.

Referenced by ImageData(), isExrImage(), and setIsExrImage().

Definition at line 210 of file imagereader.h.

Referenced by createMIPMap(), getChannels(), and ImageData().

Definition at line 212 of file imagereader.h.

Referenced by createMIPMap(), getPixelDataType(), and ImageData().

int lux::ImageData::width_ [private]

Definition at line 208 of file imagereader.h.

Referenced by createMIPMap(), getWidth(), and ImageData().


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

Generated on Sat Aug 15 14:16:52 2009 for lux by  doxygen 1.5.9