#include <AImage.h>
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 GRImage & | getRedImage () const |
const GRImage & | getGreenImage () const |
const GRImage & | getBlueImage () const |
void | saveTo (const string &file_name) |
IMAGE_TYPE | getType () const |
Protected Member Functions | |
CImage & | operator= (const CImage &) |
void | printOnPPM (ostream &out) const |
void | readFromPPM (istream &in) |
Protected Attributes | |
GRImage | redImage |
GRImage | blueImage |
GRImage | greenImage |
Friends | |
class | CLUTImage |
Definition at line 237 of file AImage.h.
CImage::CImage | ( | const string & | in_file_name, | |
FILE_TYPE | ft = PPM | |||
) |
CImage::CImage | ( | const CImage & | i, | |
int | p1, | |||
int | p2, | |||
int | p3, | |||
int | p4, | |||
bool | p5 | |||
) | [inline] |
const GRImage& CImage::getBlueImage | ( | ) | const [inline] |
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] |
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] |
void CImage::printOnPPM | ( | ostream & | out | ) | const [protected] |
void CImage::readFromPPM | ( | istream & | in | ) | [protected] |
void CImage::saveTo | ( | const string & | file_name | ) | [virtual] |
Implements AImage.
Referenced by WordDraw::saveTo().
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::drawGenerator(), WordDraw::drawHorizontalGrid(), WordDraw::drawVerticalGrid(), and 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::drawGenerator(), WordDraw::drawHorizontalGrid(), WordDraw::drawVerticalGrid(), and 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::drawGenerator(), WordDraw::drawHorizontalGrid(), WordDraw::drawVerticalGrid(), and 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().
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().