#include <imagereader.h>
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 () |
| TextureColorBase * | getData () |
| 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_ |
| TextureColorBase * | data_ |
| PixelDataType | pixel_type_ |
| bool | isExrImage_ |
Definition at line 35 of file imagereader.h.
Definition at line 37 of file imagereader.h.
| 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_.
| 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] |
Definition at line 86 of file imagereader.h.
References data_, FLOAT_TYPE, height_, LUX_ERROR, LUX_SYSTEM, luxError, noChannels_, pixel_type_, UNSIGNED_CHAR_TYPE, UNSIGNED_SHORT_TYPE, and width_.
| 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_.
TextureColorBase* lux::ImageData::data_ [private] |
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().
bool lux::ImageData::isExrImage_ [private] |
Definition at line 213 of file imagereader.h.
Referenced by ImageData(), isExrImage(), and setIsExrImage().
int lux::ImageData::noChannels_ [private] |
Definition at line 210 of file imagereader.h.
Referenced by createMIPMap(), getChannels(), and ImageData().
PixelDataType lux::ImageData::pixel_type_ [private] |
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().
1.6.1