ImageSet Class Reference

#include <imageset.h>

Inheritance diagram for ImageSet:

Resource Tileset

List of all members.


Detailed Description

Stores a set of subimages originating from a single image.

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.
Imageget (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.

Member Typedef Documentation

typedef std::vector<Image*>::size_type ImageSet::size_type

Definition at line 57 of file imageset.h.


Constructor & Destructor Documentation

ImageSet::ImageSet ( Image img,
int  w,
int  h 
)

Cuts the passed image in a grid of sub images.

Definition at line 30 of file imageset.cpp.

ImageSet::~ImageSet (  ) 

Destructor.

Definition at line 43 of file imageset.cpp.


Member Function Documentation

int ImageSet::getWidth ( void   )  const [inline]

Returns the width of the images in the image set.

Definition at line 50 of file imageset.h.

int ImageSet::getHeight ( void   )  const [inline]

Returns the height of the images in the image set.

Definition at line 55 of file imageset.h.

Image * ImageSet::get ( size_type  i  )  const

Definition at line 48 of file imageset.cpp.

size_type ImageSet::size (  )  const [inline]

Definition at line 60 of file imageset.h.


Member Data Documentation

std::vector<Image*> ImageSet::mImages [private]

Definition at line 63 of file imageset.h.

int ImageSet::mHeight [private]

Height of the images in the image set.

Definition at line 65 of file imageset.h.

int ImageSet::mWidth [private]

Width of the images in the image set.

Definition at line 66 of file imageset.h.


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

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5