00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00027
00029 #ifndef __SIMPLEMOVIETEXTURE_H__
00030 #define __SIMPLEMOVIETEXTURE_H__
00031
00032 #include "H3DVideoTextureNode.h"
00033 #include "X3DUrlObject.h"
00034 #include "SFFloat.h"
00035 #include "SFTime.h"
00036 #include "SFInt32.h"
00037
00038 namespace H3D {
00043 class H3DAPI_API SimpleMovieTexture : public H3DVideoTextureNode,
00044 public X3DUrlObject{
00045 public:
00046
00050 class DecoderManager: public TypedField< AutoUpdate< SFBool >,
00051 Types< SFBool, SFBool, SFBool,
00052 SFBool, MFString, SFFloat > > {
00053 virtual void update();
00054 };
00055
00057 SimpleMovieTexture (
00058 Inst< DisplayList > _displayList = 0,
00059 Inst< SFNode > _metadata = 0,
00060 Inst< SFBool > _repeatS = 0,
00061 Inst< SFBool > _repeatT = 0,
00062 Inst< SFBool > _scaleToP2 = 0,
00063 Inst< SFImage > _image = 0,
00064 Inst< SFTextureProperties > _textureProperties = 0,
00065 Inst< SFBool > _play = 0,
00066 Inst< SFBool > _stop = 0,
00067 Inst< SFBool > _pause = 0,
00068 Inst< SFTime > _duration = 0,
00069 Inst< SFFloat > _rate = 0,
00070 Inst< SFBool > _playAudio = 0,
00071 Inst< SFBool > _loop = 0,
00072 Inst< SFInt32 > _width = 0,
00073 Inst< SFInt32 > _height = 0,
00074 Inst< MFString > _url = 0 );
00075
00077 static H3DNodeDatabase database;
00078
00086 auto_ptr< SFBool > play;
00087
00096 auto_ptr< SFBool > stop;
00097
00105 auto_ptr< SFBool > pause;
00106
00113 auto_ptr< SFTime > duration;
00114
00125 auto_ptr< SFFloat > rate;
00126
00134 auto_ptr< SFBool > playAudio;
00135
00143 auto_ptr< SFBool > loop;
00144
00151 auto_ptr< SFInt32 > videoWidth;
00152
00159 auto_ptr< SFInt32 > videoHeight;
00160
00164 auto_ptr< DecoderManager > decoderManager;
00165
00166 };
00167 }
00168
00169 #endif