H3D::ImageTexture Class Reference
[X3D node classes.]

The ImageTexture node defines a texture map by specifying an image file and general parameters for mapping to geometry. More...

#include <H3D/ImageTexture.h>

Inheritance diagram for H3D::ImageTexture:

Inheritance graph

List of all members.

Classes

class  CouldNotLoadImage
 CouldNotLoadImage is thrown when not any of the urls could be read with any of the image loaders in a ImageTexture. More...
class  SFImage
 SFImage is overridden to update the value from the url and imageLoader fields of the ImageTexture. More...

Public Types

typedef TypedMFNode
< H3DImageLoaderNode
MFImageLoader
 A MFNode containing ImageLoader.

Public Member Functions

 ImageTexture (Inst< DisplayList > _displayList=0, Inst< SFNode > _metadata=0, Inst< MFString > _url=0, Inst< SFBool > _repeatS=0, Inst< SFBool > _repeatT=0, Inst< SFBool > _scaleToP2=0, Inst< SFImage > _image=0, Inst< MFImageLoader > _imageLoader=0, Inst< SFTextureProperties > _textureProperties=0)
 Constructor.
virtual void render ()
 render() is overridden to include the url in error messages.

Public Attributes

auto_ptr< MFImageLoaderimageLoader
 The ImageLoader nodes to use to read the image files.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.

Protected Attributes

auto_ptr< H3DUtil::SimpleThreadload_thread
 The thread used for downloading images when load_images_in_separate_thread is true.


Detailed Description

The ImageTexture node defines a texture map by specifying an image file and general parameters for mapping to geometry.

The texture is read from the URL specified by the url field using the ImageLoader nodes from the imageLoader field. The texture used will be the first texture that is successfully loaded. Each file in the url field be tried with the first ImageLoader, if none of those succeed the next ImageLoader will be tried on all the urls and so on.

Internal routes:
ImageTexture.dot

Member Data Documentation

The ImageLoader nodes to use to read the image files.

Access type: inputOutput
Default value: FreeImageLoader

ImageTexture_imageLoader.dot

Referenced by ImageTexture().

The thread used for downloading images when load_images_in_separate_thread is true.

Referenced by H3D::ImageTexture::SFImage::update().


The documentation for this class was generated from the following files:

Generated on Fri Nov 7 10:30:21 2008 for H3D API by  doxygen 1.5.7