|
std::istream * | openPGMFile (StringDatum *) const |
| opens the file More...
|
|
void | readMagicNumber (std::istream *, char[2]) const |
| reads the magic number into string magic More...
|
|
void | initRead (std::istream *, int &, int &, int &) const |
| reads width, height, maxval More...
|
|
void | readImage (std::istream *, char[2], vector< long > &, int, int, int) const |
| reads the image More...
|
|
void SLIgraphics::ReadPGMFunction::execute |
( |
SLIInterpreter * |
i | ) |
const |
|
virtual |
Implements SLIFunction.
References SLIInterpreter::ArgumentTypeError, SLIInterpreter::BadIOError, Token::datum(), SLIInterpreter::EStack, initRead(), TokenStack::load(), SLIInterpreter::M_ERROR, SLIInterpreter::message(), openPGMFile(), SLIInterpreter::OStack, TokenStack::pop(), TokenStack::push(), SLIInterpreter::raiseerror(), readImage(), readMagicNumber(), SLIInterpreter::StackUnderflowError, and TokenStack::top().
void SLIgraphics::ReadPGMFunction::initRead |
( |
std::istream * |
in, |
|
|
int & |
width, |
|
|
int & |
height, |
|
|
int & |
maxval |
|
) |
| const |
|
private |
std::istream * SLIgraphics::ReadPGMFunction::openPGMFile |
( |
StringDatum * |
filename | ) |
const |
|
private |
void SLIgraphics::ReadPGMFunction::readImage |
( |
std::istream * |
in, |
|
|
char |
magic[2], |
|
|
vector< long > & |
image, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
maxval |
|
) |
| const |
|
private |
void SLIgraphics::ReadPGMFunction::readMagicNumber |
( |
std::istream * |
, |
|
|
char |
[2] |
|
) |
| const |
|
private |
The documentation for this class was generated from the following files: