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

ns_vu1112116::Image Class Reference

Hold a spectrum for each pixel on the screen. More...

#include <Image.h>

Collaboration diagram for ns_vu1112116::Image:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Image ()
 constructor
virtual ~Image ()
 destructor
bool init (int sizx, int sizy)
 initialize spectral framebuffer of given size
void get_extents (int &sizx, int &sizy)
 get extents of image
bool set_xy (int x, int y, const vuColourRGBa &col)
 set spectral color information for a point
bool get_xy (int x, int y, vuColourRGBa &col)
 get colour from specific point
const byteget_rgb () const
 returns the framebuffer

Private Attributes

bytespix
 pointer to spectral frame buffer
int maxx
 extents of the framebuffer
int maxy
 extents of the framebuffer

Detailed Description

Hold a spectrum for each pixel on the screen.

Is used to apply post-illumination. The reference to ColourType is a typecast that stands for the color model used in the currently compiled version.

Todo:
relate it more to the framebuffer provided by a future version of vuDrawTools

Definition at line 16 of file Image.h.


Constructor & Destructor Documentation

Image::Image  ) 
 

constructor

Definition at line 13 of file Image.cpp.

References init(), and spix.

Here is the call graph for this function:

Image::~Image  )  [virtual]
 

destructor

Definition at line 19 of file Image.cpp.


Member Function Documentation

void Image::get_extents int &  sizx,
int &  sizy
 

get extents of image

Definition at line 61 of file Image.cpp.

const byte * Image::get_rgb  )  const
 

returns the framebuffer

Definition at line 56 of file Image.cpp.

References byte.

bool Image::get_xy int  x,
int  y,
vuColourRGBa col
 

get colour from specific point

Returns:
false if xy out of range

Definition at line 49 of file Image.cpp.

References maxx, and spix.

bool Image::init int  sizx,
int  sizy
 

initialize spectral framebuffer of given size

Definition at line 24 of file Image.cpp.

References byte, maxx, maxy, and spix.

Referenced by Image().

bool Image::set_xy int  x,
int  y,
const vuColourRGBa col
 

set spectral color information for a point

Definition at line 37 of file Image.cpp.

References byte, vuColour< S >::clampTo01(), maxx, and spix.

Here is the call graph for this function:


Member Data Documentation

int ns_vu1112116::Image::maxx [private]
 

extents of the framebuffer

Definition at line 38 of file Image.h.

Referenced by get_xy(), init(), and set_xy().

int ns_vu1112116::Image::maxy [private]
 

extents of the framebuffer

Definition at line 38 of file Image.h.

Referenced by init().

byte* ns_vu1112116::Image::spix [private]
 

pointer to spectral frame buffer

Definition at line 36 of file Image.h.

Referenced by get_xy(), Image(), init(), and set_xy().


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