Image Class Reference

#include <Image.h>


Public Member Functions

 Image (const std::string &name)
 Image (int xres, int yres)
 ~Image ()
void set (int x, int y, const Color &c)
void write (const std::string &filename) const
double aspect_ratio () const
int getXresolution ()
int getYresolution ()
Color interpolate (float x, float y) const

Protected Member Functions

 Image (const Image &)
Imageoperator= (const Image &)

Protected Attributes

Pixel ** data
int xres
int yres


Detailed Description

Definition at line 15 of file Image.h.


Constructor & Destructor Documentation

Image const std::string &  name  ) 
 

Definition at line 21 of file Image.cc.

References data, xres, and yres.

Image int  xres,
int  yres
 

Definition at line 60 of file Image.cc.

References data.

~Image  ) 
 

Definition at line 69 of file Image.cc.

References data.

Image const Image  )  [protected]
 


Member Function Documentation

double aspect_ratio  )  const [inline]
 

Definition at line 28 of file Image.h.

int getXresolution  )  [inline]
 

Definition at line 31 of file Image.h.

Referenced by Scene::render().

int getYresolution  )  [inline]
 

Definition at line 34 of file Image.h.

Referenced by Scene::render().

Color interpolate float  x,
float  y
const [inline]
 

Definition at line 37 of file Image.h.

References data, and Floor().

Image& operator= const Image  )  [protected]
 

void set int  x,
int  y,
const Color c
[inline]
 

Definition at line 20 of file Image.h.

References Color::b(), Pixel::b, data, Color::g(), Pixel::g, Color::r(), and Pixel::r.

Referenced by Scene::render().

void write const std::string &  filename  )  const
 

Definition at line 154 of file Image.cc.

References data, xres, and yres.


Field Documentation

Pixel** data [protected]
 

Definition at line 58 of file Image.h.

Referenced by Image(), interpolate(), set(), write(), and ~Image().

int xres [protected]
 

Definition at line 59 of file Image.h.

Referenced by Image(), and write().

int yres [protected]
 

Definition at line 59 of file Image.h.

Referenced by Image(), and write().


The documentation for this class was generated from the following files:
Generated on Tue Jan 29 21:34:55 2008 for specter by  doxygen 1.4.6