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_texcombiner_argumentRGB_type_h__ 00010 #define __domGles_texcombiner_argumentRGB_type_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 class DAE; 00017 00018 class domGles_texcombiner_argumentRGB_type_complexType 00019 { 00020 protected: // Attributes 00021 domGles_texcombiner_source_enums attrSource; 00022 domGles_texcombiner_operandRGB_enums attrOperand; 00023 xsNCName attrUnit; 00024 00025 00026 public: //Accessors and Mutators 00031 domGles_texcombiner_source_enums getSource() const { return attrSource; } 00036 void setSource( domGles_texcombiner_source_enums atSource ) { attrSource = atSource; } 00037 00042 domGles_texcombiner_operandRGB_enums getOperand() const { return attrOperand; } 00047 void setOperand( domGles_texcombiner_operandRGB_enums atOperand ) { attrOperand = atOperand; } 00048 00053 xsNCName getUnit() const { return attrUnit; } 00058 void setUnit( xsNCName atUnit ) { *(daeStringRef*)&attrUnit = atUnit;} 00059 00060 protected: 00064 domGles_texcombiner_argumentRGB_type_complexType(DAE& dae, daeElement* elt) : attrSource(), attrOperand(), attrUnit() {} 00068 virtual ~domGles_texcombiner_argumentRGB_type_complexType() {} 00072 virtual domGles_texcombiner_argumentRGB_type_complexType &operator=( const domGles_texcombiner_argumentRGB_type_complexType &cpy ) { (void)cpy; return *this; } 00073 }; 00074 00078 class domGles_texcombiner_argumentRGB_type : public daeElement, public domGles_texcombiner_argumentRGB_type_complexType 00079 { 00080 public: 00081 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXCOMBINER_ARGUMENTRGB_TYPE; } 00082 static daeInt ID() { return 147; } 00083 virtual daeInt typeID() const { return ID(); } 00084 00085 public: //Accessors and Mutators 00090 domGles_texcombiner_source_enums getSource() const { return attrSource; } 00095 void setSource( domGles_texcombiner_source_enums atSource ) { attrSource = atSource; _validAttributeArray[0] = true; } 00096 00101 domGles_texcombiner_operandRGB_enums getOperand() const { return attrOperand; } 00106 void setOperand( domGles_texcombiner_operandRGB_enums atOperand ) { attrOperand = atOperand; _validAttributeArray[1] = true; } 00107 00112 xsNCName getUnit() const { return attrUnit; } 00117 void setUnit( xsNCName atUnit ) { *(daeStringRef*)&attrUnit = atUnit; _validAttributeArray[2] = true; } 00118 00119 protected: 00123 domGles_texcombiner_argumentRGB_type(DAE& dae) : daeElement(dae), domGles_texcombiner_argumentRGB_type_complexType(dae, this) {} 00127 virtual ~domGles_texcombiner_argumentRGB_type() {} 00131 virtual domGles_texcombiner_argumentRGB_type &operator=( const domGles_texcombiner_argumentRGB_type &cpy ) { (void)cpy; return *this; } 00132 00133 public: // STATIC METHODS 00138 static DLLSPEC daeElementRef create(DAE& dae); 00144 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00145 }; 00146 00147 00148 #endif