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

PLAnyBmp Class Reference

Manipulates uncompressed device- and platform-independent bitmaps. More...

#include <planybmp.h>

Inheritance diagram for PLAnyBmp:

Inheritance graph
[legend]
Collaboration diagram for PLAnyBmp:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PLAnyBmp ()
 Creates an empty bitmap.
virtual ~PLAnyBmp ()
 Destroys the bitmap.
 PLAnyBmp (const PLBmp &Orig)
 Copy constructor.
 PLAnyBmp (const PLAnyBmp &Orig)
 Copy constructor.
PLAnyBmpoperator= (const PLBmp &Orig)
 Assignment operator.
PLAnyBmpoperator= (const PLAnyBmp &Orig)
 Assignment operator.
long GetMemUsed ()
 Returns the amount of memory used by the object.
long GetBytesPerLine ()
 Returns number of bytes used per line.

Static Public Member Functions

long GetMemNeeded (PLLONG width, PLLONG height, PLWORD BitsPerPixel)
 Returns memory needed by a bitmap with the specified attributes.
long GetBitsMemNeeded (PLLONG width, PLLONG height, PLWORD BitsPerPixel)
 Returns memory needed by bitmap bits.

Protected Member Functions

virtual void internalCreate (PLLONG Width, PLLONG Height, PLWORD BitsPerPixel, bool bAlphaChannel)
 Create a new bitmap with uninitialized bits.
virtual void freeMembers ()
 Delete memory allocated by member variables.
virtual void initLineArray ()
 Initialize internal table of line addresses.

Protected Attributes

PLBYTEm_pBits

Detailed Description

Manipulates uncompressed device- and platform-independent bitmaps.

Supported data formats are 8 and 32 bpp. The data is stored sequentially without padding in the bitmap. The class implements exactly the interface defined by PLBmp without additions.

Definition at line 22 of file planybmp.h.


Constructor & Destructor Documentation

PLAnyBmp::PLAnyBmp  ) 
 

Creates an empty bitmap.

Definition at line 25 of file planybmp.cpp.

References PLASSERT_VALID.

PLAnyBmp::~PLAnyBmp  )  [virtual]
 

Destroys the bitmap.

Definition at line 35 of file planybmp.cpp.

PLAnyBmp::PLAnyBmp const PLBmp Orig  )  [inline]
 

Copy constructor.

Definition at line 117 of file planybmp.h.

PLAnyBmp::PLAnyBmp const PLAnyBmp Orig  )  [inline]
 

Copy constructor.

Definition at line 109 of file planybmp.h.


Member Function Documentation

void PLAnyBmp::freeMembers  )  [protected, virtual]
 

Delete memory allocated by member variables.

Implements PLBmp.

Definition at line 152 of file planybmp.cpp.

long PLAnyBmp::GetBitsMemNeeded PLLONG  width,
PLLONG  height,
PLWORD  BitsPerPixel
[static]
 

Returns memory needed by bitmap bits.

Definition at line 69 of file planybmp.cpp.

References PLLONG, and PLWORD.

long PLAnyBmp::GetBytesPerLine  )  [virtual]
 

Returns number of bytes used per line.

Implements PLBmp.

Definition at line 54 of file planybmp.cpp.

long PLAnyBmp::GetMemNeeded PLLONG  width,
PLLONG  height,
PLWORD  BitsPerPixel
[static]
 

Returns memory needed by a bitmap with the specified attributes.

Definition at line 88 of file planybmp.cpp.

References PLLONG, and PLWORD.

long PLAnyBmp::GetMemUsed  )  [virtual]
 

Returns the amount of memory used by the object.

Implements PLBmp.

Definition at line 43 of file planybmp.cpp.

References PLASSERT_VALID.

void PLAnyBmp::initLineArray  )  [protected, virtual]
 

Initialize internal table of line addresses.

Implements PLBmp.

Definition at line 141 of file planybmp.cpp.

References PLBYTE.

void PLAnyBmp::internalCreate PLLONG  Width,
PLLONG  Height,
PLWORD  BitsPerPixel,
bool  bAlphaChannel
[protected, virtual]
 

Create a new bitmap with uninitialized bits.

(Assume no memory is allocated yet.)

Implements PLBmp.

Definition at line 109 of file planybmp.cpp.

References PL_ERRDIB_TOO_LARGE, PLASSERT_VALID, PLBYTE, PLLONG, and PLWORD.

PLAnyBmp & PLAnyBmp::operator= const PLAnyBmp Orig  )  [inline]
 

Assignment operator.

Definition at line 133 of file planybmp.h.

References PLBmp::operator=().

Here is the call graph for this function:

PLAnyBmp & PLAnyBmp::operator= const PLBmp Orig  )  [inline]
 

Assignment operator.

Reimplemented from PLBmp.

Definition at line 125 of file planybmp.h.

References PLBmp::operator=().

Here is the call graph for this function:


Member Data Documentation

PLBYTE* PLAnyBmp::m_pBits [protected]
 

Definition at line 102 of file planybmp.h.


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