Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

RobotFlow::Image Class Reference

#include <Image.h>

Inheritance diagram for RobotFlow::Image:

Inheritance graph
Collaboration diagram for RobotFlow::Image:

Collaboration graph

Public Member Functions

 Image ()
 Image (int width, int height, int pixelsize)
 Image (const Image &cpy)
 Image (const std::string &jpegfile)
virtual ~Image ()
virtual void printOn (std::ostream &out=std::cout) const
virtual void readFrom (std::istream &in=std::cin)
virtual void serialize (std::ostream &out) const
virtual void unserialize (std::istream &in)
int get_size ()
int get_width ()
int get_height ()
int get_pixelsize ()
unsigned char * get_data ()
void put_data (unsigned char *data, int size)
Imagesub_image (int x1, int y1, int x2, int y2)
virtual void destroy ()
int jpeg_compress (unsigned char *buffer, int max_size, int quality)
void jpeg_decompress (const unsigned char *buffer, int size)
void load_jpeg (const std::string &jpegfile)
void save_jpeg (const std::string &jpegfile, int quality)
void rotate_180 (Image &rotated_image)
void merge (Image &upperLeft, Image &upperRight, Image &lowerLeft, Image &lowerRight)
void ref ()
void unref ()
int unique ()
virtual void doesNotUnderstand (std::string method)
virtual bool isNil () const
virtual void prettyPrint (std::ostream &out=std::cout) const
virtual ObjectRef clone ()
virtual std::string className () const

Static Public Member Functions

static Imagealloc (int width, int height, int pixelsize)
static ObjectRef newObject (const std::string &objType)
static int addObjectType (const std::string &objType, _ObjectFactory *factory)
static std::map< std::string,
_ObjectFactory * > & 
ObjectFactoryDictionary ()
static TypeMap< _ObjectFactory * > & TypeidDictionary ()

Protected Attributes

AtomicCounter ref_count

Private Member Functions

void update_size (int width, int height)

Private Attributes

unsigned char * m_data
int m_width
int m_height
int m_size


class ImagePool
friend std::ostream & operator<< (std::ostream &out, const Object &obj)

Constructor & Destructor Documentation

RobotFlow::Image::Image  ) 

RobotFlow::Image::Image int  width,
int  height,
int  pixelsize

RobotFlow::Image::Image const Image cpy  ) 

RobotFlow::Image::Image const std::string &  jpegfile  ) 

RobotFlow::Image::~Image  )  [virtual]

Member Function Documentation

Image * RobotFlow::Image::alloc int  width,
int  height,
int  pixelsize

void RobotFlow::Image::destroy  )  [virtual]

Reimplemented from FD::Object.

unsigned char* RobotFlow::Image::get_data  )  [inline]

int RobotFlow::Image::get_height  )  [inline]

int RobotFlow::Image::get_pixelsize  )  [inline]

int RobotFlow::Image::get_size  )  [inline]

int RobotFlow::Image::get_width  )  [inline]

int RobotFlow::Image::jpeg_compress unsigned char *  buffer,
int  max_size,
int  quality

void RobotFlow::Image::jpeg_decompress const unsigned char *  buffer,
int  size

void RobotFlow::Image::load_jpeg const std::string &  jpegfile  ) 

void RobotFlow::Image::merge Image upperLeft,
Image upperRight,
Image lowerLeft,
Image lowerRight

virtual void RobotFlow::Image::printOn std::ostream &  out = std::cout  )  const [virtual]

Implements FD::Object.

void RobotFlow::Image::put_data unsigned char *  data,
int  size

virtual void RobotFlow::Image::readFrom std::istream &  in = std::cin  )  [virtual]

Reimplemented from FD::Object.

void RobotFlow::Image::rotate_180 Image rotated_image  ) 

void RobotFlow::Image::save_jpeg const std::string &  jpegfile,
int  quality

virtual void RobotFlow::Image::serialize std::ostream &  out  )  const [virtual]

Reimplemented from FD::Object.

Image * RobotFlow::Image::sub_image int  x1,
int  y1,
int  x2,
int  y2

virtual void RobotFlow::Image::unserialize std::istream &  in  )  [virtual]

Reimplemented from FD::Object.

void RobotFlow::Image::update_size int  width,
int  height

Friends And Related Function Documentation

friend class ImagePool [friend]

Field Documentation

unsigned char* RobotFlow::Image::m_data [private]

int RobotFlow::Image::m_height [private]

int RobotFlow::Image::m_size [private]

int RobotFlow::Image::m_width [private]

The documentation for this class was generated from the following files:
Generated on Wed Oct 5 14:36:33 2005 for RobotFlow by  doxygen 1.4.4