SH::ShTypedImage< T > Class Template Reference

An image, consisting of a rectangle of floating-point elements. More...

#include <ShImage.hpp>

Inheritance diagram for SH::ShTypedImage< T >:

Inheritance graph
[legend]
Collaboration diagram for SH::ShTypedImage< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ShTypedImage ()
 Construct an empty image.
 ShTypedImage (int width, int height, int depth)
 Construct a black.
 ShTypedImage (const ShTypedImage &other)
 image at the given width/height/depth Copy an image
 ~ShTypedImage ()
ShTypedImageoperator= (const ShTypedImage &other)
 Copy the data from.
int width () const
 one image to another Determine the width of the image
int height () const
 Determine the height of the image.
int elements () const
 Determine the depth (floats per pixel) of the image.
void set_size (int width, int height, int depth)
operator() (int x, int y, int i) const
 Set the size of the image and create the underlying memory Retrieve a.
T & operator() (int x, int y, int i)
 particular component from the image. Retrieve a
ShTypedImage getNormalImage ()
 particular component from the image.
const T * data () const
T * data ()
void dirty ()
ShMemoryPtr memory ()
ShPointer< const ShMemorymemory () const

Detailed Description

template<typename T>
class SH::ShTypedImage< T >

An image, consisting of a rectangle of floating-point elements.

This class makes it easy to read PNG files and the like from files. It stores the image data in a memory object which can then be shared with array, table, and texture objects.

Definition at line 36 of file ShImage.hpp.


The documentation for this class was generated from the following files:
Generated on Wed Nov 9 15:35:21 2005 for Sh by  doxygen 1.4.5