00001 #ifndef __domProfile_glsl_h__
00002 #define __domProfile_glsl_h__
00003
00004 #include <dae/daeDocument.h>
00005 #include <dom/domTypes.h>
00006 #include <dom/domElements.h>
00007
00008 #include <dom/domAsset.h>
00009 #include <dom/domFx_code.h>
00010 #include <dom/domFx_include.h>
00011 #include <dom/domGlsl_newparam.h>
00012 #include <dom/domFx_annotate.h>
00013 #include <dom/domGl_pipeline_settings.h>
00014 #include <dom/domGlsl_program.h>
00015 #include <dom/domFx_colortarget.h>
00016 #include <dom/domFx_depthtarget.h>
00017 #include <dom/domFx_stenciltarget.h>
00018 #include <dom/domFx_clearcolor.h>
00019 #include <dom/domFx_cleardepth.h>
00020 #include <dom/domFx_clearstencil.h>
00021 #include <dom/domExtra.h>
00022 class DAE;
00023
00027 class domProfile_glsl : public daeElement
00028 {
00029 public:
00030 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PROFILE_GLSL; }
00031 static daeInt ID() { return 237; }
00032 virtual daeInt typeID() const { return ID(); }
00033 public:
00034 class domTechnique;
00035
00036 typedef daeSmartRef<domTechnique> domTechniqueRef;
00037 typedef daeTArray<domTechniqueRef> domTechnique_Array;
00038
00043 class domTechnique : public daeElement
00044 {
00045 public:
00046 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TECHNIQUE; }
00047 static daeInt ID() { return 238; }
00048 virtual daeInt typeID() const { return ID(); }
00049 public:
00050 class domPass;
00051
00052 typedef daeSmartRef<domPass> domPassRef;
00053 typedef daeTArray<domPassRef> domPass_Array;
00054
00059 class domPass : public daeElement
00060 {
00061 public:
00062 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::PASS; }
00063 static daeInt ID() { return 239; }
00064 virtual daeInt typeID() const { return ID(); }
00065 public:
00066 class domStates;
00067
00068 typedef daeSmartRef<domStates> domStatesRef;
00069 typedef daeTArray<domStatesRef> domStates_Array;
00070
00071 class domStates : public daeElement
00072 {
00073 public:
00074 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::STATES; }
00075 static daeInt ID() { return 240; }
00076 virtual daeInt typeID() const { return ID(); }
00077
00078 protected:
00079 domGl_pipeline_settings_Array elemGl_pipeline_settings_array;
00080
00081 public:
00086 domGl_pipeline_settings_Array &getGl_pipeline_settings_array() { return elemGl_pipeline_settings_array; }
00091 const domGl_pipeline_settings_Array &getGl_pipeline_settings_array() const { return elemGl_pipeline_settings_array; }
00092 protected:
00096 domStates(DAE& dae) : daeElement(dae), elemGl_pipeline_settings_array() {}
00100 virtual ~domStates() {}
00104 virtual domStates &operator=( const domStates &cpy ) { (void)cpy; return *this; }
00105
00106 public:
00111 static DLLSPEC daeElementRef create(DAE& dae);
00117 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00118 };
00119
00120 class domEvaluate;
00121
00122 typedef daeSmartRef<domEvaluate> domEvaluateRef;
00123 typedef daeTArray<domEvaluateRef> domEvaluate_Array;
00124
00125 class domEvaluate : public daeElement
00126 {
00127 public:
00128 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::EVALUATE; }
00129 static daeInt ID() { return 241; }
00130 virtual daeInt typeID() const { return ID(); }
00131 public:
00132 class domDraw;
00133
00134 typedef daeSmartRef<domDraw> domDrawRef;
00135 typedef daeTArray<domDrawRef> domDraw_Array;
00136
00137 class domDraw : public daeElement
00138 {
00139 public:
00140 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::DRAW; }
00141 static daeInt ID() { return 242; }
00142 virtual daeInt typeID() const { return ID(); }
00143
00144
00145 public:
00150 domFx_draw& getValue() { return _value; }
00155 void setValue( const domFx_draw& val ) { _value = val; }
00156
00157 protected:
00161 domFx_draw _value;
00162 protected:
00166 domDraw(DAE& dae) : daeElement(dae), _value() {}
00170 virtual ~domDraw() {}
00174 virtual domDraw &operator=( const domDraw &cpy ) { (void)cpy; return *this; }
00175
00176 public:
00181 static DLLSPEC daeElementRef create(DAE& dae);
00187 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00188 };
00189
00190
00191
00192 protected:
00193 domFx_colortarget_Array elemColor_target_array;
00194 domFx_depthtarget_Array elemDepth_target_array;
00195 domFx_stenciltarget_Array elemStencil_target_array;
00196 domFx_clearcolor_Array elemColor_clear_array;
00197 domFx_cleardepth_Array elemDepth_clear_array;
00198 domFx_clearstencil_Array elemStencil_clear_array;
00199 domDrawRef elemDraw;
00200
00201 public:
00206 domFx_colortarget_Array &getColor_target_array() { return elemColor_target_array; }
00211 const domFx_colortarget_Array &getColor_target_array() const { return elemColor_target_array; }
00216 domFx_depthtarget_Array &getDepth_target_array() { return elemDepth_target_array; }
00221 const domFx_depthtarget_Array &getDepth_target_array() const { return elemDepth_target_array; }
00226 domFx_stenciltarget_Array &getStencil_target_array() { return elemStencil_target_array; }
00231 const domFx_stenciltarget_Array &getStencil_target_array() const { return elemStencil_target_array; }
00236 domFx_clearcolor_Array &getColor_clear_array() { return elemColor_clear_array; }
00241 const domFx_clearcolor_Array &getColor_clear_array() const { return elemColor_clear_array; }
00246 domFx_cleardepth_Array &getDepth_clear_array() { return elemDepth_clear_array; }
00251 const domFx_cleardepth_Array &getDepth_clear_array() const { return elemDepth_clear_array; }
00256 domFx_clearstencil_Array &getStencil_clear_array() { return elemStencil_clear_array; }
00261 const domFx_clearstencil_Array &getStencil_clear_array() const { return elemStencil_clear_array; }
00266 const domDrawRef getDraw() const { return elemDraw; }
00267 protected:
00271 domEvaluate(DAE& dae) : daeElement(dae), elemColor_target_array(), elemDepth_target_array(), elemStencil_target_array(), elemColor_clear_array(), elemDepth_clear_array(), elemStencil_clear_array(), elemDraw() {}
00275 virtual ~domEvaluate() {}
00279 virtual domEvaluate &operator=( const domEvaluate &cpy ) { (void)cpy; return *this; }
00280
00281 public:
00286 static DLLSPEC daeElementRef create(DAE& dae);
00292 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00293 };
00294
00295
00296 protected:
00302 domSid attrSid;
00303
00304 protected:
00305 domFx_annotate_Array elemAnnotate_array;
00306 domStatesRef elemStates;
00307 domGlsl_programRef elemProgram;
00308 domEvaluateRef elemEvaluate;
00309 domExtra_Array elemExtra_array;
00310
00311 public:
00316 domSid getSid() const { return attrSid; }
00321 void setSid( domSid atSid ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[0] = true; }
00322
00327 domFx_annotate_Array &getAnnotate_array() { return elemAnnotate_array; }
00332 const domFx_annotate_Array &getAnnotate_array() const { return elemAnnotate_array; }
00337 const domStatesRef getStates() const { return elemStates; }
00342 const domGlsl_programRef getProgram() const { return elemProgram; }
00347 const domEvaluateRef getEvaluate() const { return elemEvaluate; }
00352 domExtra_Array &getExtra_array() { return elemExtra_array; }
00357 const domExtra_Array &getExtra_array() const { return elemExtra_array; }
00358 protected:
00362 domPass(DAE& dae) : daeElement(dae), attrSid(), elemAnnotate_array(), elemStates(), elemProgram(), elemEvaluate(), elemExtra_array() {}
00366 virtual ~domPass() {}
00370 virtual domPass &operator=( const domPass &cpy ) { (void)cpy; return *this; }
00371
00372 public:
00377 static DLLSPEC daeElementRef create(DAE& dae);
00383 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00384 };
00385
00386
00387 protected:
00393 xsID attrId;
00399 domSid attrSid;
00400
00401 protected:
00402 domAssetRef elemAsset;
00403 domFx_annotate_Array elemAnnotate_array;
00408 domPass_Array elemPass_array;
00409 domExtra_Array elemExtra_array;
00410
00411 public:
00416 xsID getId() const { return attrId; }
00421 void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true;
00422 if( _document != NULL ) _document->changeElementID( this, attrId );
00423 }
00424
00429 domSid getSid() const { return attrSid; }
00434 void setSid( domSid atSid ) { *(daeStringRef*)&attrSid = atSid; _validAttributeArray[1] = true; }
00435
00440 const domAssetRef getAsset() const { return elemAsset; }
00445 domFx_annotate_Array &getAnnotate_array() { return elemAnnotate_array; }
00450 const domFx_annotate_Array &getAnnotate_array() const { return elemAnnotate_array; }
00455 domPass_Array &getPass_array() { return elemPass_array; }
00460 const domPass_Array &getPass_array() const { return elemPass_array; }
00465 domExtra_Array &getExtra_array() { return elemExtra_array; }
00470 const domExtra_Array &getExtra_array() const { return elemExtra_array; }
00471 protected:
00475 domTechnique(DAE& dae) : daeElement(dae), attrId(), attrSid(), elemAsset(), elemAnnotate_array(), elemPass_array(), elemExtra_array() {}
00479 virtual ~domTechnique() {}
00483 virtual domTechnique &operator=( const domTechnique &cpy ) { (void)cpy; return *this; }
00484
00485 public:
00490 static DLLSPEC daeElementRef create(DAE& dae);
00496 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00497 };
00498
00499
00500 protected:
00506 xsID attrId;
00511 xsNCName attrPlatform;
00512
00513 protected:
00514 domAssetRef elemAsset;
00515 domFx_code_Array elemCode_array;
00516 domFx_include_Array elemInclude_array;
00517 domGlsl_newparam_Array elemNewparam_array;
00522 domTechnique_Array elemTechnique_array;
00523 domExtra_Array elemExtra_array;
00527 daeElementRefArray _contents;
00531 daeUIntArray _contentsOrder;
00532
00536 daeTArray< daeCharArray * > _CMData;
00537
00538
00539 public:
00544 xsID getId() const { return attrId; }
00549 void setId( xsID atId ) { *(daeStringRef*)&attrId = atId;
00550 if( _document != NULL ) _document->changeElementID( this, attrId );
00551 }
00552
00557 xsNCName getPlatform() const { return attrPlatform; }
00562 void setPlatform( xsNCName atPlatform ) { *(daeStringRef*)&attrPlatform = atPlatform;}
00563
00568 const domAssetRef getAsset() const { return elemAsset; }
00573 domFx_code_Array &getCode_array() { return elemCode_array; }
00578 const domFx_code_Array &getCode_array() const { return elemCode_array; }
00583 domFx_include_Array &getInclude_array() { return elemInclude_array; }
00588 const domFx_include_Array &getInclude_array() const { return elemInclude_array; }
00593 domGlsl_newparam_Array &getNewparam_array() { return elemNewparam_array; }
00598 const domGlsl_newparam_Array &getNewparam_array() const { return elemNewparam_array; }
00603 domTechnique_Array &getTechnique_array() { return elemTechnique_array; }
00608 const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; }
00613 domExtra_Array &getExtra_array() { return elemExtra_array; }
00618 const domExtra_Array &getExtra_array() const { return elemExtra_array; }
00623 daeElementRefArray &getContents() { return _contents; }
00628 const daeElementRefArray &getContents() const { return _contents; }
00629
00630 protected:
00634 domProfile_glsl(DAE& dae) : daeElement(dae), attrId(), attrPlatform(), elemAsset(), elemCode_array(), elemInclude_array(), elemNewparam_array(), elemTechnique_array(), elemExtra_array() {}
00638 virtual ~domProfile_glsl() { daeElement::deleteCMDataArray(_CMData); }
00642 virtual domProfile_glsl &operator=( const domProfile_glsl &cpy ) { (void)cpy; return *this; }
00643
00644 public:
00649 static DLLSPEC daeElementRef create(DAE& dae);
00655 static DLLSPEC daeMetaElement* registerElement(DAE& dae);
00656 };
00657
00658
00659 #endif