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_texture_constant_type_h__ 00010 #define __domGles_texture_constant_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_texture_constant_type_complexType 00019 { 00020 protected: // Attributes 00021 domFloat4 attrValue; 00022 xsNCName attrParam; 00023 00024 00025 public: //Accessors and Mutators 00030 domFloat4 &getValue() { return attrValue; } 00035 const domFloat4 &getValue() const { return attrValue; } 00040 void setValue( const domFloat4 &atValue ) { attrValue = atValue; } 00041 00046 xsNCName getParam() const { return attrParam; } 00051 void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam;} 00052 00053 protected: 00057 domGles_texture_constant_type_complexType(DAE& dae, daeElement* elt) : attrValue(), attrParam() {} 00061 virtual ~domGles_texture_constant_type_complexType() {} 00065 virtual domGles_texture_constant_type_complexType &operator=( const domGles_texture_constant_type_complexType &cpy ) { (void)cpy; return *this; } 00066 }; 00067 00071 class domGles_texture_constant_type : public daeElement, public domGles_texture_constant_type_complexType 00072 { 00073 public: 00074 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::GLES_TEXTURE_CONSTANT_TYPE; } 00075 static daeInt ID() { return 145; } 00076 virtual daeInt typeID() const { return ID(); } 00077 00078 public: //Accessors and Mutators 00083 domFloat4 &getValue() { return attrValue; } 00088 const domFloat4 &getValue() const { return attrValue; } 00093 void setValue( const domFloat4 &atValue ) { attrValue = atValue; _validAttributeArray[0] = true; } 00094 00099 xsNCName getParam() const { return attrParam; } 00104 void setParam( xsNCName atParam ) { *(daeStringRef*)&attrParam = atParam; _validAttributeArray[1] = true; } 00105 00106 protected: 00110 domGles_texture_constant_type(DAE& dae) : daeElement(dae), domGles_texture_constant_type_complexType(dae, this) {} 00114 virtual ~domGles_texture_constant_type() {} 00118 virtual domGles_texture_constant_type &operator=( const domGles_texture_constant_type &cpy ) { (void)cpy; return *this; } 00119 00120 public: // STATIC METHODS 00125 static DLLSPEC daeElementRef create(DAE& dae); 00131 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00132 }; 00133 00134 00135 #endif