00001 /* 00002 * Copyright 2006 Sony Computer Entertainment Inc. 00003 * 00004 * Licensed under the MIT Open Source License, for details please see license.txt or the website 00005 * http://www.opensource.org/licenses/mit-license.php 00006 * 00007 */ 00008 00009 #ifndef __domGles_sampler_state_h__ 00010 #define __domGles_sampler_state_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 #include <dom/domExtra.h> 00017 class DAE; 00018 00023 class domGles_sampler_state_complexType 00024 { 00025 public: 00026 class domWrap_s; 00027 00028 typedef daeSmartRef<domWrap_s> domWrap_sRef; 00029 typedef daeTArray<domWrap_sRef> domWrap_s_Array; 00030 00031 class domWrap_s : public daeElement 00032 { 00033 public: 00034 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; } 00035 static daeInt ID() { return 157; } 00036 virtual daeInt typeID() const { return ID(); } 00037 00038 protected: // Value 00042 domGles_sampler_wrap _value; 00043 00044 public: //Accessors and Mutators 00049 domGles_sampler_wrap getValue() const { return _value; } 00054 void setValue( domGles_sampler_wrap val ) { _value = val; } 00055 00056 protected: 00060 domWrap_s(DAE& dae) : daeElement(dae), _value() {} 00064 virtual ~domWrap_s() {} 00068 virtual domWrap_s &operator=( const domWrap_s &cpy ) { (void)cpy; return *this; } 00069 00070 public: // STATIC METHODS 00075 static DLLSPEC daeElementRef create(DAE& dae); 00081 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00082 }; 00083 00084 class domWrap_t; 00085 00086 typedef daeSmartRef<domWrap_t> domWrap_tRef; 00087 typedef daeTArray<domWrap_tRef> domWrap_t_Array; 00088 00089 class domWrap_t : public daeElement 00090 { 00091 public: 00092 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_T; } 00093 static daeInt ID() { return 158; } 00094 virtual daeInt typeID() const { return ID(); } 00095 00096 protected: // Value 00100 domGles_sampler_wrap _value; 00101 00102 public: //Accessors and Mutators 00107 domGles_sampler_wrap getValue() const { return _value; } 00112 void setValue( domGles_sampler_wrap val ) { _value = val; } 00113 00114 protected: 00118 domWrap_t(DAE& dae) : daeElement(dae), _value() {} 00122 virtual ~domWrap_t() {} 00126 virtual domWrap_t &operator=( const domWrap_t &cpy ) { (void)cpy; return *this; } 00127 00128 public: // STATIC METHODS 00133 static DLLSPEC daeElementRef create(DAE& dae); 00139 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00140 }; 00141 00142 class domMinfilter; 00143 00144 typedef daeSmartRef<domMinfilter> domMinfilterRef; 00145 typedef daeTArray<domMinfilterRef> domMinfilter_Array; 00146 00147 class domMinfilter : public daeElement 00148 { 00149 public: 00150 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; } 00151 static daeInt ID() { return 159; } 00152 virtual daeInt typeID() const { return ID(); } 00153 00154 protected: // Value 00158 domFx_sampler_filter_common _value; 00159 00160 public: //Accessors and Mutators 00165 domFx_sampler_filter_common getValue() const { return _value; } 00170 void setValue( domFx_sampler_filter_common val ) { _value = val; } 00171 00172 protected: 00176 domMinfilter(DAE& dae) : daeElement(dae), _value() {} 00180 virtual ~domMinfilter() {} 00184 virtual domMinfilter &operator=( const domMinfilter &cpy ) { (void)cpy; return *this; } 00185 00186 public: // STATIC METHODS 00191 static DLLSPEC daeElementRef create(DAE& dae); 00197 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00198 }; 00199 00200 class domMagfilter; 00201 00202 typedef daeSmartRef<domMagfilter> domMagfilterRef; 00203 typedef daeTArray<domMagfilterRef> domMagfilter_Array; 00204 00205 class domMagfilter : public daeElement 00206 { 00207 public: 00208 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; } 00209 static daeInt ID() { return 160; } 00210 virtual daeInt typeID() const { return ID(); } 00211 00212 protected: // Value 00216 domFx_sampler_filter_common _value; 00217 00218 public: //Accessors and Mutators 00223 domFx_sampler_filter_common getValue() const { return _value; } 00228 void setValue( domFx_sampler_filter_common val ) { _value = val; } 00229 00230 protected: 00234 domMagfilter(DAE& dae) : daeElement(dae), _value() {} 00238 virtual ~domMagfilter() {} 00242 virtual domMagfilter &operator=( const domMagfilter &cpy ) { (void)cpy; return *this; } 00243 00244 public: // STATIC METHODS 00249 static DLLSPEC daeElementRef create(DAE& dae); 00255 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00256 }; 00257 00258 class domMipfilter; 00259 00260 typedef daeSmartRef<domMipfilter> domMipfilterRef; 00261 typedef daeTArray<domMipfilterRef> domMipfilter_Array; 00262 00263 class domMipfilter : public daeElement 00264 { 00265 public: 00266 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPFILTER; } 00267 static daeInt ID() { return 161; } 00268 virtual daeInt typeID() const { return ID(); } 00269 00270 protected: // Value 00274 domFx_sampler_filter_common _value; 00275 00276 public: //Accessors and Mutators 00281 domFx_sampler_filter_common getValue() const { return _value; } 00286 void setValue( domFx_sampler_filter_common val ) { _value = val; } 00287 00288 protected: 00292 domMipfilter(DAE& dae) : daeElement(dae), _value() {} 00296 virtual ~domMipfilter() {} 00300 virtual domMipfilter &operator=( const domMipfilter &cpy ) { (void)cpy; return *this; } 00301 00302 public: // STATIC METHODS 00307 static DLLSPEC daeElementRef create(DAE& dae); 00313 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00314 }; 00315 00316 class domMipmap_maxlevel; 00317 00318 typedef daeSmartRef<domMipmap_maxlevel> domMipmap_maxlevelRef; 00319 typedef daeTArray<domMipmap_maxlevelRef> domMipmap_maxlevel_Array; 00320 00321 class domMipmap_maxlevel : public daeElement 00322 { 00323 public: 00324 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_MAXLEVEL; } 00325 static daeInt ID() { return 162; } 00326 virtual daeInt typeID() const { return ID(); } 00327 00328 protected: // Value 00332 xsUnsignedByte _value; 00333 00334 public: //Accessors and Mutators 00339 xsUnsignedByte getValue() const { return _value; } 00344 void setValue( xsUnsignedByte val ) { _value = val; } 00345 00346 protected: 00350 domMipmap_maxlevel(DAE& dae) : daeElement(dae), _value() {} 00354 virtual ~domMipmap_maxlevel() {} 00358 virtual domMipmap_maxlevel &operator=( const domMipmap_maxlevel &cpy ) { (void)cpy; return *this; } 00359 00360 public: // STATIC METHODS 00365 static DLLSPEC daeElementRef create(DAE& dae); 00371 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00372 }; 00373 00374 class domMipmap_bias; 00375 00376 typedef daeSmartRef<domMipmap_bias> domMipmap_biasRef; 00377 typedef daeTArray<domMipmap_biasRef> domMipmap_bias_Array; 00378 00379 class domMipmap_bias : public daeElement 00380 { 00381 public: 00382 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_BIAS; } 00383 static daeInt ID() { return 163; } 00384 virtual daeInt typeID() const { return ID(); } 00385 00386 protected: // Value 00390 xsFloat _value; 00391 00392 public: //Accessors and Mutators 00397 xsFloat getValue() const { return _value; } 00402 void setValue( xsFloat val ) { _value = val; } 00403 00404 protected: 00408 domMipmap_bias(DAE& dae) : daeElement(dae), _value() {} 00412 virtual ~domMipmap_bias() {} 00416 virtual domMipmap_bias &operator=( const domMipmap_bias &cpy ) { (void)cpy; return *this; } 00417 00418 public: // STATIC METHODS 00423 static DLLSPEC daeElementRef create(DAE& dae); 00429 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00430 }; 00431 00432 00433 protected: // Attribute 00439 xsNCName attrSid; 00440 00441 protected: // Elements 00442 domWrap_sRef elemWrap_s; 00443 domWrap_tRef elemWrap_t; 00444 domMinfilterRef elemMinfilter; 00445 domMagfilterRef elemMagfilter; 00446 domMipfilterRef elemMipfilter; 00447 domMipmap_maxlevelRef elemMipmap_maxlevel; 00448 domMipmap_biasRef elemMipmap_bias; 00453 domExtra_Array elemExtra_array; 00454 00455 public: //Accessors and Mutators 00460 xsNCName getSid() const { return attrSid; } 00465 void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid;} 00466 00471 const domWrap_sRef getWrap_s() const { return elemWrap_s; } 00476 const domWrap_tRef getWrap_t() const { return elemWrap_t; } 00481 const domMinfilterRef getMinfilter() const { return elemMinfilter; } 00486 const domMagfilterRef getMagfilter() const { return elemMagfilter; } 00491 const domMipfilterRef getMipfilter() const { return elemMipfilter; } 00496 const domMipmap_maxlevelRef getMipmap_maxlevel() const { return elemMipmap_maxlevel; } 00501 const domMipmap_biasRef getMipmap_bias() const { return elemMipmap_bias; } 00506 domExtra_Array &getExtra_array() { return elemExtra_array; } 00511 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00512 protected: 00516 domGles_sampler_state_complexType(DAE& dae, daeElement* elt) : attrSid(), elemWrap_s(), elemWrap_t(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {} 00520 virtual ~domGles_sampler_state_complexType() {} 00524 virtual domGles_sampler_state_complexType &operator=( const domGles_sampler_state_complexType &cpy ) { (void)cpy; return *this; } 00525 }; 00526 00530 class domGles_sampler_state : public daeElement, public domGles_sampler_state_complexType 00531 { 00532 public: 00533 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_SAMPLER_STATE; } 00534 static daeInt ID() { return 164; } 00535 virtual daeInt typeID() const { return ID(); } 00536 00537 public: //Accessors and Mutators 00542 xsNCName getSid() const { return attrSid; } 00547 void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; } 00548 00549 protected: 00553 domGles_sampler_state(DAE& dae) : daeElement(dae), domGles_sampler_state_complexType(dae, this) {} 00557 virtual ~domGles_sampler_state() {} 00561 virtual domGles_sampler_state &operator=( const domGles_sampler_state &cpy ) { (void)cpy; return *this; } 00562 00563 public: // STATIC METHODS 00568 static DLLSPEC daeElementRef create(DAE& dae); 00574 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00575 }; 00576 00577 00578 #endif