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_cleardepth_common_h__ 00010 #define __domFx_cleardepth_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_cleardepth_common_complexType 00019 { 00020 protected: // Attribute 00021 xsNonNegativeInteger attrIndex; 00022 00023 protected: // Value 00027 domFloat _value; 00028 00029 public: //Accessors and Mutators 00034 xsNonNegativeInteger getIndex() const { return attrIndex; } 00039 void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; } 00040 00045 domFloat getValue() const { return _value; } 00050 void setValue( domFloat val ) { _value = val; } 00051 00052 protected: 00056 domFx_cleardepth_common_complexType(DAE& dae, daeElement* elt) : attrIndex(), _value() {} 00060 virtual ~domFx_cleardepth_common_complexType() {} 00064 virtual domFx_cleardepth_common_complexType &operator=( const domFx_cleardepth_common_complexType &cpy ) { (void)cpy; return *this; } 00065 }; 00066 00070 class domFx_cleardepth_common : public daeElement, public domFx_cleardepth_common_complexType 00071 { 00072 public: 00073 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_CLEARDEPTH_COMMON; } 00074 static daeInt ID() { return 89; } 00075 virtual daeInt typeID() const { return ID(); } 00076 00077 public: //Accessors and Mutators 00082 xsNonNegativeInteger getIndex() const { return attrIndex; } 00087 void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; _validAttributeArray[0] = true; } 00088 00089 protected: 00093 domFx_cleardepth_common(DAE& dae) : daeElement(dae), domFx_cleardepth_common_complexType(dae, this) {} 00097 virtual ~domFx_cleardepth_common() {} 00101 virtual domFx_cleardepth_common &operator=( const domFx_cleardepth_common &cpy ) { (void)cpy; return *this; } 00102 00103 public: // STATIC METHODS 00108 static DLLSPEC daeElementRef create(DAE& dae); 00114 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00115 }; 00116 00117 00118 #endif