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_commandAlpha_type_h__ 00010 #define __domGles_texcombiner_commandAlpha_type_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 #include <dom/domGles_texcombiner_argumentAlpha_type.h> 00017 class DAE; 00018 00019 class domGles_texcombiner_commandAlpha_type_complexType 00020 { 00021 protected: // Attributes 00022 domGles_texcombiner_operatorAlpha_enums attrOperator; 00023 xsFloat attrScale; 00024 00025 protected: // Element 00026 domGles_texcombiner_argumentAlpha_type_Array elemArgument_array; 00027 00028 public: //Accessors and Mutators 00033 domGles_texcombiner_operatorAlpha_enums getOperator() const { return attrOperator; } 00038 void setOperator( domGles_texcombiner_operatorAlpha_enums atOperator ) { attrOperator = atOperator; } 00039 00044 xsFloat getScale() const { return attrScale; } 00049 void setScale( xsFloat atScale ) { attrScale = atScale; } 00050 00055 domGles_texcombiner_argumentAlpha_type_Array &getArgument_array() { return elemArgument_array; } 00060 const domGles_texcombiner_argumentAlpha_type_Array &getArgument_array() const { return elemArgument_array; } 00061 protected: 00065 domGles_texcombiner_commandAlpha_type_complexType(DAE& dae, daeElement* elt) : attrOperator(), attrScale(), elemArgument_array() {} 00069 virtual ~domGles_texcombiner_commandAlpha_type_complexType() {} 00073 virtual domGles_texcombiner_commandAlpha_type_complexType &operator=( const domGles_texcombiner_commandAlpha_type_complexType &cpy ) { (void)cpy; return *this; } 00074 }; 00075 00079 class domGles_texcombiner_commandAlpha_type : public daeElement, public domGles_texcombiner_commandAlpha_type_complexType 00080 { 00081 public: 00082 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXCOMBINER_COMMANDALPHA_TYPE; } 00083 static daeInt ID() { return 150; } 00084 virtual daeInt typeID() const { return ID(); } 00085 00086 public: //Accessors and Mutators 00091 domGles_texcombiner_operatorAlpha_enums getOperator() const { return attrOperator; } 00096 void setOperator( domGles_texcombiner_operatorAlpha_enums atOperator ) { attrOperator = atOperator; _validAttributeArray[0] = true; } 00097 00102 xsFloat getScale() const { return attrScale; } 00107 void setScale( xsFloat atScale ) { attrScale = atScale; _validAttributeArray[1] = true; } 00108 00109 protected: 00113 domGles_texcombiner_commandAlpha_type(DAE& dae) : daeElement(dae), domGles_texcombiner_commandAlpha_type_complexType(dae, this) {} 00117 virtual ~domGles_texcombiner_commandAlpha_type() {} 00121 virtual domGles_texcombiner_commandAlpha_type &operator=( const domGles_texcombiner_commandAlpha_type &cpy ) { (void)cpy; return *this; } 00122 00123 public: // STATIC METHODS 00128 static DLLSPEC daeElementRef create(DAE& dae); 00134 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00135 }; 00136 00137 00138 #endif