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

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 mFloats, mPixels, and mRGB.

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, 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.

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, and mPixels.

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

Definition at line 67 of file ImageFile.h.

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

Definition at line 56 of file ImageFile.h.

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.

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

Definition at line 63 of file ImageFile.h.

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

Definition at line 130 of file ImageFile.cpp.

References mPixels.

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

Definition at line 55 of file ImageFile.h.

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 ImageFile().

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

Definition at line 82 of file ImageFile.h.

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

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

Definition at line 81 of file ImageFile.h.

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

bool celeste::ImageFile::mVerbosity [protected]
 

Definition at line 86 of file ImageFile.h.

Referenced by ImageFile().

int celeste::ImageFile::mWidth [protected]
 

Definition at line 84 of file ImageFile.h.

Referenced by ImageFile().


The documentation for this class was generated from the following files:
Generated on Tue Sep 30 01:25:47 2014 for Hugintrunk by  doxygen 1.3.9.1