#include <Image.h>


Public Types | |
| typedef Factory< std::string, Image, std::string > | FactoryImage |
Public Member Functions | |
| Image () | |
| virtual | ~Image () |
| void | init (int w, int h, int nbb) |
| void | clear () |
| int | getWidth () const |
| int | getHeight () const |
| int | getNbBits () const |
| int | getLineSize () const |
| int | getImageSize () const |
| unsigned char * | getData () |
| const unsigned char * | getData () const |
Static Public Member Functions | |
| static Image * | Create (std::string filename) |
| template<class Object > | |
| static void | create (Object *&obj, std::string arg) |
Protected Attributes | |
| int | width |
| int | height |
| int | nbBits |
| unsigned char * | data |
Definition at line 42 of file Image.h.
| typedef Factory<std::string, Image, std::string> sofa::helper::io::Image::FactoryImage |
| sofa::helper::io::Image::~Image | ( | ) | [virtual] |
| void sofa::helper::io::Image::clear | ( | ) |
| static void sofa::helper::io::Image::create | ( | Object *& | obj, | |
| std::string | arg | |||
| ) | [inline, static] |
| Image * sofa::helper::io::Image::Create | ( | std::string | filename | ) | [static] |
Definition at line 71 of file Image.cpp.
References sofa::helper::Factory< TKey, TObject, TArgument >::CreateObject().
Referenced by sofa::component::visualmodel::OglModel::loadTexture(), and sofa::component::visualmodel::OglTexture2D::parse().
| const unsigned char* sofa::helper::io::Image::getData | ( | ) | const [inline] |
| unsigned char* sofa::helper::io::Image::getData | ( | ) | [inline] |
Definition at line 60 of file Image.h.
References data.
Referenced by sofa::helper::gl::Texture::init(), sofa::helper::io::ImagePNG::load(), sofa::helper::io::ImagePNG::save(), and sofa::helper::gl::Capture::saveScreen().
| int sofa::helper::io::Image::getHeight | ( | ) | const [inline] |
Definition at line 56 of file Image.h.
References height.
Referenced by sofa::gui::qt::viewer::qt::QtViewer::DrawLogo(), sofa::gui::qt::viewer::qgl::QtGLViewer::DrawLogo(), sofa::gui::glut::SimpleGUI::DrawLogo(), sofa::helper::gl::Texture::init(), sofa::helper::io::ImagePNG::save(), and sofa::helper::gl::Capture::saveScreen().
| int sofa::helper::io::Image::getImageSize | ( | ) | const [inline] |
| int sofa::helper::io::Image::getLineSize | ( | ) | const [inline] |
Definition at line 58 of file Image.h.
Referenced by getImageSize(), sofa::helper::io::ImagePNG::load(), and sofa::helper::io::ImagePNG::save().
| int sofa::helper::io::Image::getNbBits | ( | ) | const [inline] |
Definition at line 57 of file Image.h.
References nbBits.
Referenced by sofa::helper::gl::Texture::init(), and sofa::helper::io::ImagePNG::save().
| int sofa::helper::io::Image::getWidth | ( | ) | const [inline] |
Definition at line 55 of file Image.h.
References width.
Referenced by sofa::gui::qt::viewer::qt::QtViewer::DrawLogo(), sofa::gui::qt::viewer::qgl::QtGLViewer::DrawLogo(), sofa::gui::glut::SimpleGUI::DrawLogo(), sofa::helper::gl::Texture::init(), sofa::helper::io::ImagePNG::save(), and sofa::helper::gl::Capture::saveScreen().
Definition at line 53 of file Image.cpp.
References clear(), data, height, nbBits, and width.
Referenced by sofa::helper::io::ImagePNG::load(), and sofa::helper::gl::Capture::saveScreen().
unsigned char* sofa::helper::io::Image::data [protected] |
int sofa::helper::io::Image::height [protected] |
Definition at line 45 of file Image.h.
Referenced by clear(), getHeight(), getImageSize(), init(), sofa::helper::io::ImagePNG::load(), sofa::helper::io::ImagePNG::save(), and sofa::helper::io::ImageBMP::save().
int sofa::helper::io::Image::nbBits [protected] |
Definition at line 45 of file Image.h.
Referenced by clear(), getLineSize(), getNbBits(), init(), and sofa::helper::io::ImageBMP::save().
int sofa::helper::io::Image::width [protected] |
Definition at line 45 of file Image.h.
Referenced by clear(), getLineSize(), getWidth(), init(), sofa::helper::io::ImagePNG::load(), sofa::helper::io::ImagePNG::save(), and sofa::helper::io::ImageBMP::save().
1.5.7.1