celeste::ImageFile Class Reference

#include <ImageFile.h>

Inheritance diagram for celeste::ImageFile:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ImageFile ()
virtual ~ImageFile ()
void SetWidth (int w)
int GetWidth ()
void SetHeight (int h)
int GetHeight ()
void SetPixel (int x, int y, unsigned char p)
unsigned char GetPixel (int x, int y)
int *** GetRGBPixels (void)
void SetPixels (float **)
float ** GetPixels (void)
void Allocate (int dataset)
void Deallocate ()
virtual int Read (char *)=0
virtual void Write (char *)=0

Protected Attributes

int *** mRGB
unsigned char ** mPixels
float ** mFloats
int mWidth
int mHeight
bool mVerbosity

Detailed Description

Definition at line 47 of file ImageFile.h.


Constructor & Destructor Documentation

celeste::ImageFile::ImageFile (  ) 

Definition at line 33 of file ImageFile.cpp.

References mFloats, mHeight, mPixels, mRGB, mVerbosity, and mWidth.

celeste::ImageFile::~ImageFile (  )  [virtual]

Definition at line 43 of file ImageFile.cpp.

References Deallocate().


Member Function Documentation

void celeste::ImageFile::Allocate ( int  dataset  ) 

Definition at line 50 of file ImageFile.cpp.

References celeste::kChars, celeste::kFloats, celeste::kRGB, mFloats, mHeight, mPixels, mRGB, and mWidth.

Referenced by GetPixels(), celeste::PGMImage::Read(), celeste::PGMImage::Write(), and celeste::PGMImage::WriteScaled().

void celeste::ImageFile::Deallocate (  ) 

Definition at line 92 of file ImageFile.cpp.

References mFloats, mHeight, mPixels, and mRGB.

Referenced by celeste::PGMImage::Write(), celeste::PGMImage::WriteScaled(), and ~ImageFile().

int celeste::ImageFile::GetHeight (  )  [inline]

Definition at line 60 of file ImageFile.h.

References mHeight.

unsigned char celeste::ImageFile::GetPixel ( int  x,
int  y 
)

Definition at line 120 of file ImageFile.cpp.

References mPixels.

float ** celeste::ImageFile::GetPixels ( void   ) 

Definition at line 139 of file ImageFile.cpp.

References Allocate(), celeste::kFloats, mFloats, mHeight, mPixels, and mWidth.

int*** celeste::ImageFile::GetRGBPixels ( void   )  [inline]

Definition at line 67 of file ImageFile.h.

References mRGB.

int celeste::ImageFile::GetWidth (  )  [inline]

Definition at line 56 of file ImageFile.h.

References mWidth.

virtual int celeste::ImageFile::Read ( char *   )  [pure virtual]

Implemented in celeste::PGMImage.

void celeste::ImageFile::SetHeight ( int  h  )  [inline]

Definition at line 59 of file ImageFile.h.

References mHeight.

void celeste::ImageFile::SetPixel ( int  x,
int  y,
unsigned char  p 
) [inline]

Definition at line 63 of file ImageFile.h.

References mPixels.

void celeste::ImageFile::SetPixels ( float **   ) 

Definition at line 130 of file ImageFile.cpp.

References mHeight, mPixels, and mWidth.

void celeste::ImageFile::SetWidth ( int  w  )  [inline]

Definition at line 55 of file ImageFile.h.

References mWidth.

virtual void celeste::ImageFile::Write ( char *   )  [pure virtual]

Implemented in celeste::PGMImage.


Member Data Documentation

float** celeste::ImageFile::mFloats [protected]

Definition at line 83 of file ImageFile.h.

Referenced by Allocate(), Deallocate(), GetPixels(), and ImageFile().

int celeste::ImageFile::mHeight [protected]

Definition at line 85 of file ImageFile.h.

Referenced by Allocate(), Deallocate(), GetHeight(), GetPixels(), ImageFile(), celeste::PGMImage::Read(), SetHeight(), SetPixels(), celeste::PGMImage::Write(), and celeste::PGMImage::WriteScaled().

unsigned char** celeste::ImageFile::mPixels [protected]

Definition at line 82 of file ImageFile.h.

Referenced by Allocate(), Deallocate(), GetPixel(), GetPixels(), ImageFile(), celeste::PGMImage::Read(), SetPixel(), SetPixels(), celeste::PGMImage::Write(), and celeste::PGMImage::WriteScaled().

int*** celeste::ImageFile::mRGB [protected]

Definition at line 81 of file ImageFile.h.

Referenced by Allocate(), Deallocate(), GetRGBPixels(), ImageFile(), and celeste::PGMImage::Read().

bool celeste::ImageFile::mVerbosity [protected]

Definition at line 86 of file ImageFile.h.

Referenced by ImageFile(), celeste::PGMImage::Read(), and celeste::PGMImage::Write().

int celeste::ImageFile::mWidth [protected]

Definition at line 84 of file ImageFile.h.

Referenced by Allocate(), GetPixels(), GetWidth(), ImageFile(), celeste::PGMImage::Read(), SetPixels(), SetWidth(), celeste::PGMImage::Write(), and celeste::PGMImage::WriteScaled().


The documentation for this class was generated from the following files:
Generated on 31 Oct 2014 for Hugintrunk by  doxygen 1.4.7