Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

X3DTK::X3DImageType Class Reference

Class providing an interface for the different types of images. More...

Inheritance diagram for X3DTK::X3DImageType:

X3DTK::JPGImageType List of all members.

Public Methods

Protected Methods

Protected Attributes


Detailed Description

Class providing an interface for the different types of images.

The only method to redefine is load.


Constructor & Destructor Documentation

X3DTK::X3DImageType::X3DImageType  
 

Constructor.

virtual X3DTK::X3DImageType::~X3DImageType   [virtual]
 

Destructor.


Member Function Documentation

bool X3DTK::X3DImageType::allocate int    pixelFormat,
unsigned short    width,
unsigned short    height
[protected]
 

Allocates an image.

unsigned char* X3DTK::X3DImageType::getData   const [inline]
 

Gets the array of data.

GLenum X3DTK::X3DImageType::getGLType  
 

Gets the pixel format.

unsigned short X3DTK::X3DImageType::getHeight   const [inline]
 

Gets the height.

unsigned short X3DTK::X3DImageType::getWidth   const [inline]
 

Gets the width.

virtual bool X3DTK::X3DImageType::load const char *    fileName [pure virtual]
 

Loads the file. This method has to be redefined.

Implemented in X3DTK::JPGImageType.

void X3DTK::X3DImageType::release  
 

Releases the memory.

void X3DTK::X3DImageType::resize unsigned short    width,
unsigned short    height
 

Resizes the image.

void X3DTK::X3DImageType::resizeGL float &    textureTransform[16]
 

Resizes the image in order to be used as an OpenGL texture image.

textureTransform is the matrix to correct the rendering.


Member Data Documentation

unsigned char* X3DTK::X3DImageType::data [protected]
 

data.


Generated on Thu Dec 4 13:25:54 2003 for X3DToolKit by doxygen1.2.18