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_commandRGB_type_h__ 00010 #define __domGles_texcombiner_commandRGB_type_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 #include <dom/domGles_texcombiner_argumentRGB_type.h> 00017 class DAE; 00018 00023 class domGles_texcombiner_commandRGB_type_complexType 00024 { 00025 protected: // Attributes 00026 domGles_texcombiner_operatorRGB_enums attrOperator; 00027 xsFloat attrScale; 00028 00029 protected: // Element 00030 domGles_texcombiner_argumentRGB_type_Array elemArgument_array; 00031 00032 public: //Accessors and Mutators 00037 domGles_texcombiner_operatorRGB_enums getOperator() const { return attrOperator; } 00042 void setOperator( domGles_texcombiner_operatorRGB_enums atOperator ) { attrOperator = atOperator; } 00043 00048 xsFloat getScale() const { return attrScale; } 00053 void setScale( xsFloat atScale ) { attrScale = atScale; } 00054 00059 domGles_texcombiner_argumentRGB_type_Array &getArgument_array() { return elemArgument_array; } 00064 const domGles_texcombiner_argumentRGB_type_Array &getArgument_array() const { return elemArgument_array; } 00065 protected: 00069 domGles_texcombiner_commandRGB_type_complexType(DAE& dae, daeElement* elt) : attrOperator(), attrScale(), elemArgument_array() {} 00073 virtual ~domGles_texcombiner_commandRGB_type_complexType() {} 00077 virtual domGles_texcombiner_commandRGB_type_complexType &operator=( const domGles_texcombiner_commandRGB_type_complexType &cpy ) { (void)cpy; return *this; } 00078 }; 00079 00083 class domGles_texcombiner_commandRGB_type : public daeElement, public domGles_texcombiner_commandRGB_type_complexType 00084 { 00085 public: 00086 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXCOMBINER_COMMANDRGB_TYPE; } 00087 static daeInt ID() { return 149; } 00088 virtual daeInt typeID() const { return ID(); } 00089 00090 public: //Accessors and Mutators 00095 domGles_texcombiner_operatorRGB_enums getOperator() const { return attrOperator; } 00100 void setOperator( domGles_texcombiner_operatorRGB_enums atOperator ) { attrOperator = atOperator; _validAttributeArray[0] = true; } 00101 00106 xsFloat getScale() const { return attrScale; } 00111 void setScale( xsFloat atScale ) { attrScale = atScale; _validAttributeArray[1] = true; } 00112 00113 protected: 00117 domGles_texcombiner_commandRGB_type(DAE& dae) : daeElement(dae), domGles_texcombiner_commandRGB_type_complexType(dae, this) {} 00121 virtual ~domGles_texcombiner_commandRGB_type() {} 00125 virtual domGles_texcombiner_commandRGB_type &operator=( const domGles_texcombiner_commandRGB_type &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 00142 #endif