#include <Image.h>
Static Public Attributes | |
static const char * | strFromDataType [COUNT_OF_DATA_TYPES+1] |
static const char * | strFromChannelFormat [COUNT_OF_CHANNEL_FORMATS+1] |
static const char * | strFromTextureType [TEXTURE_INVALID+1] |
Protected Attributes | |
unsigned char | m_bLoaded |
Public Member Functions | |
Image () | |
virtual | ~Image () |
Image (const Image &rhs) | |
Image & | operator= (const Image &rhs) |
unsigned | getWidth (unsigned mipmap=0) const |
unsigned | getHeight (unsigned mipmap=0) const |
unsigned | getDepth (unsigned mipmap=0) const |
unsigned | getBytesPerPixel () const |
unsigned | getBytesPerBlock () const |
unsigned | getBytesPerChannel () const |
unsigned | getChannelCount () const |
unsigned | getMipmapCount () const |
unsigned | getPixelCount () const |
unsigned | getLineSize (unsigned mipmap=0) const |
unsigned | getMipmapSize (unsigned mipmap) const |
unsigned | getMipmapRangeSize (unsigned firstMipmap, unsigned mipmaps) const |
unsigned | getImageSize () const |
DataType | getDataType () const |
ChannelFormat | getChannelFormat () const |
TextureType | getTextureType () const |
unsigned char * | getPixels () |
unsigned char * | getMipmapPixels (unsigned mipmap) |
unsigned char * | getCubeMipmapPixels (unsigned cubeside, unsigned mipmap) |
unsigned char * | get3DSliceMipmapPixels (unsigned slice, unsigned mipmap) |
void | clear () |
void | init (unsigned width, unsigned height, unsigned depth, unsigned mipmaps, DataType dataType, ChannelFormat channelFormat) |
void | init (unsigned width, unsigned height, unsigned bpp) |
bool | isLoaded () const |
virtual bool | load (std::string filename) |
virtual bool | save (std::string filename, int compression_level=-1) |
Static Public Member Functions | |
static Image * | Create (std::string filename) |
template<class Object > | |
static Object * | create (Object *, std::string arg="") |
|
protected |
|
static |
|
static |
|
static |
sofa::helper::io::Image::Image | ( | ) |
|
virtual |
sofa::helper::io::Image::Image | ( | const Image & | rhs | ) |
void sofa::helper::io::Image::clear | ( | ) |
|
inlinestatic |
|
static |
unsigned char * sofa::helper::io::Image::get3DSliceMipmapPixels | ( | unsigned | slice, |
unsigned | mipmap | ||
) |
unsigned sofa::helper::io::Image::getBytesPerBlock | ( | ) | const |
unsigned sofa::helper::io::Image::getBytesPerChannel | ( | ) | const |
unsigned sofa::helper::io::Image::getBytesPerPixel | ( | ) | const |
unsigned sofa::helper::io::Image::getChannelCount | ( | ) | const |
Image::ChannelFormat sofa::helper::io::Image::getChannelFormat | ( | ) | const |
unsigned char * sofa::helper::io::Image::getCubeMipmapPixels | ( | unsigned | cubeside, |
unsigned | mipmap | ||
) |
Image::DataType sofa::helper::io::Image::getDataType | ( | ) | const |
unsigned sofa::helper::io::Image::getDepth | ( | unsigned | mipmap = 0 | ) | const |
unsigned sofa::helper::io::Image::getHeight | ( | unsigned | mipmap = 0 | ) | const |
unsigned sofa::helper::io::Image::getImageSize | ( | ) | const |
unsigned sofa::helper::io::Image::getLineSize | ( | unsigned | mipmap = 0 | ) | const |
unsigned sofa::helper::io::Image::getMipmapCount | ( | ) | const |
unsigned char * sofa::helper::io::Image::getMipmapPixels | ( | unsigned | mipmap | ) |
unsigned sofa::helper::io::Image::getMipmapRangeSize | ( | unsigned | firstMipmap, |
unsigned | mipmaps | ||
) | const |
unsigned sofa::helper::io::Image::getMipmapSize | ( | unsigned | mipmap | ) | const |
unsigned sofa::helper::io::Image::getPixelCount | ( | ) | const |
unsigned char * sofa::helper::io::Image::getPixels | ( | ) |
Image::TextureType sofa::helper::io::Image::getTextureType | ( | ) | const |
unsigned sofa::helper::io::Image::getWidth | ( | unsigned | mipmap = 0 | ) | const |
void sofa::helper::io::Image::init | ( | unsigned | width, |
unsigned | height, | ||
unsigned | bpp | ||
) |
void sofa::helper::io::Image::init | ( | unsigned | width, |
unsigned | height, | ||
unsigned | depth, | ||
unsigned | mipmaps, | ||
DataType | dataType, | ||
ChannelFormat | channelFormat | ||
) |
|
inline |
|
virtual |
Reimplemented in sofa::helper::io::STBImage, sofa::helper::io::ImageRAW, and sofa::helper::io::ImageDDS.
|
virtual |
Reimplemented in sofa::helper::io::STBImage, sofa::helper::io::ImageRAW, and sofa::helper::io::ImageDDS.