00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __domProfile_GLES_h__
00010 #define __domProfile_GLES_h__
00011
00012 #include <dae/daeDocument.h>
00013 #include <dom/domTypes.h>
00014 #include <dom/domElements.h>
00015
00016 #include <dom/domFx_profile_abstract.h>
00017 #include <dom/domAsset.h>
00018 #include <dom/domImage.h>
00019 #include <dom/domExtra.h>
00020 #include <dom/domGles_newparam.h>
00021 #include <dom/domFx_annotate_common.h>
00022 #include <dom/domGles_basic_type_common.h>
00023 #include <dom/domGles_pipeline_settings.h>
00024 class DAE;
00025
00029 class domProfile_GLES : public domFx_profile_abstract
00030 {
00031 public:
00032 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PROFILE_GLES; }
00033 static daeInt ID() { return 756; }
00034 virtual daeInt typeID() const { return ID(); }
00035 public:
00036 class domTechnique;
00037
00038 typedef daeSmartRef<domTechnique> domTechniqueRef;
00039 typedef daeTArray<domTechniqueRef> domTechnique_Array;
00040
00045 class domTechnique : public daeElement
00046 {
00047 public:
00048 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE; }
00049 static daeInt ID() { return 757; }
00050 virtual daeInt typeID() const { return ID(); }
00051 public:
00052 class domSetparam;
00053
00054 typedef daeSmartRef<domSetparam> domSetparamRef;
00055 typedef daeTArray<domSetparamRef> domSetparam_Array;
00056
00057 class domSetparam : public daeElement
00058 {
00059 public:
00060 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SETPARAM; }
00061 static daeInt ID() { return 758; }
00062 virtual daeInt typeID() const { return ID(); }
00063 protected:
00064 xsNCName attrRef;
00065
00066 protected:
00067 domFx_annotate_common_Array elemAnnotate_array;
00068 domGles_basic_type_commonRef elemGles_basic_type_common;
00069
00070 public:
00075 xsNCName getRef() const { return attrRef; }
00080 void setRef( xsNCName atRef ) { *(daeStringRef*)&attrRef = atRef; _validAttributeArray[0] = true; }
00081
00086 domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; }
00091 const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; }
00096 const domGles_basic_type_commonRef getGles_basic_type_common() const { return elemGles_basic_type_common; }
00097 protected:
00101 domSetparam(DAE& dae) : daeElement(dae), attrRef(), elemAnnotate_array(), elemGles_basic_type_common() {}
00105 virtual ~domSetparam() {}
00109 virtual domSetparam &operator=( const domSetparam &cpy ) { (void)cpy; return *this; }
00110
00111 public:
00116 static DLLSPEC daeElementRef create(DAE& dae);
00122 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00123 };
00124
00125 class domPass;
00126
00127 typedef daeSmartRef<domPass> domPassRef;
00128 typedef daeTArray<domPassRef> domPass_Array;
00129
00134 class domPass : public daeElement
00135 {
00136 public:
00137 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PASS; }
00138 static daeInt ID() { return 759; }
00139 virtual daeInt typeID() const { return ID(); }
00140 public:
00141 class domColor_target;
00142
00143 typedef daeSmartRef<domColor_target> domColor_targetRef;
00144 typedef daeTArray<domColor_targetRef> domColor_target_Array;
00145
00146 class domColor_target : public daeElement
00147 {
00148 public:
00149 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLOR_TARGET; }
00150 static daeInt ID() { return 760; }
00151 virtual daeInt typeID() const { return ID(); }
00152
00153 protected:
00157 domGles_rendertarget_common _value;
00158
00159 public:
00164 domGles_rendertarget_common getValue() const { return _value; }
00169 void setValue( domGles_rendertarget_common val ) { _value = val; }
00170
00171 protected:
00175 domColor_target(DAE& dae) : daeElement(dae), _value() {}
00179 virtual ~domColor_target() {}
00183 virtual domColor_target &operator=( const domColor_target &cpy ) { (void)cpy; return *this; }
00184
00185 public:
00190 static DLLSPEC daeElementRef create(DAE& dae);
00196 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00197 };
00198
00199 class domDepth_target;
00200
00201 typedef daeSmartRef<domDepth_target> domDepth_targetRef;
00202 typedef daeTArray<domDepth_targetRef> domDepth_target_Array;
00203
00204 class domDepth_target : public daeElement
00205 {
00206 public:
00207 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEPTH_TARGET; }
00208 static daeInt ID() { return 761; }
00209 virtual daeInt typeID() const { return ID(); }
00210
00211 protected:
00215 domGles_rendertarget_common _value;
00216
00217 public:
00222 domGles_rendertarget_common getValue() const { return _value; }
00227 void setValue( domGles_rendertarget_common val ) { _value = val; }
00228
00229 protected:
00233 domDepth_target(DAE& dae) : daeElement(dae), _value() {}
00237 virtual ~domDepth_target() {}
00241 virtual domDepth_target &operator=( const domDepth_target &cpy ) { (void)cpy; return *this; }
00242
00243 public:
00248 static DLLSPEC daeElementRef create(DAE& dae);
00254 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00255 };
00256
00257 class domStencil_target;
00258
00259 typedef daeSmartRef<domStencil_target> domStencil_targetRef;
00260 typedef daeTArray<domStencil_targetRef> domStencil_target_Array;
00261
00262 class domStencil_target : public daeElement
00263 {
00264 public:
00265 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STENCIL_TARGET; }
00266 static daeInt ID() { return 762; }
00267 virtual daeInt typeID() const { return ID(); }
00268
00269 protected:
00273 domGles_rendertarget_common _value;
00274
00275 public:
00280 domGles_rendertarget_common getValue() const { return _value; }
00285 void setValue( domGles_rendertarget_common val ) { _value = val; }
00286
00287 protected:
00291 domStencil_target(DAE& dae) : daeElement(dae), _value() {}
00295 virtual ~domStencil_target() {}
00299 virtual domStencil_target &operator=( const domStencil_target &cpy ) { (void)cpy; return *this; }
00300
00301 public:
00306 static DLLSPEC daeElementRef create(DAE& dae);
00312 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00313 };
00314
00315 class domColor_clear;
00316
00317 typedef daeSmartRef<domColor_clear> domColor_clearRef;
00318 typedef daeTArray<domColor_clearRef> domColor_clear_Array;
00319
00320 class domColor_clear : public daeElement
00321 {
00322 public:
00323 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COLOR_CLEAR; }
00324 static daeInt ID() { return 763; }
00325 virtual daeInt typeID() const { return ID(); }
00326
00327 protected:
00331 domFx_color_common _value;
00332
00333 public:
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 domColor_clear(DAE& dae) : daeElement(dae), _value() {}
00358 virtual ~domColor_clear() {}
00362 virtual domColor_clear &operator=( const domColor_clear &cpy ) { (void)cpy; return *this; }
00363
00364 public:
00369 static DLLSPEC daeElementRef create(DAE& dae);
00375 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00376 };
00377
00378 class domDepth_clear;
00379
00380 typedef daeSmartRef<domDepth_clear> domDepth_clearRef;
00381 typedef daeTArray<domDepth_clearRef> domDepth_clear_Array;
00382
00383 class domDepth_clear : public daeElement
00384 {
00385 public:
00386 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DEPTH_CLEAR; }
00387 static daeInt ID() { return 764; }
00388 virtual daeInt typeID() const { return ID(); }
00389
00390 protected:
00394 domFloat _value;
00395
00396 public:
00401 domFloat getValue() const { return _value; }
00406 void setValue( domFloat val ) { _value = val; }
00407
00408 protected:
00412 domDepth_clear(DAE& dae) : daeElement(dae), _value() {}
00416 virtual ~domDepth_clear() {}
00420 virtual domDepth_clear &operator=( const domDepth_clear &cpy ) { (void)cpy; return *this; }
00421
00422 public:
00427 static DLLSPEC daeElementRef create(DAE& dae);
00433 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00434 };
00435
00436 class domStencil_clear;
00437
00438 typedef daeSmartRef<domStencil_clear> domStencil_clearRef;
00439 typedef daeTArray<domStencil_clearRef> domStencil_clear_Array;
00440
00441 class domStencil_clear : public daeElement
00442 {
00443 public:
00444 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STENCIL_CLEAR; }
00445 static daeInt ID() { return 765; }
00446 virtual daeInt typeID() const { return ID(); }
00447
00448 protected:
00452 xsByte _value;
00453
00454 public:
00459 xsByte getValue() const { return _value; }
00464 void setValue( xsByte val ) { _value = val; }
00465
00466 protected:
00470 domStencil_clear(DAE& dae) : daeElement(dae), _value() {}
00474 virtual ~domStencil_clear() {}
00478 virtual domStencil_clear &operator=( const domStencil_clear &cpy ) { (void)cpy; return *this; }
00479
00480 public:
00485 static DLLSPEC daeElementRef create(DAE& dae);
00491 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00492 };
00493
00494 class domDraw;
00495
00496 typedef daeSmartRef<domDraw> domDrawRef;
00497 typedef daeTArray<domDrawRef> domDraw_Array;
00498
00499 class domDraw : public daeElement
00500 {
00501 public:
00502 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DRAW; }
00503 static daeInt ID() { return 766; }
00504 virtual daeInt typeID() const { return ID(); }
00505
00506 protected:
00510 domFx_draw_common _value;
00511
00512 public:
00517 domFx_draw_common getValue() const { return _value; }
00522 void setValue( domFx_draw_common val ) { _value = val; }
00523
00524 protected:
00528 domDraw(DAE& dae) : daeElement(dae), _value() {}
00532 virtual ~domDraw() {}
00536 virtual domDraw &operator=( const domDraw &cpy ) { (void)cpy; return *this; }
00537
00538 public:
00543 static DLLSPEC daeElementRef create(DAE& dae);
00549 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00550 };
00551
00552
00553 protected:
00559 xsNCName attrSid;
00560
00561 protected:
00562 domFx_annotate_common_Array elemAnnotate_array;
00563 domColor_targetRef elemColor_target;
00564 domDepth_targetRef elemDepth_target;
00565 domStencil_targetRef elemStencil_target;
00566 domColor_clearRef elemColor_clear;
00567 domDepth_clearRef elemDepth_clear;
00568 domStencil_clearRef elemStencil_clear;
00569 domDrawRef elemDraw;
00570 domGles_pipeline_settings_Array elemGles_pipeline_settings_array;
00571 domExtra_Array elemExtra_array;
00575 daeElementRefArray _contents;
00579 daeUIntArray _contentsOrder;
00580
00584 daeTArray< daeCharArray * > _CMData;
00585
00586
00587 public:
00592 xsNCName getSid() const { return attrSid; }
00597 void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; }
00598
00603 domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; }
00608 const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; }
00613 const domColor_targetRef getColor_target() const { return elemColor_target; }
00618 const domDepth_targetRef getDepth_target() const { return elemDepth_target; }
00623 const domStencil_targetRef getStencil_target() const { return elemStencil_target; }
00628 const domColor_clearRef getColor_clear() const { return elemColor_clear; }
00633 const domDepth_clearRef getDepth_clear() const { return elemDepth_clear; }
00638 const domStencil_clearRef getStencil_clear() const { return elemStencil_clear; }
00643 const domDrawRef getDraw() const { return elemDraw; }
00648 domGles_pipeline_settings_Array &getGles_pipeline_settings_array() { return elemGles_pipeline_settings_array; }
00653 const domGles_pipeline_settings_Array &getGles_pipeline_settings_array() const { return elemGles_pipeline_settings_array; }
00658 domExtra_Array &getExtra_array() { return elemExtra_array; }
00663 const domExtra_Array &getExtra_array() const { return elemExtra_array; }
00668 daeElementRefArray &getContents() { return _contents; }
00673 const daeElementRefArray &getContents() const { return _contents; }
00674
00675 protected:
00679 domPass(DAE& dae) : daeElement(dae), attrSid(), elemAnnotate_array(), elemColor_target(), elemDepth_target(), elemStencil_target(), elemColor_clear(), elemDepth_clear(), elemStencil_clear(), elemDraw(), elemGles_pipeline_settings_array(), elemExtra_array() {}
00683 virtual ~domPass() { daeElement::deleteCMDataArray(_CMData); }
00687 virtual domPass &operator=( const domPass &cpy ) { (void)cpy; return *this; }
00688
00689 public:
00694 static DLLSPEC daeElementRef create(DAE& dae);
00700 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00701 };
00702
00703
00704 protected:
00705 xsID attrId;
00711 xsNCName attrSid;
00712
00713 protected:
00714 domAssetRef elemAsset;
00715 domFx_annotate_common_Array elemAnnotate_array;
00716 domImage_Array elemImage_array;
00717 domGles_newparam_Array elemNewparam_array;
00718 domSetparam_Array elemSetparam_array;
00723 domPass_Array elemPass_array;
00724 domExtra_Array elemExtra_array;
00728 daeElementRefArray _contents;
00732 daeUIntArray _contentsOrder;
00733
00737 daeTArray< daeCharArray * > _CMData;
00738
00739
00740 public:
00745 xsID getId() const { return attrId; }
00750 void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
00751 if( _document != NULL ) _document->changeElementID( this, attrId );
00752 }
00753
00758 xsNCName getSid() const { return attrSid; }
00763 void setSid( xsNCName atSid ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[1] = true; }
00764
00769 const domAssetRef getAsset() const { return elemAsset; }
00774 domFx_annotate_common_Array &getAnnotate_array() { return elemAnnotate_array; }
00779 const domFx_annotate_common_Array &getAnnotate_array() const { return elemAnnotate_array; }
00784 domImage_Array &getImage_array() { return elemImage_array; }
00789 const domImage_Array &getImage_array() const { return elemImage_array; }
00794 domGles_newparam_Array &getNewparam_array() { return elemNewparam_array; }
00799 const domGles_newparam_Array &getNewparam_array() const { return elemNewparam_array; }
00804 domSetparam_Array &getSetparam_array() { return elemSetparam_array; }
00809 const domSetparam_Array &getSetparam_array() const { return elemSetparam_array; }
00814 domPass_Array &getPass_array() { return elemPass_array; }
00819 const domPass_Array &getPass_array() const { return elemPass_array; }
00824 domExtra_Array &getExtra_array() { return elemExtra_array; }
00829 const domExtra_Array &getExtra_array() const { return elemExtra_array; }
00834 daeElementRefArray &getContents() { return _contents; }
00839 const daeElementRefArray &getContents() const { return _contents; }
00840
00841 protected:
00845 domTechnique(DAE& dae) : daeElement(dae), attrId(), attrSid(), elemAsset(), elemAnnotate_array(), elemImage_array(), elemNewparam_array(), elemSetparam_array(), elemPass_array(), elemExtra_array() {}
00849 virtual ~domTechnique() { daeElement::deleteCMDataArray(_CMData); }
00853 virtual domTechnique &operator=( const domTechnique &cpy ) { (void)cpy; return *this; }
00854
00855 public:
00860 static DLLSPEC daeElementRef create(DAE& dae);
00866 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00867 };
00868
00869
00870 protected:
00876 xsID attrId;
00881 xsNCName attrPlatform;
00882
00883 protected:
00884 domAssetRef elemAsset;
00885 domImage_Array elemImage_array;
00886 domGles_newparam_Array elemNewparam_array;
00891 domTechnique_Array elemTechnique_array;
00892 domExtra_Array elemExtra_array;
00896 daeElementRefArray _contents;
00900 daeUIntArray _contentsOrder;
00901
00905 daeTArray< daeCharArray * > _CMData;
00906
00907
00908 public:
00913 xsID getId() const { return attrId; }
00918 void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
00919 if( _document != NULL ) _document->changeElementID( this, attrId );
00920 }
00921
00926 xsNCName getPlatform() const { return attrPlatform; }
00931 void setPlatform( xsNCName atPlatform ) { *(daeStringRef*)&attrPlatform = atPlatform; _validAttributeArray[1] = true; }
00932
00937 const domAssetRef getAsset() const { return elemAsset; }
00942 domImage_Array &getImage_array() { return elemImage_array; }
00947 const domImage_Array &getImage_array() const { return elemImage_array; }
00952 domGles_newparam_Array &getNewparam_array() { return elemNewparam_array; }
00957 const domGles_newparam_Array &getNewparam_array() const { return elemNewparam_array; }
00962 domTechnique_Array &getTechnique_array() { return elemTechnique_array; }
00967 const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; }
00972 domExtra_Array &getExtra_array() { return elemExtra_array; }
00977 const domExtra_Array &getExtra_array() const { return elemExtra_array; }
00982 daeElementRefArray &getContents() { return _contents; }
00987 const daeElementRefArray &getContents() const { return _contents; }
00988
00989 protected:
00993 domProfile_GLES(DAE& dae) : domFx_profile_abstract(dae), attrId(), attrPlatform(), elemAsset(), elemImage_array(), elemNewparam_array(), elemTechnique_array(), elemExtra_array() {}
00997 virtual ~domProfile_GLES() { daeElement::deleteCMDataArray(_CMData); }
01001 virtual domProfile_GLES &operator=( const domProfile_GLES &cpy ) { (void)cpy; return *this; }
01002
01003 public:
01008 static DLLSPEC daeElementRef create(DAE& dae);
01014 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
01015 };
01016
01017
01018 #endif