CImage Class Reference

#include <AImage.h>

Inheritance diagram for CImage:

AImage CLUTImage List of all members.

Public Member Functions

 CImage ()
 CImage (int w, int h)
 CImage (const string &in_file_name, FILE_TYPE ft=PPM)
 CImage (const CImage &image)
 CImage (const CImage &i, int p1, int p2, int p3, int p4, bool p5)
void setRedPixel (int i, int j, int v)
void setRedPixel (int n, int v)
void setBluePixel (int i, int j, int v)
void setBluePixel (int n, int v)
void setGreenPixel (int i, int j, int v)
void setGreenPixel (int n, int v)
void setRedPixelCliped (int n, int v)
void setRedPixelCliped (int i, int j, int v)
void setBluePixelCliped (int n, int v)
void setBluePixelCliped (int i, int j, int v)
void setGreenPixelCliped (int n, int v)
void setGreenPixelCliped (int i, int j, int v)
virtual unsigned char getRedPixel (int i, int j) const
virtual unsigned char getRedPixel (int n) const
virtual unsigned char getBluePixel (int i, int j) const
virtual unsigned char getBluePixel (int n) const
virtual unsigned char getGreenPixel (int i, int j) const
virtual unsigned char getGreenPixel (int n) const
const GRImagegetRedImage () const
const GRImagegetGreenImage () const
const GRImagegetBlueImage () const
void saveTo (const string &file_name)
IMAGE_TYPE getType () const

Protected Member Functions

CImageoperator= (const CImage &)
void printOnPPM (ostream &out) const
void readFromPPM (istream &in)

Protected Attributes

GRImage redImage
GRImage blueImage
GRImage greenImage

Friends

class CLUTImage

Detailed Description

Definition at line 237 of file AImage.h.


Constructor & Destructor Documentation

CImage::CImage  )  [inline]
 

Definition at line 240 of file AImage.h.

CImage::CImage int  w,
int  h
[inline]
 

Definition at line 243 of file AImage.h.

CImage::CImage const string &  in_file_name,
FILE_TYPE  ft = PPM
 

CImage::CImage const CImage image  )  [inline]
 

Definition at line 249 of file AImage.h.

CImage::CImage const CImage i,
int  p1,
int  p2,
int  p3,
int  p4,
bool  p5
[inline]
 

Definition at line 256 of file AImage.h.


Member Function Documentation

const GRImage& CImage::getBlueImage  )  const [inline]
 

Definition at line 299 of file AImage.h.

References blueImage.

virtual unsigned char CImage::getBluePixel int  n  )  const [inline, virtual]
 

Reimplemented in CLUTImage.

Definition at line 290 of file AImage.h.

References blueImage, and GRImage::getPixel().

virtual unsigned char CImage::getBluePixel int  i,
int  j
const [inline, virtual]
 

Reimplemented in CLUTImage.

Definition at line 289 of file AImage.h.

References blueImage, and GRImage::getPixel().

Referenced by CLUTImage::getBluePixel().

const GRImage& CImage::getGreenImage  )  const [inline]
 

Definition at line 297 of file AImage.h.

References greenImage.

virtual unsigned char CImage::getGreenPixel int  n  )  const [inline, virtual]
 

Reimplemented in CLUTImage.

Definition at line 293 of file AImage.h.

References GRImage::getPixel(), and greenImage.

virtual unsigned char CImage::getGreenPixel int  i,
int  j
const [inline, virtual]
 

Reimplemented in CLUTImage.

Definition at line 292 of file AImage.h.

References GRImage::getPixel(), and greenImage.

Referenced by CLUTImage::getGreenPixel().

const GRImage& CImage::getRedImage  )  const [inline]
 

Definition at line 295 of file AImage.h.

References redImage.

virtual unsigned char CImage::getRedPixel int  n  )  const [inline, virtual]
 

Reimplemented in CLUTImage.

