Project

General

Profile

SO3Engine
SO3::ConversionTools Class Reference

#include <SO3ConversionTools.h>

Classes

class  SConvertBuffer
 

Static Public Member Functions

static std::string GetValidImageExtension (std::string ext)
 
static bool SaveOgreImage (Ogre::Image &image, boost::filesystem::path &path)
 
static bool SaveImage (const std::string &filename, int w, int h, int comp, const void *data, int quality=90)
 
static int OgreToScolColorRGBA (const Ogre::ColourValue &ogreColor)
 
static Ogre::ColourValue ScolToOgreColorRGBA (const int &scolColor)
 
static int OgreToScolColorRGB (const Ogre::ColourValue &ogreColor)
 
static Ogre::ColourValue ScolToOgreColorRGB (const int &scolColor)
 
static void bitmapToBuff (const int start, const int end, const SConvertBuffer &conv)
 
static void bitmapsToBuffPf (const int start, const int end, const SConvertBuffer &conv, const Ogre::PixelFormat format)
 
static void bitmapsToScaleBuffNearest (const int start, const int end, const SConvertBuffer &conv, const Ogre::PixelFormat format, const int x_ratio, const int y_ratio)
 
static void bitmapsToScaleBuffBilinear (const int start, const int end, const SConvertBuffer &conv, const Ogre::PixelFormat format, const float x_ratio, const float y_ratio)
 
static void ScolBitmapGetRGB (PtrObjBitmap scolBitmap, unsigned char *buff)
 
static void ScolBitmapGetRGBA (PtrObjBitmap scolBitmap, PtrObjBitmap alphaBitmap, const Ogre::PixelBox &pixelbox)
 
static void ScolBitmapGetRGBA (PtrObjBitmap scolBitmap, PtrObjBitmap alphaBitmap, void *buff)
 
static void ScolBitmapGetRGBA (PtrObjBitmap scolBitmap, PtrObjBitmap alphaBitmap, Ogre::PixelFormat format, void *buff)
 
static void ScolBitmapGetRGBA (PtrObjBitmap scolBitmap, PtrObjBitmap alphaBitmap, unsigned int nwidth, unsigned int nheight, Ogre::PixelFormat format, void *buff)
 
static void ScolBitmapGetRGBA (const uchar *sbuff, const int swidth, const int sheight, const int sbpp, const int sbpl, unsigned int nwidth, unsigned int nheight, Ogre::PixelFormat format, void *buff)
 
static float formatFloat (float val)
 
static std::string formatFloatToString (double val)
 
static std::string formatFloatToString (float val)
 
static double formatFloat (double val)
 
static double Roundn (double dValue, int nDecimales)
 
static bool fequal (float a, float b)
 

Detailed Description

This class do not need to be instanciated, as all her member functions are static.

Definition at line 48 of file SO3ConversionTools.h.

Member Function Documentation

◆ bitmapsToBuffPf()

void SO3::ConversionTools::bitmapsToBuffPf ( const int  start,
const int  end,
const SConvertBuffer conv,
const Ogre::PixelFormat  format 
)
static

Definition at line 177 of file SO3ConversionTools.cpp.

◆ bitmapsToScaleBuffBilinear()

void SO3::ConversionTools::bitmapsToScaleBuffBilinear ( const int  start,
const int  end,
const SConvertBuffer conv,
const Ogre::PixelFormat  format,
const float  x_ratio,
const float  y_ratio 
)
static

Definition at line 228 of file SO3ConversionTools.cpp.

◆ bitmapsToScaleBuffNearest()

void SO3::ConversionTools::bitmapsToScaleBuffNearest ( const int  start,
const int  end,
const SConvertBuffer conv,
const Ogre::PixelFormat  format,
const int  x_ratio,
const int  y_ratio 
)
static

Definition at line 201 of file SO3ConversionTools.cpp.

◆ bitmapToBuff()

void SO3::ConversionTools::bitmapToBuff ( const int  start,
const int  end,
const SConvertBuffer conv 
)
static

Definition at line 157 of file SO3ConversionTools.cpp.

◆ fequal()

bool SO3::ConversionTools::fequal ( float  a,
float  b 
)
static

Definition at line 652 of file SO3ConversionTools.cpp.

◆ formatFloat() [1/2]

double SO3::ConversionTools::formatFloat ( double  val)
static

Definition at line 687 of file SO3ConversionTools.cpp.

