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 __domFx_clearcolor_common_h__ 00010 #define __domFx_clearcolor_common_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 class DAE; 00017 00018 class domFx_clearcolor_common_complexType 00019 { 00020 protected: // Attribute 00021 xsNonNegativeInteger attrIndex; 00022 00023 protected: // Value 00027 domFx_color_common _value; 00028 00029 public: //Accessors and Mutators 00034 xsNonNegativeInteger getIndex() const { return attrIndex; } 00039 void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; } 00040 00045 domFx_color_common &getValue() { return _value; } 00050 const domFx_color_common &getValue() const { return _value; } 00055 void setValue( const domFx_color_common &val ) { _value = val; } 00056 00057 protected: 00061 domFx_clearcolor_common_complexType(DAE& dae, daeElement* elt) : attrIndex(), _value() {} 00065 virtual ~domFx_clearcolor_common_complexType() {} 00069 virtual domFx_clearcolor_common_complexType &operator=( const domFx_clearcolor_common_complexType &cpy ) { (void)cpy; return *this; } 00070 }; 00071 00075 class domFx_clearcolor_common : public daeElement, public domFx_clearcolor_common_complexType 00076 { 00077 public: 00078 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_CLEARCOLOR_COMMON; } 00079 static daeInt ID() { return 88; } 00080 virtual daeInt typeID() const { return ID(); } 00081 00082 public: //Accessors and Mutators 00087 xsNonNegativeInteger getIndex() const { return attrIndex; } 00092 void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; _validAttributeArray[0] = true; } 00093 00094 protected: 00098 domFx_clearcolor_common(DAE& dae) : daeElement(dae), domFx_clearcolor_common_complexType(dae, this) {} 00102 virtual ~domFx_clearcolor_common() {} 00106 virtual domFx_clearcolor_common &operator=( const domFx_clearcolor_common &cpy ) { (void)cpy; return *this; } 00107 00108 public: // STATIC METHODS 00113 static DLLSPEC daeElementRef create(DAE& dae); 00119 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00120 }; 00121 00122 00123 #endif