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

PLPicEncoder Class Reference

PLPicEncoder is an abstract base class. More...

#include <plpicenc.h>

Inheritance diagram for PLPicEncoder:

Inheritance graph
[legend]
Collaboration diagram for PLPicEncoder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PLPicEncoder ()
 Empty constructor.
virtual ~PLPicEncoder ()
 Destructor. Frees memory allocated.
virtual void MakeFileFromBmp (const char *, PLBmp *)
 Encodes a bitmap to a file and stores.
virtual void SaveBmp (PLBmp *, PLDataSink *)
 Encodes a picture to a pre-existing data destination (sink).
void SetTraceConfig (int Level, char *pszFName)
void Trace (int TraceLevel, const char *pszMessage)

Static Public Member Functions

void raiseError (int Code, char *pszErr)

Protected Member Functions

virtual void DoEncode (PLBmp *pBmp, PLDataSink *pDataSrc)=0
 Implements the actual encoding process.

Detailed Description

PLPicEncoder is an abstract base class.

It defines common routines for all encoders. Encoders for specific file formats can be derived from this class. Objects of this class interact with a PLDataSink to encode bitmaps.

Definition at line 30 of file plpicenc.h.


Constructor & Destructor Documentation

PLPicEncoder::PLPicEncoder  ) 
 

Empty constructor.

The actual initialization takes place in a derived class.

Definition at line 25 of file plpicenc.cpp.

PLPicEncoder::~PLPicEncoder  )  [virtual]
 

Destructor. Frees memory allocated.

Definition at line 31 of file plpicenc.cpp.


Member Function Documentation

virtual void PLPicEncoder::DoEncode PLBmp pBmp,
PLDataSink pDataSrc
[protected, pure virtual]
 

Implements the actual encoding process.

Uses variables local to the object to retrieve and store the data. Implemented in derived classes.

Implemented in PLBmpEncoder, PLJPEGEncoder, PLPNGEncoder, PLTIFFEncoder, and PLTIFFEncoderEx.

Referenced by SaveBmp().

void PLPicEncoder::MakeFileFromBmp const char *  ,
PLBmp
[virtual]
 

Encodes a bitmap to a file and stores.

Definition at line 38 of file plpicenc.cpp.

References PLFileSink::Close(), PLBmp::GetMemUsed(), PLFileSink::Open(), raiseError(), SaveBmp(), and Trace().

Here is the call graph for this function:

void PLPicEncoder::raiseError int  Code,
char *  pszErr
[static]
 

Definition at line 82 of file plpicenc.cpp.

References PLPicDecoder::raiseError().

Referenced by error_exit(), MakeFileFromBmp(), and raiseError().

Here is the call graph for this function:

void PLPicEncoder::SaveBmp PLBmp ,
PLDataSink
[virtual]
 

Encodes a picture to a pre-existing data destination (sink).

Definition at line 68 of file plpicenc.cpp.

References DoEncode().

Referenced by MakeFileFromBmp().

Here is the call graph for this function:

void PLPicEncoder::SetTraceConfig int  Level,
char *  pszFName
 

Definition at line 77 of file plpicenc.cpp.

References PLPicDecoder::SetTraceConfig().

Here is the call graph for this function:

void PLPicEncoder::Trace int  TraceLevel,
const char *  pszMessage
 

Definition at line 87 of file plpicenc.cpp.

References PLPicDecoder::Trace().

Referenced by MakeFileFromBmp().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:21:01 2004 for vuVolume by  doxygen 1.3.9.1