Definition at line 287 of file AImage.h.

References GRImage::getPixel(), and redImage.

virtual unsigned char CImage::getRedPixel int  i,
int  j
const [inline, virtual]
 

Reimplemented in CLUTImage.

Definition at line 286 of file AImage.h.

References GRImage::getPixel(), and redImage.

Referenced by CLUTImage::getRedPixel().

IMAGE_TYPE CImage::getType  )  const [inline, virtual]
 

Implements AImage.

Definition at line 305 of file AImage.h.

References COLOR.

CImage& CImage::operator= const CImage  )  [protected]
 

void CImage::printOnPPM ostream &  out  )  const [protected]
 

void CImage::readFromPPM istream &  in  )  [protected]
 

void CImage::saveTo const string &  file_name  )  [virtual]
 

Implements AImage.

void CImage::setBluePixel int  n,
int  v
[inline]
 

Definition at line 270 of file AImage.h.

References blueImage, and GRImage::setPixel().

void CImage::setBluePixel int  i,
int  j,
int  v
[inline]
 

Definition at line 269 of file AImage.h.

References blueImage, and GRImage::setPixel().

Referenced by WordDraw::WordDraw().

void CImage::setBluePixelCliped int  i,
int  j,
int  v
[inline]
 

Definition at line 279 of file AImage.h.

References blueImage, and GRImage::setPixelCliped().

void CImage::setBluePixelCliped int  n,
int  v
[inline]
 

Definition at line 278 of file AImage.h.

References blueImage, and GRImage::setPixelCliped().

void CImage::setGreenPixel int  n,
int  v
[inline]
 

Definition at line 273 of file AImage.h.

References greenImage, and GRImage::setPixel().

void CImage::setGreenPixel int  i,
int  j,
int  v
[inline]
 

Definition at line 272 of file AImage.h.

References greenImage, and GRImage::setPixel().

Referenced by WordDraw::WordDraw().

void CImage::setGreenPixelCliped int  i,
int  j,
int  v
[inline]
 

Definition at line 282 of file AImage.h.

References greenImage, and GRImage::setPixelCliped().

void CImage::setGreenPixelCliped int  n,
int  v
[inline]
 

Definition at line 281 of file AImage.h.

References greenImage, and GRImage::setPixelCliped().

void CImage::setRedPixel int  n,
int  v
[inline]
 

Definition at line 267 of file AImage.h.

References redImage, and GRImage::setPixel().

void CImage::setRedPixel int  i,
int  j,
int  v
[inline]
 

Definition at line 266 of file AImage.h.

References redImage, and GRImage::setPixel().

Referenced by WordDraw::WordDraw().

void CImage::setRedPixelCliped int  i,
int  j,
int  v
[inline]
 

Definition at line 276 of file AImage.h.

References redImage, and GRImage::setPixelCliped().

void CImage::setRedPixelCliped int  n,
int  v
[inline]
 

Definition at line 275 of file AImage.h.

References redImage, and GRImage::setPixelCliped().


Friends And Related Function Documentation

friend class CLUTImage [friend]
 

Definition at line 310 of file AImage.h.


Member Data Documentation

GRImage CImage::blueImage [protected]
 

Definition at line 321 of file AImage.h.

Referenced by getBlueImage(), getBluePixel(), setBluePixel(), and setBluePixelCliped().

GRImage CImage::greenImage [protected]
 

Definition at line 322 of file AImage.h.

Referenced by getGreenImage(), getGreenPixel(), setGreenPixel(), and setGreenPixelCliped().

GRImage CImage::redImage [protected]
 

Definition at line 320 of file AImage.h.

Referenced by getRedImage(), getRedPixel(), setRedPixel(), and setRedPixelCliped().


The documentation for this class was generated from the following file:
Generated on Sun Dec 3 10:58:58 2006 for CRyptography And Groups (CRAG) by  doxygen 1.4.6