Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

qgar::PgmFile Class Reference
[Files]

#include <qgarlib/PgmFile.H>

Inheritance diagram for qgar::PgmFile:

qgar::AbstractPbmPlusFile qgar::AbstractFile List of all members.

Detailed Description

File containing a Grey-level image in PGM format.

Most of the code documented here is an adaptation of code from the PBM software package. Here is the copyright notice of this package:

 +------------------------------------------------------------------------+
 | Copyright (C) 1988 by Jef Poskanzer                                    |
 |                                                                        |
 | Permission to use, copy, modify, and distribute this software and its  |
 | documentation for any purpose and without fee is hereby granted,       |
 | provided that the above copyright notice appear in all copies and that |
 | both that copyright notice and this permission notice appear in        |
 | supporting documentation.  This software is provided "as is" without   |
 | express or implied warranty.                                           |
 +------------------------------------------------------------------------+

For more information about PBM, see the PBMPLUS home page.

Author:
Karl Tombre
Date:
Jul, 3 2001 16:25
Since:
Qgar 1.0

Definition at line 83 of file PgmFile.H.

Public Member Functions

Constructors
 PgmFile (const char *aFileName, QGEpbmFormat aFormat=QGE_PBM_RAW)
 Initialize from file name and format.
 PgmFile (const char *aFileName, unsigned int aRowCnt, unsigned int aColCnt, unsigned int aMax=255, QGEpbmFormat aFormat=QGE_PBM_RAW)
 Initialize from full data.
Access
int maxPix ()
 Get maximum value of pixel.
Assignment
void setMaxPix (int aMax)
 Set maximum value of pixel.
Input
void readRow ()
 Read a row from the file.
Output
void writeRow ()
 Write a row into the file.
Access
int colCnt () const
 Get number of columns.
int rowCnt () const
 Get number of rows.
unsigned char * pRow ()
 Get current row.
Assignment
void setColCnt (int aCnt)
 Set number of columns.
void setRowCnt (int aCnt)
 Set number of rows.
Access to file characteristics
std::fstream & fileStream ()
 Get file stream.
const char *const fileName () const
 Get file name.
QGEfileStatus fileStatus () const
 Get current file status.
Opening
virtual void openRONLY () throw (QgarErrorIO)
 Open in read-only mode.
virtual void openWONLY () throw (QgarErrorIO)
 Open in write-only mode.
virtual void openAPPEND () throw (QgarErrorIO)
 Open in append mode.
virtual void openRW () throw (QgarErrorIO)
 Open in read-write mode.
virtual void openRA () throw (QgarErrorIO)
 Open in read-append mode.
Closing
virtual void close ()
 Close the file.
Checking status
virtual void isOpenR () throw (QgarErrorUser)
 Abort if the file is not open in a mode allowing reading.
virtual void isOpenW () throw (QgarErrorUser)
 Abort if the file is not open in a mode allowing writing.
virtual void isOpenA () throw (QgarErrorUser)
 Abort if the file is not open in a mode allowing appending.
virtual void isOpenRW () throw (QgarErrorUser)
 Abort if the file is not open in read-write mode.
virtual void isOpenRA () throw (QgarErrorUser)
 Abort if the file is not open in readi-append mode.

Protected Member Functions

Input
virtual void readHeader () throw (QgarErrorIO)
 Read file header.
Output
virtual void writeHeader ()
 Write file header.
virtual void writeFooter ()
 Write file footer.
void putUchar (unsigned char)
 Put an unsigned char into the file.
Input auxiliaries
virtual char getChar () throw (QgarErrorIO)
 Read a character from the file.
virtual int getInt () throw (QgarErrorIO)
 Read an integer from the file.
virtual unsigned char getRawByte () throw (QgarErrorIO)
 Read a raw byte from the file.
Memory space allocation
void newRow ()
 Allocate a new row.

Protected Attributes

Image features
int _maxPix
 Maximum value of a pixel.
Representation of a file
QGEpbmFormat _format
 Format of the file.
int _rowCnt
 Number of rows of the image.
int _colCnt
 Number of columns of the image.
unsigned char * _pRow
 Pointer to current image row.
Representation of a file
char * _fileName
 File name.
QGEfileStatus _fileStatus
 File status.
std::fstream _fileStream
 Associated file stream.

Static Protected Attributes

Magic numbers
static const unsigned short _s_pgm_format
 PLAIN format.
