Main Page | Class Hierarchy | Class List | Directories | File List

Image1D Class Template Reference

This class represents a one-dimensional image. More...

#include <ApiGraphics/Image1D.h>

Inheritance diagram for Image1D:

AbstractImage1D TextureData List of all members.

Public Member Functions

 Image1D (int w=0, Color *data=NULL, WrapMode wrap=CLAMP_TO_EDGE, Color border=Color())
 Image1D (QImage image)
 Image1D (QString fileName)
virtual bool loaded () const
virtual void destroy ()
virtual QImage toQImage () const
virtual void initialize (QImage image)
Image1D< Color > clone () const
void copy (const Image1D< Color > &image)
virtual GLint defaultTexFormat () const
virtual void loadTexture1D (GLint texFormat, GLenum target=GL_TEXTURE_1D) const
void setBorderColor (Color border)
void setWrapMode (WrapMode wrapMode)
void setupBorder (WrapMode wrapMode, Color border)
Color & texel (int i)
const Color & texel (int i) const
Color & operator() (int i)
const Color & operator() (int i) const
Color sample (int i) const
Color interp (float x) const
Color interpUnit (float x) const
Color operator() (float x) const
const Color * mem () const
Color * mem ()

Static Public Member Functions

static Image1D< Color > readTexture (Texture *tex)

Detailed Description

template<class Color>
class apig::Image1D< Color >

This class represents a one-dimensional image.

It is parameterized by the data type representing colors (number of channels and type used per channel). Useful types for color representations are defined in ColorTypes.h : Float1, Float2, Float3, Float4, UByte3, UByte4, UInt3, UInt4.


The documentation for this class was generated from the following files:
Generated on Fri Nov 14 20:49:47 2008 for Api Graphics by  doxygen 1.4.4