Wavelet and Image class library  1.3.2
Public Member Functions | Protected Member Functions
PfcWriter Class Reference

#include <PfcWriter.hh>

Inheritance diagram for PfcWriter:
Inheritance graph
[legend]
Collaboration diagram for PfcWriter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PfcWriter (char const *name, Image *images[], int colors=3, clrmodel cmodel=cm_rgb)
virtual ~PfcWriter (void)

Protected Member Functions

virtual int writefmt (void)

Detailed Description

A PFC image file writer. Dimensions are known from the {Image} object. Only PFC version 6 is supported.

Definition at line 21 of file PfcWriter.hh.


Constructor & Destructor Documentation

PfcWriter::PfcWriter ( char const *  name,
Image images[],
int  colors = 3,
clrmodel  cmodel = cm_rgb 
) [inline]

Constructor. Only calls the mother class' constructor to initialize the {ImageArray} reference and set the offset if necessary.

Parameters:
namethe file name
imagesthe array of greyscale images for the values
colorsthe number of colors
cmodelthe color model

Definition at line 36 of file PfcWriter.hh.

References PixmapFile::colormodel().

virtual PfcWriter::~PfcWriter ( void  ) [inline, virtual]

Destructor - does nothing.

Definition at line 41 of file PfcWriter.hh.


Member Function Documentation

virtual int PfcWriter::writefmt ( void  ) [protected, virtual]

Write a PFC image file. This is the method that does the actual work. It will be called by the {write ()} method.

Returns:
0 if successful, -1 on write error.

Implements PixmapWriter.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines