#include <imageset.h>
Definition at line 34 of file imageset.h.
Public Types | |
typedef std::vector< Image * > ::size_type | size_type |
Public Member Functions | |
ImageSet (Image *img, int w, int h) | |
Cuts the passed image in a grid of sub images. | |
~ImageSet () | |
Destructor. | |
int | getWidth () const |
Returns the width of the images in the image set. | |
int | getHeight () const |
Returns the height of the images in the image set. | |
Image * | get (size_type i) const |
size_type | size () const |
Private Attributes | |
std::vector< Image * > | mImages |
int | mHeight |
Height of the images in the image set. | |
int | mWidth |
Width of the images in the image set. |
typedef std::vector<Image*>::size_type ImageSet::size_type |
Definition at line 57 of file imageset.h.
ImageSet::ImageSet | ( | Image * | img, | |
int | w, | |||
int | h | |||
) |
ImageSet::~ImageSet | ( | ) |
int ImageSet::getWidth | ( | void | ) | const [inline] |
int ImageSet::getHeight | ( | void | ) | const [inline] |
Definition at line 48 of file imageset.cpp.
size_type ImageSet::size | ( | ) | const [inline] |
Definition at line 60 of file imageset.h.
std::vector<Image*> ImageSet::mImages [private] |
Definition at line 63 of file imageset.h.
int ImageSet::mHeight [private] |
int ImageSet::mWidth [private] |