SimpleMovieTexture.h

Go to the documentation of this file.
00001 
00002 //    Copyright 2004, SenseGraphics AB
00003 //
00004 //    This file is part of H3D API.
00005 //
00006 //    H3D API is free software; you can redistribute it and/or modify
00007 //    it under the terms of the GNU General Public License as published by
00008 //    the Free Software Foundation; either version 2 of the License, or
00009 //    (at your option) any later version.
00010 //
00011 //    H3D API is distributed in the hope that it will be useful,
00012 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 //    GNU General Public License for more details.
00015 //
00016 //    You should have received a copy of the GNU General Public License
00017 //    along with H3D API; if not, write to the Free Software
00018 //    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 //
00020 //    A commercial license is also available. Please contact us at 
00021 //    www.sensegraphics.com for more information.
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

Generated on Thu Aug 24 12:38:34 2006 for H3D API by  doxygen 1.4.5