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

#include <PixmapFile.hh>

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

List of all members.

Public Member Functions

 PixmapFile (char const *name, Image *images[], int channels)
virtual ~PixmapFile (void)
clrmodel colormodel (void)
void colormodel (clrmodel cm)
int channels (void) const

Protected Member Functions

void init (Image *images[])

Protected Attributes

Image ** m_images
int m_channels
char const * m_fname
clrmodel m_cmodel

Detailed Description

An abstract image file. A framework to create readers and writers on any color images.

Definition at line 24 of file PixmapFile.hh.


Constructor & Destructor Documentation

PixmapFile::PixmapFile ( char const *  name,
Image images[],
int  channels 
)

Constructor. Initializes internal fields and gets an {ImageArray} object that may already contain an image or will get one later.

Parameters:
namethe file name
imagesthe array of greyscale images for the values
channelsthe number of colors
virtual PixmapFile::~PixmapFile ( void  ) [virtual]

Destructor. Releases some memory.


Member Function Documentation

int PixmapFile::channels ( void  ) const [inline]

Return the number of channels.

Returns:
the number of channels

Definition at line 51 of file PixmapFile.hh.

clrmodel PixmapFile::colormodel ( void  ) [inline]

Returns the current color model.

Returns:
the current color model

Definition at line 44 of file PixmapFile.hh.

Referenced by PfcWriter::PfcWriter().

void PixmapFile::colormodel ( clrmodel  cm) [inline]

Sets a new color model.

Parameters:
cmthe new color model

Definition at line 47 of file PixmapFile.hh.

void PixmapFile::init ( Image images[]) [protected]

internal initialization


Member Data Documentation

int PixmapFile::m_channels [protected]

The number of channels (usually: colors).

Definition at line 58 of file PixmapFile.hh.

Definition at line 62 of file PixmapFile.hh.

char const* PixmapFile::m_fname [protected]

The file name. The name of the file associated with this object.

Definition at line 60 of file PixmapFile.hh.

Image** PixmapFile::m_images [protected]

The color channels.

Definition at line 56 of file PixmapFile.hh.


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