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

X3DTK::X3DImageType Class Reference
[image]

Class declared in <X3DTK/kernel.h> providing an interface for the different types of images. More...

Inheritance diagram for X3DTK::X3DImageType:

X3DTK::JPGImageType List of all members.

Public Member Functions

Protected Member Functions

Protected Attributes


Detailed Description

Class declared in <X3DTK/kernel.h> 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  )  const
 

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 Wed Apr 7 12:15:29 2004 for X3DToolKit by doxygen 1.3.3