static const unsigned char _s_pgm_magic1 = 'P'
 PLAIN format: Magic-1.
static const unsigned char _s_pgm_magic2 = '2'
 PLAIN format: Magic-2.
static const unsigned short _s_rpgm_format
 RAW format.
static const unsigned char _s_rpgm_magic2 = '5'
 RAW format: Magic-2.


Constructor & Destructor Documentation

qgar::PgmFile::PgmFile const char *  aFileName,
QGEpbmFormat  aFormat = QGE_PBM_RAW
 

Initialize from file name and format.

Parameters:
aFileName name of the new file
aFormat format of the image contained in the file (default qgar::QGE_PBM_RAW)
Warning:
  • The number of rows and columns of the corresponding image are set to default (0).
  • Such a file cannot be opened in write-only or read-write modes.

Definition at line 95 of file PgmFile.C.

qgar::PgmFile::PgmFile const char *  aFileName,
unsigned int  aRowCnt,
unsigned int  aColCnt,
unsigned int  aMax = 255,
QGEpbmFormat  aFormat = QGE_PBM_RAW
 

Initialize from full data.

Parameters:
aFileName name of the new file
aRowCnt number of rows of the corresponding image
aColCnt number of columns of the corresponding image
aMax maximum value of a pixel (default 255)
aFormat format of the image contained in the file (default qgar::QGE_PBM_RAW)
Warning:
Such a file is supposed to be used in write-only or read-write modes.

Definition at line 107 of file PgmFile.C.


Member Function Documentation

void qgar::AbstractFile::close  )  [virtual, inherited]
 

Close the file.

No effect is the file is already closed.

Warning:
If the file is currently open in write-only or read-write modes, a footer is written into the file using function qgar::AbstractFile::writeFooter.

Definition at line 251 of file AbstractFile.C.

References qgar::AbstractFile::_fileStatus, qgar::AbstractFile::_fileStream, qgar::QGE_FILE_STATUS_CLOSED, qgar::QGE_FILE_STATUS_READ_WRITE, qgar::QGE_FILE_STATUS_WRITE_ONLY, and qgar::AbstractFile::writeFooter().

Referenced by qgar::GenImage< T, CheckPolicy >::GenImage(), qgar::MapleFile::MapleFile(), qgar::AbstractFile::openAPPEND(), qgar::AbstractFile::openRA(), qgar::AbstractFile::openRONLY(), qgar::AbstractFile::openRW(), qgar::AbstractFile::openWONLY(), and qgar::GenImage< T, CheckPolicy >::save().

int qgar::AbstractPbmPlusFile::colCnt  )  const [inline, inherited]
 

Get number of columns.

Definition at line 328 of file AbstractPbmPlusFile.H.

References qgar::AbstractPbmPlusFile::_colCnt.

Referenced by qgar::GenImage< T, CheckPolicy >::GenImage().

const char *const qgar::AbstractFile::fileName  )  const [inline, inherited]
 

Get file name.

Definition at line 395 of file AbstractFile.H.

References qgar::AbstractFile::_fileName.

QGEfileStatus qgar::AbstractFile::fileStatus  )  const [inline, inherited]
 

Get current file status.

Definition at line 404 of file AbstractFile.H.

References qgar::AbstractFile::_fileStatus.

std::fstream & qgar::AbstractFile::fileStream  )  [inline, inherited]
 

Get file stream.

When saving the stream, usual I/O operations apply to the associated file, depending on the opening mode.

Definition at line 386 of file AbstractFile.H.

References qgar::AbstractFile::_fileStream.

char qgar::AbstractPbmPlusFile::getChar  )  throw (QgarErrorIO) [protected, virtual, inherited]
 

Read a character from the file.

Exceptions:
qgar::QgarErrorIO (EOF while reading in file)

Definition at line 125 of file AbstractPbmPlusFile.C.

References qgar::AbstractFile::_fileName, and qgar::AbstractFile::_fileStream.

Referenced by qgar::PbmFile::getBit(), and qgar::AbstractPbmPlusFile::getInt().

int qgar::AbstractPbmPlusFile::getInt  )  throw (QgarErrorIO) [protected, virtual, inherited]
 

Read an integer from the file.

Exceptions:
qgar::QgarErrorIO (error while reading in file: integer in [0,9] expected)

Definition at line 169 of file AbstractPbmPlusFile.C.

References qgar::AbstractFile::_fileName, and qgar::AbstractPbmPlusFile::getChar().

Referenced by readHeader(), qgar::PbmFile::readHeader(), and readRow().

unsigned char qgar::AbstractPbmPlusFile::getRawByte  )  throw (QgarErrorIO) [protected, virtual, inherited]
 

Read a raw byte from the file.

Exceptions:
qgar::QgarErrorIO (EOF while reading in file)

Definition at line 207 of file AbstractPbmPlusFile.C.

References qgar::AbstractFile::_fileName, and qgar::AbstractFile::_fileStream.

Referenced by readRow(), and qgar::PbmFile::readRow().

void qgar::AbstractFile::isOpenA  )  throw (QgarErrorUser) [virtual, inherited]
 

Abort if the file is not open in a mode allowing appending.

Exceptions:
qgar::QgarErrorUser (file not open in append mode)

Definition at line 310 of file AbstractFile.C.

References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, qgar::QGE_FILE_STATUS_APPEND, and qgar::QGE_FILE_STATUS_READ_APPEND.

void qgar::AbstractFile::isOpenR  )  throw (QgarErrorUser) [virtual, inherited]
 

Abort if the file is not open in a mode allowing reading.

Exceptions:
qgar::QgarErrorUser (file not open in read mode)

Definition at line 273 of file AbstractFile.C.

References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, qgar::QGE_FILE_STATUS_APPEND, and qgar::QGE_FILE_STATUS_WRITE_ONLY.

Referenced by readRow(), and qgar::PbmFile::readRow().

void qgar::AbstractFile::isOpenRA  )  throw (QgarErrorUser) [virtual, inherited]
 

Abort if the file is not open in readi-append mode.

Exceptions:
qgar::QgarErrorUser (file not open in read/append mode)

Definition at line 347 of file AbstractFile.C.

References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, and qgar::QGE_FILE_STATUS_READ_APPEND.

void qgar::AbstractFile::isOpenRW  )  throw (QgarErrorUser) [virtual, inherited]
 

Abort if the file is not open in read-write mode.

Exceptions:
qgar::QgarErrorUser (file not open in read/write mode)

Definition at line 329 of file AbstractFile.C.

References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, and qgar::QGE_FILE_STATUS_READ_WRITE.

void qgar::AbstractFile::isOpenW  )  throw (QgarErrorUser) [virtual, inherited]
 

Abort if the file is not open in a mode allowing writing.

Exceptions:
qgar::QgarErrorUser (file not open in write mode)

Definition at line 292 of file AbstractFile.C.

References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, and qgar::QGE_FILE_STATUS_READ_ONLY.

Referenced by qgar::TgifFile::write(), qgar::DxfFile::write(), writeRow(), and qgar::PbmFile::writeRow().

int qgar::PgmFile::maxPix  )  [inline]
 

Get maximum value of pixel.

Definition at line 290 of file PgmFile.H.

References _maxPix.

void qgar::AbstractPbmPlusFile::newRow  )  [protected, inherited]
 

Allocate a new row.

Definition at line 234 of file AbstractPbmPlusFile.C.

References qgar::AbstractPbmPlusFile::_colCnt, and qgar::AbstractPbmPlusFile::_pRow.

Referenced by readHeader(), qgar::PbmFile::readHeader(), writeHeader(), and qgar::PbmFile::writeHeader().

void qgar::AbstractFile::openAPPEND  )  throw (QgarErrorIO) [virtual, inherited]
 

Open in append mode.

The eventual content of the file is preserved and the file pointer is set to the end of the file.

Warning:
The file header is read using function qgar::AbstractFile::readHeader.
Exceptions:
qgar::QgarErrorIO (file cannot be opened)

Definition at line 166 of file AbstractFile.C.

References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, qgar::AbstractFile::_fileStream, qgar::AbstractFile::close(), qgar::QGE_FILE_STATUS_APPEND, and qgar::AbstractFile::readHeader().

void qgar::AbstractFile::openRA  )  throw (QgarErrorIO) [virtual, inherited]
 

Open in read-append mode.

The file pointer is set to the end of the file.

Warning:
The file header is read using function qgar::AbstractFile::readHeader.
Exceptions:
qgar::QgarErrorIO (file cannot be opened)

Definition at line 223 of file AbstractFile.C.

References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, qgar::AbstractFile::_fileStream, qgar::AbstractFile::close(), qgar::QGE_FILE_STATUS_READ_APPEND, and qgar::AbstractFile::readHeader().

