NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Private Member Functions | List of all members
SLIgraphics::ReadPGMFunction Class Reference
Inheritance diagram for SLIgraphics::ReadPGMFunction:
SLIFunction

Public Member Functions

virtual void execute (SLIInterpreter *) const
 
- Public Member Functions inherited from SLIFunction
 SLIFunction ()
 
virtual ~SLIFunction ()
 
virtual void backtrace (SLIInterpreter *, int) const
 Show stack backtrace information on error. More...
 

Private Member Functions

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...
 

Member Function Documentation

void SLIgraphics::ReadPGMFunction::execute ( SLIInterpreter i) const
virtual
void SLIgraphics::ReadPGMFunction::initRead ( std::istream *  in,
int &  width,
int &  height,
int &  maxval 
) const
private

reads width, height, maxval

References numerics::e.

Referenced by execute().

std::istream * SLIgraphics::ReadPGMFunction::openPGMFile ( StringDatum filename) const
private

opens the file

Referenced by execute().

void SLIgraphics::ReadPGMFunction::readImage ( std::istream *  in,
char  magic[2],
vector< long > &  image,
int  width,
int  height,
int  maxval 
) const
private

reads the image

References numerics::e.

Referenced by execute().

void SLIgraphics::ReadPGMFunction::readMagicNumber ( std::istream *  ,
char  [2] 
) const
private

reads the magic number into string magic

References numerics::e.

Referenced by execute().


The documentation for this class was generated from the following files: