Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
firevision::PNMWriter Class Reference

PNM file writer. More...

#include <>>

Inheritance diagram for firevision::PNMWriter:

List of all members.

Public Member Functions

 PNMWriter (PNMFormat format)
 Constructor.
 PNMWriter (PNMFormat format, const char *filename, unsigned int width, unsigned int height)
 Constructor.
virtual void set_buffer (colorspace_t cspace, unsigned char *buffer)
 Set image buffer.
virtual void write ()
 Write to file.
- Public Member Functions inherited from firevision::Writer
 Writer (const char *extension=0)
 Constructor.
virtual ~Writer ()
 Virtual empty destructor.
virtual void set_filename (const char *filename)
 Set filename.
virtual void set_dimensions (unsigned int width, unsigned int height)
 Set dimensions of image in pixels.

Additional Inherited Members

- Protected Member Functions inherited from firevision::Writer
virtual void set_extension (const char *extension)
 Set the filename extension for file written by this writer.
- Protected Attributes inherited from firevision::Writer
char * filename
 The complete filename.
char * basename
 The basename of the file.
char * extension
 The extension of the file.
colorspace_t cspace
 The colorspace of the image.

Detailed Description

PNM file writer.

Definition at line 49 of file pnm.h.


Constructor & Destructor Documentation

firevision::PNMWriter::PNMWriter ( PNMFormat  format)

Constructor.

Parameters:
formatPNM subformat

Definition at line 46 of file pnm.cpp.

firevision::PNMWriter::PNMWriter ( PNMFormat  format,
const char *  filename,
unsigned int  width,
unsigned int  height 
)

Constructor.

Parameters:
formatPNM subformat
filenamefilename
widthimage width
heightimage height

Definition at line 62 of file pnm.cpp.

References firevision::Writer::set_filename().


Member Function Documentation

void firevision::PNMWriter::set_buffer ( colorspace_t  cspace,
unsigned char *  buffer 
)
virtual

Set image buffer.

Parameters:
cspacecolor space of image
bufferbuffer of image

Reimplemented from firevision::Writer.

Definition at line 78 of file pnm.cpp.

void firevision::PNMWriter::write ( )
virtual

Write to file.

Implements firevision::Writer.

Definition at line 228 of file pnm.cpp.

References firevision::Writer::filename.


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