void qgar::AbstractFile::openRONLY  )  throw (QgarErrorIO) [virtual, inherited]
 

Open in read-only mode.

The file pointer is set to the first character after the header.

Warning:
The file header is read using function qgar::AbstractFile::readHeader.
Exceptions:
qgar::QgarErrorIO (file cannot be opened)

Definition at line 107 of file AbstractFile.C.

References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, qgar::AbstractFile::_fileStream, qgar::AbstractFile::close(), qgar::QGE_FILE_STATUS_READ_ONLY, and qgar::AbstractFile::readHeader().

Referenced by qgar::GenImage< T, CheckPolicy >::GenImage().

void qgar::AbstractFile::openRW  )  throw (QgarErrorIO) [virtual, inherited]
 

Open in read-write mode.

Warning:
The file is new and a header is written into the file using function qgar::AbstractFile::writeHeader. If a file with given name already exists, its content is lost.
Exceptions:
qgar::QgarErrorIO (file cannot be opened)

Definition at line 197 of file AbstractFile.C.

References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, qgar::AbstractFile::_fileStream, qgar::AbstractFile::close(), qgar::QGE_FILE_STATUS_READ_WRITE, and qgar::AbstractFile::writeHeader().

void qgar::AbstractFile::openWONLY  )  throw (QgarErrorIO) [virtual, inherited]
 

Open in write-only mode.

Warning:
The file is new and a header is written into the file using function qgar::AbstractFile::writeHeader. If a file with given name already exists, its content is lost.
Exceptions:
qgar::QgarErrorIO (file cannot be opened)

Definition at line 136 of file AbstractFile.C.

References qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStatus, qgar::AbstractFile::_fileStream, qgar::AbstractFile::close(), qgar::QGE_FILE_STATUS_WRITE_ONLY, and qgar::AbstractFile::writeHeader().

Referenced by qgar::MapleFile::MapleFile(), and qgar::GenImage< T, CheckPolicy >::save().

unsigned char * qgar::AbstractPbmPlusFile::pRow  )  [inline, inherited]
 

Get current row.

Definition at line 346 of file AbstractPbmPlusFile.H.

References qgar::AbstractPbmPlusFile::_pRow.

Referenced by qgar::GenImage< T, CheckPolicy >::GenImage(), readRow(), qgar::PbmFile::readRow(), qgar::GenImage< T, CheckPolicy >::save(), writeRow(), and qgar::PbmFile::writeRow().

void qgar::PgmFile::putUchar unsigned  char  )  [protected]
 

Put an unsigned char into the file.

Referenced by writeRow().

void qgar::PgmFile::readHeader  )  throw (QgarErrorIO) [protected, virtual]
 

Read file header.

Exceptions:
qgar::QgarErrorIO (EOF while reading, bad magic number, bad max pixel value)

Implements qgar::AbstractFile.

Definition at line 129 of file PgmFile.C.

References qgar::AbstractPbmPlusFile::_colCnt, qgar::AbstractFile::_fileName, qgar::AbstractFile::_fileStream, qgar::AbstractPbmPlusFile::_format, _maxPix, qgar::AbstractPbmPlusFile::_rowCnt, _s_pgm_format, _s_rpgm_format, qgar::AbstractPbmPlusFile::getInt(), qgar::AbstractPbmPlusFile::newRow(), qgar::QGE_PBM_PLAIN, and qgar::QGE_PBM_RAW.

void qgar::PgmFile::readRow  )  [virtual]
 

Read a row from the file.

Implements qgar::AbstractPbmPlusFile.

Definition at line 195 of file PgmFile.C.

References qgar::AbstractPbmPlusFile::_colCnt, qgar::AbstractPbmPlusFile::_format, qgar::AbstractPbmPlusFile::_pRow, qgar::AbstractPbmPlusFile::getInt(), qgar::AbstractPbmPlusFile::getRawByte(), qgar::AbstractFile::isOpenR(), qgar::AbstractPbmPlusFile::pRow(), qgar::QGE_PBM_PLAIN, and qgar::QGE_PBM_RAW.

int qgar::AbstractPbmPlusFile::rowCnt  )  const [inline, inherited]
 

Get number of rows.

Definition at line 337 of file AbstractPbmPlusFile.H.

References qgar::AbstractPbmPlusFile::_rowCnt.

Referenced by qgar::GenImage< T, CheckPolicy >::GenImage().

void qgar::AbstractPbmPlusFile::setColCnt int  aCnt  )  [inline, inherited]
 

Set number of columns.

Parameters:
aCnt number to set

Definition at line 360 of file AbstractPbmPlusFile.H.

References qgar::AbstractPbmPlusFile::_colCnt.

Referenced by qgar::GenImage< T, CheckPolicy >::save().

void qgar::PgmFile::setMaxPix int  aMax  )  [inline]
 

Set maximum value of pixel.

Definition at line 304 of file PgmFile.H.

References _maxPix.

void qgar::AbstractPbmPlusFile::setRowCnt int  aCnt  )  [inline, inherited]
 

Set number of rows.

Parameters:
aCnt number to set

Definition at line 369 of file AbstractPbmPlusFile.H.

References qgar::AbstractPbmPlusFile::_rowCnt.

Referenced by qgar::GenImage< T, CheckPolicy >::save().

void qgar::PgmFile::writeFooter  )  [protected, virtual]
 

Write file footer.

Implements qgar::AbstractFile.

Definition at line 305 of file PgmFile.C.

void qgar::PgmFile::writeHeader  )  [protected, virtual]
 

Write file header.

Implements qgar::AbstractFile.

Definition at line 228 of file PgmFile.C.

References qgar::AbstractPbmPlusFile::_colCnt, qgar::AbstractFile::_fileStream, qgar::AbstractPbmPlusFile::_format, _maxPix, qgar::AbstractPbmPlusFile::_rowCnt, _s_pgm_magic1, _s_pgm_magic2, _s_rpgm_magic2, qgar::AbstractPbmPlusFile::newRow(), and qgar::QGE_PBM_RAW.

void qgar::PgmFile::writeRow  )  [virtual]
 

Write a row into the file.

Implements qgar::AbstractPbmPlusFile.

Definition at line 257 of file PgmFile.C.

References qgar::AbstractPbmPlusFile::_colCnt, qgar::AbstractFile::_fileStream, qgar::AbstractPbmPlusFile::_format, qgar::AbstractPbmPlusFile::_pRow, qgar::AbstractFile::isOpenW(), qgar::AbstractPbmPlusFile::pRow(), putUchar(), and qgar::QGE_PBM_RAW.


Member Data Documentation

int qgar::AbstractPbmPlusFile::_colCnt [protected, inherited]
 

Number of columns of the image.

Definition at line 258 of file AbstractPbmPlusFile.H.

Referenced by qgar::AbstractPbmPlusFile::colCnt(), qgar::AbstractPbmPlusFile::newRow(), readHeader(), qgar::PbmFile::readHeader(), readRow(), qgar::PbmFile::readRow(), qgar::AbstractPbmPlusFile::setColCnt(), writeHeader(), qgar::PbmFile::writeHeader(), writeRow(), and qgar::PbmFile::writeRow().

char* qgar::AbstractFile::_fileName [protected, inherited]
 

File name.

Definition at line 349 of file AbstractFile.H.

Referenced by qgar::AbstractFile::fileName(), qgar::PbmFile::getBit(), qgar::AbstractPbmPlusFile::getChar(), qgar::AbstractPbmPlusFile::getInt(), qgar::AbstractPbmPlusFile::getRawByte(), qgar::AbstractFile::isOpenA(), qgar::AbstractFile::isOpenR(), qgar::AbstractFile::isOpenRA(), qgar::AbstractFile::isOpenRW(), qgar::AbstractFile::isOpenW(), qgar::AbstractFile::openAPPEND(), qgar::AbstractFile::openRA(), qgar::AbstractFile::openRONLY(), qgar::AbstractFile::openRW(), qgar::AbstractFile::openWONLY(), readHeader(), qgar::PbmFile::readHeader(), qgar::DxfFile::readHeader(), qgar::DxfFile::retrieveChainOrQgarPolyline(), and qgar::AbstractFile::~AbstractFile().

QGEfileStatus qgar::AbstractFile::_fileStatus [protected, inherited]
 

File status.

Definition at line 354 of file AbstractFile.H.

Referenced by qgar::AbstractFile::close(), qgar::AbstractFile::fileStatus(), qgar::AbstractFile::isOpenA(), qgar::AbstractFile::isOpenR(), qgar::AbstractFile::isOpenRA(), qgar::AbstractFile::isOpenRW(), qgar::AbstractFile::isOpenW(), qgar::AbstractFile::openAPPEND(), qgar::AbstractFile::openRA(), qgar::AbstractFile::openRONLY(), qgar::AbstractFile::openRW(), and qgar::AbstractFile::openWONLY().

std::fstream qgar::AbstractFile::_fileStream [protected, inherited]
 

Associated file stream.

Definition at line 359 of file AbstractFile.H.

Referenced by qgar::TgifFile::beginSavePoly(), qgar::AbstractFile::close(), qgar::TgifFile::endSavePoly(), qgar::AbstractFile::fileStream(), qgar::AbstractPbmPlusFile::getChar(), qgar::AbstractPbmPlusFile::getRawByte(), qgar::MapleFile::MapleFile(), qgar::AbstractFile::openAPPEND(), qgar::AbstractFile::openRA(), qgar::AbstractFile::openRONLY(), qgar::AbstractFile::openRW(), qgar::AbstractFile::openWONLY(), readHeader(), qgar::PbmFile::readHeader(), qgar::DxfFile::retrieveDxfGroup(), qgar::TgifFile::saveArc(), qgar::TgifFile::saveBox(), qgar::TgifFile::saveChain(), qgar::TgifFile::saveCircle(), qgar::DxfFile::saveDxfGroup(), qgar::TgifFile::savePoint(), qgar::TgifFile::savePolyline(), qgar::TgifFile::saveSegment(), qgar::TgifFile::writeHeader(), writeHeader(), qgar::PbmFile::writeHeader(), qgar::MapleFile::writeHeader(), qgar::DxfFile::writeHeader(), writeRow(), and qgar::PbmFile::writeRow().

QGEpbmFormat qgar::AbstractPbmPlusFile::_format [protected, inherited]
 

Format of the file.

Definition at line 248 of file AbstractPbmPlusFile.H.

Referenced by readHeader(), qgar::PbmFile::readHeader(), readRow(), qgar::PbmFile::readRow(), writeHeader(), qgar::PbmFile::writeHeader(), writeRow(), and qgar::PbmFile::writeRow().

int qgar::PgmFile::_maxPix [protected]
 

Maximum value of a pixel.

Definition at line 226 of file PgmFile.H.

Referenced by maxPix(), readHeader(), setMaxPix(), and writeHeader().

unsigned char* qgar::AbstractPbmPlusFile::_pRow [protected, inherited]
 

Pointer to current image row.

Definition at line 263 of file AbstractPbmPlusFile.H.

Referenced by qgar::AbstractPbmPlusFile::newRow(), qgar::AbstractPbmPlusFile::pRow(), readRow(), qgar::PbmFile::readRow(), writeRow(), qgar::PbmFile::writeRow(), and qgar::AbstractPbmPlusFile::~AbstractPbmPlusFile().

int qgar::AbstractPbmPlusFile::_rowCnt [protected, inherited]
 

Number of rows of the image.

Definition at line 253 of file AbstractPbmPlusFile.H.

Referenced by readHeader(), qgar::PbmFile::readHeader(), qgar::AbstractPbmPlusFile::rowCnt(), qgar::AbstractPbmPlusFile::setRowCnt(), writeHeader(), and qgar::PbmFile::writeHeader().

const unsigned short qgar::PgmFile::_s_pgm_format [static, protected]
 

Initial value:

  (((unsigned short) PgmFile::_s_pgm_magic1) * 256)
+ (unsigned short) PgmFile::_s_pgm_magic2
PLAIN format.

Definition at line 77 of file PgmFile.C.

Referenced by readHeader().

const unsigned char qgar::PgmFile::_s_pgm_magic1 = 'P' [static, protected]
 

PLAIN format: Magic-1.

Definition at line 73 of file PgmFile.C.

Referenced by writeHeader().

const unsigned char qgar::PgmFile::_s_pgm_magic2 = '2' [static, protected]
 

PLAIN format: Magic-2.

Definition at line 75 of file PgmFile.C.

Referenced by writeHeader().

const unsigned short qgar::PgmFile::_s_rpgm_format [static, protected]
 

Initial value:

  (((unsigned short) PgmFile::_s_pgm_magic1) * 256)
+ (unsigned short) PgmFile::_s_rpgm_magic2
RAW format.

Definition at line 83 of file PgmFile.C.

Referenced by readHeader().

const unsigned char qgar::PgmFile::_s_rpgm_magic2 = '5' [static, protected]
 

RAW format: Magic-2.

Definition at line 81 of file PgmFile.C.

Referenced by writeHeader().


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