TextureProperties.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 __TEXTUREPROPERTIES_H__
00030 #define __TEXTUREPROPERTIES_H__
00031 
00032 #include "X3DNode.h"
00033 #include "H3DDisplayListObject.h"
00034 #include "SFInt32.h"
00035 #include "SFBool.h"
00036 #include "SFString.h"
00037 #include "SFFloat.h"
00038 #include "SFColorRGBA.h"
00039 
00040 namespace H3D {
00149   class H3DAPI_API TextureProperties : 
00150     public X3DNode {
00151   public:
00152     
00154     TextureProperties( Inst< SFNode  > _metadata              = 0,
00155                        Inst< SFFloat  > _anisotropicDegree    = 0,
00156                        Inst< SFColorRGBA > _borderColor       = 0,
00157                        Inst< SFInt32  > _borderWidth          = 0,
00158                        Inst< SFString > _boundaryModeS        = 0,
00159                        Inst< SFString > _boundaryModeT        = 0,
00160                        Inst< SFString > _boundaryModeR        = 0,
00161                        Inst< SFString  > _magnificationFilter = 0,
00162                        Inst< SFString  > _minificationFilter  = 0,
00163                        Inst< SFString > _textureCompression   = 0,
00164                        Inst< SFFloat > _texturePriority        = 0,
00165                        Inst< SFBool  > _generateMipMaps      = 0 );
00166 
00169     virtual string defaultXMLContainerField() {
00170       return "textureProperties";
00171     }
00172 
00182     auto_ptr< SFFloat >  anisotropicDegree;
00183 
00190     auto_ptr< SFColorRGBA >  borderColor;
00191 
00198     auto_ptr< SFInt32 >  borderWidth;
00199 
00207     auto_ptr< SFString > boundaryModeS;
00208 
00216     auto_ptr< SFString > boundaryModeT;
00217 
00225     auto_ptr< SFString > boundaryModeR;
00226     
00234     auto_ptr< SFString >  magnificationFilter;
00235 
00243     auto_ptr< SFString >  minificationFilter;
00244 
00252     auto_ptr< SFString >  textureCompression;
00253 
00262     auto_ptr< SFFloat >  texturePriority;
00263 
00272     auto_ptr< SFBool >  generateMipMaps;
00273 
00276     auto_ptr< Field > propertyChanged;
00277 
00278 
00280     static H3DNodeDatabase database;
00281   };
00282 }
00283 
00284 #endif

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