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

Friends

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  ,
bool 
 

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]
 

Reimplemented in GRLUTImage.

Referenced by CImage::getBluePixel(), CImage::getGreenPixel(), and CImage::getRedPixel().

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
 

Referenced by CImage::setBluePixel(), CImage::setGreenPixel(), and CImage::setRedPixel().

void GRImage::setPixelCliped int  i,
int  j,
int  v
 

void GRImage::setPixelCliped int  n,
int  v
 

Referenced by CImage::setBluePixelCliped(), CImage::setGreenPixelCliped(), and CImage::setRedPixelCliped().


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:
Generated on Mon Feb 27 22:47:13 2006 for CRyptography And Groups (CRAG) by  doxygen 1.4.4