GRImage Class Reference

#include <AImage.h>

Inheritance diagram for GRImage:
AImage GRLUTImage

List of all members.

Public Member Functions

 GRImage ()
 GRImage (int w, int h)
 GRImage (const string &in_file_name)
 GRImage (const GRImage &image)
 GRImage (const GRImage &, int, int, int, int, bool)
 ~GRImage ()
void setPixel (int i, int j, int v)
virtual int getPixel (int i, int j) const
void setPixel (int n, int v)
void setPixelCliped (int n, int v)
void setPixelCliped (int i, int j, int v)
virtual int getPixel (int n) const
void saveTo (const string &file_name)
IMAGE_TYPE getType () const
GRImageoperator= (const GRImage &)

Protected Member Functions

virtual void printOnPGM (ostream &out) const
virtual void printOnBW (ostream &) const
void readFromBW (istream &in)
void readFromPGM (istream &in)

Protected Attributes

unsigned char * image_string


class GRLUTImage

Detailed Description

Definition at line 135 of file AImage.h.

Constructor & Destructor Documentation

GRImage::GRImage (  )  [inline]

Definition at line 139 of file AImage.h.

GRImage::GRImage ( int  w,
int  h 
) [inline]

Definition at line 142 of file AImage.h.

References image_string, and AImage::size.

GRImage::GRImage ( const string &  in_file_name  ) 
GRImage::GRImage ( const GRImage image  ) 
GRImage::GRImage ( const GRImage ,
int  ,
int  ,
int  ,
int  ,
GRImage::~GRImage (  ) 

Member Function Documentation

virtual int GRImage::getPixel ( int  n  )  const [virtual]

Reimplemented in GRLUTImage.

virtual int GRImage::getPixel ( int  i,
int  j 
) const [virtual]
IMAGE_TYPE GRImage::getType (  )  const [inline, virtual]

Implements AImage.

Definition at line 176 of file AImage.h.

References GRAY.

GRImage& GRImage::operator= ( const GRImage  ) 
virtual void GRImage::printOnBW ( ostream &   )  const [protected, virtual]
virtual void GRImage::printOnPGM ( ostream &  out  )  const [protected, virtual]
void GRImage::readFromBW ( istream &  in  )  [protected]
void GRImage::readFromPGM ( istream &  in  )  [protected]
void GRImage::saveTo ( const string &  file_name  )  [virtual]

Implements AImage.

void GRImage::setPixel ( int  n,
int  v 
void GRImage::setPixel ( int  i,
int  j,
int  v 
void GRImage::setPixelCliped ( int  i,
int  j,
int  v 
void GRImage::setPixelCliped ( int  n,
int  v 

Friends And Related Function Documentation

friend class GRLUTImage [friend]

Definition at line 182 of file AImage.h.

Member Data Documentation

unsigned char* GRImage::image_string [protected]

Definition at line 188 of file AImage.h.

Referenced by GRImage().

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Mon Sep 26 18:43:47 2011 for CRyptography And Groups (CRAG) by  doxygen 1.6.1