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 __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