◆ formatFloat() [2/2]

float SO3::ConversionTools::formatFloat ( float  val)
static

Definition at line 682 of file SO3ConversionTools.cpp.

◆ formatFloatToString() [1/2]

std::string SO3::ConversionTools::formatFloatToString ( double  val)
static

Definition at line 700 of file SO3ConversionTools.cpp.

◆ formatFloatToString() [2/2]

std::string SO3::ConversionTools::formatFloatToString ( float  val)
static

Definition at line 692 of file SO3ConversionTools.cpp.

◆ GetValidImageExtension()

std::string SO3::ConversionTools::GetValidImageExtension ( std::string  ext)
static

Definition at line 34 of file SO3ConversionTools.cpp.

◆ OgreToScolColorRGB()

int SO3::ConversionTools::OgreToScolColorRGB ( const Ogre::ColourValue &  ogreColor)
static

Definition at line 137 of file SO3ConversionTools.cpp.

◆ OgreToScolColorRGBA()

int SO3::ConversionTools::OgreToScolColorRGBA ( const Ogre::ColourValue &  ogreColor)
static

Definition at line 115 of file SO3ConversionTools.cpp.

◆ Roundn()

double SO3::ConversionTools::Roundn ( double  dValue,
int  nDecimales 
)
static

Definition at line 668 of file SO3ConversionTools.cpp.

◆ SaveImage()

bool SO3::ConversionTools::SaveImage ( const std::string &  filename,
int  w,
int  h,
int  comp,
const void *  data,
int  quality = 90 
)
static

Definition at line 75 of file SO3ConversionTools.cpp.

◆ SaveOgreImage()

bool SO3::ConversionTools::SaveOgreImage ( Ogre::Image &  image,
boost::filesystem::path &  path 
)
static

Definition at line 42 of file SO3ConversionTools.cpp.

◆ ScolBitmapGetRGB()

void SO3::ConversionTools::ScolBitmapGetRGB ( PtrObjBitmap  scolBitmap,
unsigned char *  buff 
)
static

Definition at line 288 of file SO3ConversionTools.cpp.

◆ ScolBitmapGetRGBA() [1/5]

void SO3::ConversionTools::ScolBitmapGetRGBA ( const uchar *  sbuff,
const int  swidth,
const int  sheight,
const int  sbpp,
const int  sbpl,
unsigned int  nwidth,
unsigned int  nheight,
Ogre::PixelFormat  format,
void *  buff 
)
static

Definition at line 587 of file SO3ConversionTools.cpp.

◆ ScolBitmapGetRGBA() [2/5]

void SO3::ConversionTools::ScolBitmapGetRGBA ( PtrObjBitmap  scolBitmap,
PtrObjBitmap  alphaBitmap,
const Ogre::PixelBox &  pixelbox 
)
static

Definition at line 326 of file SO3ConversionTools.cpp.

◆ ScolBitmapGetRGBA() [3/5]

void SO3::ConversionTools::ScolBitmapGetRGBA ( PtrObjBitmap  scolBitmap,
PtrObjBitmap  alphaBitmap,
Ogre::PixelFormat  format,
void *  buff 
)
static

Definition at line 468 of file SO3ConversionTools.cpp.

◆ ScolBitmapGetRGBA() [4/5]

void SO3::ConversionTools::ScolBitmapGetRGBA ( PtrObjBitmap  scolBitmap,
PtrObjBitmap  alphaBitmap,
unsigned int  nwidth,
unsigned int  nheight,
Ogre::PixelFormat  format,
void *  buff 
)
static

Definition at line 512 of file SO3ConversionTools.cpp.

◆ ScolBitmapGetRGBA() [5/5]

void SO3::ConversionTools::ScolBitmapGetRGBA ( PtrObjBitmap  scolBitmap,
PtrObjBitmap  alphaBitmap,
void *  buff 
)
static

Definition at line 432 of file SO3ConversionTools.cpp.

◆ ScolToOgreColorRGB()

Ogre::ColourValue SO3::ConversionTools::ScolToOgreColorRGB ( const int &  scolColor)
static

Definition at line 147 of file SO3ConversionTools.cpp.

◆ ScolToOgreColorRGBA()

Ogre::ColourValue SO3::ConversionTools::ScolToOgreColorRGBA ( const int &  scolColor)
static

Definition at line 126 of file SO3ConversionTools.cpp.


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