29 #ifndef __IMAGE3DTEXTURE_H__
30 #define __IMAGE3DTEXTURE_H__
92 Types< MFString, MFImageLoader > > {
96 virtual void update();
102 const vector< string > &urls,
108 vector< string > urls;
115 CBData():texture(NULL), image(NULL){}
132 static void *loadImageThreadFunc(
void * );
139 Inst< SFNode > _metadata = 0,
140 Inst< MFString > _url = 0,
141 Inst< SFBool > _repeatS = 0,
142 Inst< SFBool > _repeatT = 0,
143 Inst< SFBool > _repeatR = 0,
144 Inst< SFBool > _scaleToP2 = 0,
145 Inst< SFImage > _image = 0,
146 Inst< MFImageLoader > _imageLoader = 0,
147 Inst< SFTextureProperties > _textureProperties = 0,
148 Inst< SFString > _loadInThread= 0 );
151 virtual void render();
Header file for H3DImageLoaderNode, the abstract base class for all image loaders nodes for different...
Contains the MFNode class.
Header file for X3DTexture3DNode, X3D scene-graph node.
Header file for X3DUrlObject, X3D scene-graph node.
CouldNotLoadImage is thrown when not any of the urls could be read with any of the image loaders in a...
Definition: Image3DTexture.h:64
SFImage is overridden to update the value from the url and imageLoader fields of the Image3DTexture.
Definition: Image3DTexture.h:92
CBData cb_data
data used for the callback function.
Definition: Image3DTexture.h:124
ThreadFuncData thread_data
data used for the thread function
Definition: Image3DTexture.h:121
The Image3DTexture node defines a texture map by specifying a single file that contains complete 3D d...
Definition: Image3DTexture.h:59
H3DUniquePtr< MFImageLoader > imageLoader
The ImageLoader nodes to use to read the image files.
Definition: Image3DTexture.h:159
H3DUniquePtr< SFString > loadInThread
Specifies the thread to use to load the image texture.
Definition: Image3DTexture.h:172
H3DUniquePtr< H3DUtil::SimpleThread > load_thread
The thread used for downloading images when load_images_in_separate_thread is true.
Definition: Image3DTexture.h:180
TypedMFNode< H3DImageLoaderNode > MFImageLoader
A MFNode containing ImageLoader.
Definition: Image3DTexture.h:67
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: Image3DTexture.h:175
CallbackCode
Return code for callback functions.
Definition: Scene.h:228
A template modifier class for adding type checking on the routes to any Field class.
Definition: TypedField.h:84
Template to make sure that the Nodes that are added to a MFNode are of a specified Node type.
Definition: MFNode.h:221
This abstract node type is the base type for all node types which specify 3D sources for texture imag...
Definition: X3DTexture3DNode.h:46
This abstract interface is inherited by all nodes that contain data located on the World Wide Web,...
Definition: X3DUrlObject.h:51
H3D_API_EXCEPTION(Vec2dNormalizeError)
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194
struct for storing input needed for the callback function.
Definition: Image3DTexture.h:114
struct for storing input needed to the thread function
Definition: Image3DTexture.h:106