SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::helper::io::ImageDDS Class Reference

#include <ImageDDS.h>

Inheritance diagram for sofa::helper::io::ImageDDS:

Public Member Functions

 ImageDDS ()
 
 ImageDDS (const std::string &filename)
 
bool load (std::string filename) override
 
bool save (std::string filename, int compression_level=-1) override
 
- Public Member Functions inherited from sofa::helper::io::Image
 Image ()
 
virtual ~Image ()
 
 Image (const Image &rhs)
 
Imageoperator= (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
 

Additional Inherited Members

- Static Public Attributes inherited from sofa::helper::io::Image
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 inherited from sofa::helper::io::Image
unsigned char m_bLoaded
 
- Static Public Member Functions inherited from sofa::helper::io::Image
static ImageCreate (std::string filename)
 
template<class Object >
static Object * create (Object *, std::string arg="")
 

Constructor details

sofa::helper::io::ImageDDS::ImageDDS ( )
inline
sofa::helper::io::ImageDDS::ImageDDS ( const std::string &  filename)
inline

Function details

bool sofa::helper::io::ImageDDS::load ( std::string  filename)
overridevirtual

Reimplemented from sofa::helper::io::Image.

bool sofa::helper::io::ImageDDS::save ( std::string  filename,
int  compression_level = -1 
)
overridevirtual

Reimplemented from sofa::helper::io::Image.