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_samplerRECT_common_h__ 00010 #define __domFx_samplerRECT_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_samplerRECT_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 69; } 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 70; } 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 domWrap_t; 00142 00143 typedef daeSmartRef<domWrap_t> domWrap_tRef; 00144 typedef daeTArray<domWrap_tRef> domWrap_t_Array; 00145 00146 class domWrap_t : public daeElement 00147 { 00148 public: 00149 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::WRAP_T; } 00150 static daeInt ID() { return 71; } 00151 virtual daeInt typeID() const { return ID(); } 00152 00153 protected: // Value 00157 domFx_sampler_wrap_common _value; 00158 00159 public: //Accessors and Mutators 00164 domFx_sampler_wrap_common getValue() const { return _value; } 00169 void setValue( domFx_sampler_wrap_common val ) { _value = val; } 00170 00171 protected: 00175 domWrap_t(DAE& dae) : daeElement(dae), _value() {} 00179 virtual ~domWrap_t() {} 00183 virtual domWrap_t &operator=( const domWrap_t &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 domMinfilter; 00200 00201 typedef daeSmartRef<domMinfilter> domMinfilterRef; 00202 typedef daeTArray<domMinfilterRef> domMinfilter_Array; 00203 00204 class domMinfilter : public daeElement 00205 { 00206 public: 00207 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MINFILTER; } 00208 static daeInt ID() { return 72; } 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 domMinfilter(DAE& dae) : daeElement(dae), _value() {} 00237 virtual ~domMinfilter() {} 00241 virtual domMinfilter &operator=( const domMinfilter &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 domMagfilter; 00258 00259 typedef daeSmartRef<domMagfilter> domMagfilterRef; 00260 typedef daeTArray<domMagfilterRef> domMagfilter_Array; 00261 00262 class domMagfilter : public daeElement 00263 { 00264 public: 00265 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MAGFILTER; } 00266 static daeInt ID() { return 73; } 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 domMagfilter(DAE& dae) : daeElement(dae), _value() {} 00295 virtual ~domMagfilter() {} 00299 virtual domMagfilter &operator=( const domMagfilter &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 domMipfilter; 00316 00317 typedef daeSmartRef<domMipfilter> domMipfilterRef; 00318 typedef daeTArray<domMipfilterRef> domMipfilter_Array; 00319 00320 class domMipfilter : public daeElement 00321 { 00322 public: 00323 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPFILTER; } 00324 static daeInt ID() { return 74; } 00325 virtual daeInt typeID() const { return ID(); } 00326 00327 protected: // Value 00331 domFx_sampler_filter_common _value; 00332 00333 public: //Accessors and Mutators 00338 domFx_sampler_filter_common getValue() const { return _value; } 00343 void setValue( domFx_sampler_filter_common val ) { _value = val; } 00344 00345 protected: 00349 domMipfilter(DAE& dae) : daeElement(dae), _value() {} 00353 virtual ~domMipfilter() {} 00357 virtual domMipfilter &operator=( const domMipfilter &cpy ) { (void)cpy; return *this; } 00358 00359 public: // STATIC METHODS 00364 static DLLSPEC daeElementRef create(DAE& dae); 00370 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00371 }; 00372 00373 class domBorder_color; 00374 00375 typedef daeSmartRef<domBorder_color> domBorder_colorRef; 00376 typedef daeTArray<domBorder_colorRef> domBorder_color_Array; 00377 00378 class domBorder_color : public daeElement 00379 { 00380 public: 00381 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BORDER_COLOR; } 00382 static daeInt ID() { return 75; } 00383 virtual daeInt typeID() const { return ID(); } 00384 00385 protected: // Value 00389 domFx_color_common _value; 00390 00391 public: //Accessors and Mutators 00396 domFx_color_common &getValue() { return _value; } 00401 const domFx_color_common &getValue() const { return _value; } 00406 void setValue( const domFx_color_common &val ) { _value = val; } 00407 00408 protected: 00412 domBorder_color(DAE& dae) : daeElement(dae), _value() {} 00416 virtual ~domBorder_color() {} 00420 virtual domBorder_color &operator=( const domBorder_color &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_maxlevel; 00437 00438 typedef daeSmartRef<domMipmap_maxlevel> domMipmap_maxlevelRef; 00439 typedef daeTArray<domMipmap_maxlevelRef> domMipmap_maxlevel_Array; 00440 00441 class domMipmap_maxlevel : public daeElement 00442 { 00443 public: 00444 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_MAXLEVEL; } 00445 static daeInt ID() { return 76; } 00446 virtual daeInt typeID() const { return ID(); } 00447 00448 protected: // Value 00452 xsUnsignedByte _value; 00453 00454 public: //Accessors and Mutators 00459 xsUnsignedByte getValue() const { return _value; } 00464 void setValue( xsUnsignedByte val ) { _value = val; } 00465 00466 protected: 00470 domMipmap_maxlevel(DAE& dae) : daeElement(dae), _value() {} 00474 virtual ~domMipmap_maxlevel() {} 00478 virtual domMipmap_maxlevel &operator=( const domMipmap_maxlevel &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 class domMipmap_bias; 00495 00496 typedef daeSmartRef<domMipmap_bias> domMipmap_biasRef; 00497 typedef daeTArray<domMipmap_biasRef> domMipmap_bias_Array; 00498 00499 class domMipmap_bias : public daeElement 00500 { 00501 public: 00502 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MIPMAP_BIAS; } 00503 static daeInt ID() { return 77; } 00504 virtual daeInt typeID() const { return ID(); } 00505 00506 protected: // Value 00510 xsFloat _value; 00511 00512 public: //Accessors and Mutators 00517 xsFloat getValue() const { return _value; } 00522 void setValue( xsFloat val ) { _value = val; } 00523 00524 protected: 00528 domMipmap_bias(DAE& dae) : daeElement(dae), _value() {} 00532 virtual ~domMipmap_bias() {} 00536 virtual domMipmap_bias &operator=( const domMipmap_bias &cpy ) { (void)cpy; return *this; } 00537 00538 public: // STATIC METHODS 00543 static DLLSPEC daeElementRef create(DAE& dae); 00549 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00550 }; 00551 00552 00553 00554 protected: // Elements 00555 domSourceRef elemSource; 00556 domWrap_sRef elemWrap_s; 00557 domWrap_tRef elemWrap_t; 00558 domMinfilterRef elemMinfilter; 00559 domMagfilterRef elemMagfilter; 00560 domMipfilterRef elemMipfilter; 00561 domBorder_colorRef elemBorder_color; 00562 domMipmap_maxlevelRef elemMipmap_maxlevel; 00563 domMipmap_biasRef elemMipmap_bias; 00564 domExtra_Array elemExtra_array; 00565 00566 public: //Accessors and Mutators 00571 const domSourceRef getSource() const { return elemSource; } 00576 const domWrap_sRef getWrap_s() const { return elemWrap_s; } 00581 const domWrap_tRef getWrap_t() const { return elemWrap_t; } 00586 const domMinfilterRef getMinfilter() const { return elemMinfilter; } 00591 const domMagfilterRef getMagfilter() const { return elemMagfilter; } 00596 const domMipfilterRef getMipfilter() const { return elemMipfilter; } 00601 const domBorder_colorRef getBorder_color() const { return elemBorder_color; } 00606 const domMipmap_maxlevelRef getMipmap_maxlevel() const { return elemMipmap_maxlevel; } 00611 const domMipmap_biasRef getMipmap_bias() const { return elemMipmap_bias; } 00616 domExtra_Array &getExtra_array() { return elemExtra_array; } 00621 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00622 protected: 00626 domFx_samplerRECT_common_complexType(DAE& dae, daeElement* elt) : elemSource(), elemWrap_s(), elemWrap_t(), elemMinfilter(), elemMagfilter(), elemMipfilter(), elemBorder_color(), elemMipmap_maxlevel(), elemMipmap_bias(), elemExtra_array() {} 00630 virtual ~domFx_samplerRECT_common_complexType() {} 00634 virtual domFx_samplerRECT_common_complexType &operator=( const domFx_samplerRECT_common_complexType &cpy ) { (void)cpy; return *this; } 00635 }; 00636 00640 class domFx_samplerRECT_common : public daeElement, public domFx_samplerRECT_common_complexType 00641 { 00642 public: 00643 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SAMPLERRECT_COMMON; } 00644 static daeInt ID() { return 78; } 00645 virtual daeInt typeID() const { return ID(); } 00646 protected: 00650 domFx_samplerRECT_common(DAE& dae) : daeElement(dae), domFx_samplerRECT_common_complexType(dae, this) {} 00654 virtual ~domFx_samplerRECT_common() {} 00658 virtual domFx_samplerRECT_common &operator=( const domFx_samplerRECT_common &cpy ) { (void)cpy; return *this; } 00659 00660 public: // STATIC METHODS 00665 static DLLSPEC daeElementRef create(DAE& dae); 00671 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00672 }; 00673 00674 00675 #endif