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 __domFx_sampler1D_common_h__ 00010 #define __domFx_sampler1D_common_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 00022 class domFx_sampler1D_common_complexType 00023 { 00024 public: 00025 class domSource; 00026 00027 typedef daeSmartRef<domSource> domSourceRef; 00028 typedef daeTArray<domSourceRef> domSource_Array; 00029 00030 class domSource : public daeElement 00031 { 00032 public: 00033 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE; } 00034 static daeInt ID() { return 28; } 00035 virtual daeInt typeID() const { return ID(); } 00036 00037 protected: // Value 00041 xsNCName _value; 00042 00043 public: //Accessors and Mutators 00048 xsNCName getValue() const { return _value; } 00053 void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } 00054 00055 protected: 00059 domSource(DAE& dae) : daeElement(dae), _value() {} 00063 virtual ~domSource() {} 00067 virtual domSource &operator=( const domSource &cpy ) { (void)cpy; return *this; } 00068 00069 public: // STATIC METHODS 00074 static DLLSPEC daeElementRef create(DAE& dae); 00080 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00081 }; 00082 00083 class domWrap_s; 00084 00085 typedef daeSmartRef<domWrap_s> domWrap_sRef; 00086 typedef daeTArray<domWrap_sRef> domWrap_s_Array; 00087 00088 class domWrap_s : public daeElement 00089 { 00090 public: 00091 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_S; } 00092 static daeInt ID() { return 29; } 00093 virtual daeInt typeID() const { return ID(); } 00094 00095 protected: // Value 00099 domFx_sampler_wrap_common _value; 00100 00101 public: //Accessors and Mutators 00106 domFx_sampler_wrap_common getValue() const { return _value; } 00111 void setValue( domFx_sampler_wrap_common val ) { _value = val; } 00112 00113 protected: 00117 domWrap_s(DAE& dae) : daeElement(dae), _value() {} 00121 virtual ~domWrap_s() {} 00125 virtual domWrap_s &operator=( const domWrap_s &cpy ) { (void)cpy; return *this; } 00126 00127 public: // STATIC METHODS 00132 static DLLSPEC daeElementRef create(DAE& dae); 00138 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00139 }; 00140 00141 class domMinfilter; 00142 00143 typedef daeSmartRef<domMinfilter> domMinfilterRef; 00144 typedef daeTArray<domMinfilterRef> domMinfilter_Array; 00145 00146 class domMinfilter : public daeElement 00147 { 00148 public: 00149 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; } 00150 static daeInt ID() { return 30; } 00151 virtual daeInt typeID() const { return ID(); } 00152 00153 protected: // Value 00157 domFx_sampler_filter_common _value; 00158 00159 public: //Accessors and Mutators 00164 domFx_sampler_filter_common getValue() const { return _value; } 00169 void setValue( domFx_sampler_filter_common val ) { _value = val; } 00170 00171 protected: 00175 domMinfilter(DAE& dae) : daeElement(dae), _value() {} 00179 virtual ~domMinfilter() {} 00183 virtual domMinfilter &operator=( const domMinfilter &cpy ) { (void)cpy; return *this; } 00184 00185 public: // STATIC METHODS 00190 static DLLSPEC daeElementRef create(DAE& dae); 00196 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00197 }; 00198 00199 class domMagfilter; 00200 00201 typedef daeSmartRef<domMagfilter> domMagfilterRef; 00202 typedef daeTArray<domMagfilterRef> domMagfilter_Array; 00203 00204 class domMagfilter : public daeElement 00205 { 00206 public: 00207 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; } 00208 static daeInt ID() { return 31; } 00209 virtual daeInt typeID() const { return ID(); } 00210 00211 protected: // Value 00215 domFx_sampler_filter_common _value; 00216 00217 public: //Accessors and Mutators 00222 domFx_sampler_filter_common getValue() const { return _value; } 00227 void setValue( domFx_sampler_filter_common val ) { _value = val; } 00228 00229 protected: 00233 domMagfilter(DAE& dae) : daeElement(dae), _value() {} 00237 virtual ~domMagfilter() {} 00241 virtual domMagfilter &operator=( const domMagfilter &cpy ) { (void)cpy; return *this; } 00242 00243 public: // STATIC METHODS 00248 static DLLSPEC daeElementRef create(DAE& dae); 00254 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00255 }; 00256 00257 class domMipfilter; 00258 00259 typedef daeSmartRef<domMipfilter> domMipfilterRef; 00260 typedef daeTArray<domMipfilterRef> domMipfilter_Array; 00261 00262 class domMipfilter : public daeElement 00263 { 00264 public: 00265 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPFILTER; } 00266 static daeInt ID() { return 32; } 00267 virtual daeInt typeID() const { return ID(); } 00268 00269 protected: // Value 00273 domFx_sampler_filter_common _value; 00274 00275 public: //Accessors and Mutators 00280 domFx_sampler_filter_common getValue() const { return _value; } 00285 void setValue( domFx_sampler_filter_common val ) { _value = val; } 00286 00287 protected: 00291 domMipfilter(DAE& dae) : daeElement(dae), _value() {} 00295 virtual ~domMipfilter() {} 00299 virtual domMipfilter &operator=( const domMipfilter &cpy ) { (void)cpy; return *this; } 00300 00301 public: // STATIC METHODS 00306 static DLLSPEC daeElementRef create(DAE& dae); 00312 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00313 }; 00314 00315 class domBorder_color; 00316 00317 typedef daeSmartRef<domBorder_color> domBorder_colorRef; 00318 typedef daeTArray<domBorder_colorRef> domBorder_color_Array; 00319 00320 class domBorder_color : public daeElement 00321 { 00322 public: 00323 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BORDER_COLOR; } 00324 static daeInt ID() { return 33; } 00325 virtual daeInt typeID() const { return ID(); } 00326 00327 protected: // Value 00331 domFx_color_common _value; 00332 00333 public: //Accessors and Mutators 00338 domFx_color_common &getValue() { return _value; } 00343 const domFx_color_common &getValue() const { return _value; } 00348 void setValue( const domFx_color_common &val ) { _value = val; } 00349 00350 protected: 00354 domBorder_color(DAE& dae) : daeElement(dae), _value() {} 00358 virtual ~domBorder_color() {} 00362 virtual domBorder_color &operator=( const domBorder_color &cpy ) { (void)cpy; return *this; } 00363 00364 public: // STATIC METHODS 00369 static DLLSPEC daeElementRef create(DAE& dae); 00375 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00376 }; 00377 00378 class domMipmap_maxlevel; 00379 00380 typedef daeSmartRef<domMipmap_maxlevel> domMipmap_maxlevelRef; 00381 typedef daeTArray<domMipmap_maxlevelRef> domMipmap_maxlevel_Array; 00382 00383 class domMipmap_maxlevel : public daeElement 00384 { 00385 public: 00386 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_MAXLEVEL; } 00387 static daeInt ID() { return 34; } 00388 virtual daeInt typeID() const { return ID(); } 00389 00390 protected: // Value 00394 xsUnsignedByte _value; 00395 00396 public: //Accessors and Mutators 00401 xsUnsignedByte getValue() const { return _value; } 00406 void setValue( xsUnsignedByte val ) { _value = val; } 00407 00408 protected: 00412 domMipmap_maxlevel(DAE& dae) : daeElement(dae), _value() {} 00416 virtual ~domMipmap_maxlevel() {} 00420 virtual domMipmap_maxlevel &operator=( const domMipmap_maxlevel &cpy ) { (void)cpy; return *this; } 00421 00422 public: // STATIC METHODS 00427 static DLLSPEC daeElementRef create(DAE& dae); 00433 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00434 }; 00435 00436 class domMipmap_bias; 00437 00438 typedef daeSmartRef<domMipmap_bias> domMipmap_biasRef; 00439 typedef daeTArray<domMipmap_biasRef> domMipmap_bias_Array; 00440 00441 class domMipmap_bias : public daeElement 00442 { 00443 public: 00444 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_BIAS; } 00445 static daeInt ID() { return 35; } 00446 virtual daeInt typeID() const { return ID(); } 00447 00448 protected: // Value 00452 xsFloat _value; 00453 00454 public: //Accessors and Mutators 00459 xsFloat getValue() const { return _value; } 00464 void setValue( xsFloat val ) { _value = val; } 00465 00466 protected: 00470 domMipmap_bias(DAE& dae) : daeElement(dae), _value() {} 00474 virtual ~domMipmap_bias() {} 00478 virtual domMipmap_bias &operator=( const domMipmap_bias &cpy ) { (void)cpy; return *this; } 00479 00480 public: // STATIC METHODS 00485 static DLLSPEC daeElementRef create(DAE& dae); 00491 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00492 }; 00493 00494 00495 00496 protected: // Elements 00497 domSourceRef elemSource; 00498 domWrap_sRef elemWrap_s; 00499 domMinfilterRef elemMinfilter; 00500 domMagfilterRef elemMagfilter; 00501 domMipfilterRef elemMipfilter; 00502 domBorder_colorRef elemBorder_color; 00503 domMipmap_maxlevelRef elemMipmap_maxlevel; 00504 domMipmap_biasRef elemMipmap_bias; 00505 domExtra_Array elemExtra_array; 00506 00507 public: //Accessors and Mutators 00512 const domSourceRef getSource() const { return elemSource; } 00517 const domWrap_sRef getWrap_s() const { return elemWrap_s; } 00522 const domMinfilterRef getMinfilter() const { return elemMinfilter; } 00527 const domMagfilterRef getMagfilter() const { return elemMagfilter; } 00532 const domMipfilterRef getMipfilter() const { return elemMipfilter; } 00537 const domBorder_colorRef getBorder_color() const { return elemBorder_color; } 00542 const domMipmap_maxlevelRef getMipmap_maxlevel() const { return elemMipmap_maxlevel; } 00547 const domMipmap_biasRef getMipmap_bias() const { return elemMipmap_bias; } 00552 domExtra_Array &getExtra_array() { return elemExtra_array; } 00557 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00558 protected: 00562 domFx_sampler1D_common_complexType(DAE& dae, daeElement* elt) : elemSource(), elemWrap_s(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {} 00566 virtual ~domFx_sampler1D_common_complexType() {} 00570 virtual domFx_sampler1D_common_complexType &operator=( const domFx_sampler1D_common_complexType &cpy ) { (void)cpy; return *this; } 00571 }; 00572 00576 class domFx_sampler1D_common : public daeElement, public domFx_sampler1D_common_complexType 00577 { 00578 public: 00579 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SAMPLER1D_COMMON; } 00580 static daeInt ID() { return 36; } 00581 virtual daeInt typeID() const { return ID(); } 00582 protected: 00586 domFx_sampler1D_common(DAE& dae) : daeElement(dae), domFx_sampler1D_common_complexType(dae, this) {} 00590 virtual ~domFx_sampler1D_common() {} 00594 virtual domFx_sampler1D_common &operator=( const domFx_sampler1D_common &cpy ) { (void)cpy; return *this; } 00595 00596 public: // STATIC METHODS 00601 static DLLSPEC daeElementRef create(DAE& dae); 00607 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00608 }; 00609 00610 00611 #endif