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_depthtarget_common_h__ 00010 #define __domFx_depthtarget_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_depthtarget_common_complexType 00019 { 00020 protected: // Attributes 00021 xsNonNegativeInteger attrIndex; 00022 domFx_surface_face_enum attrFace; 00023 xsNonNegativeInteger attrMip; 00024 xsNonNegativeInteger attrSlice; 00025 00026 protected: // Value 00030 xsNCName _value; 00031 00032 public: //Accessors and Mutators 00037 xsNonNegativeInteger getIndex() const { return attrIndex; } 00042 void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; } 00043 00048 domFx_surface_face_enum getFace() const { return attrFace; } 00053 void setFace( domFx_surface_face_enum atFace ) { attrFace = atFace; } 00054 00059 xsNonNegativeInteger getMip() const { return attrMip; } 00064 void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; } 00065 00070 xsNonNegativeInteger getSlice() const { return attrSlice; } 00075 void setSlice( xsNonNegativeInteger atSlice ) { attrSlice = atSlice; } 00076 00081 xsNCName getValue() const { return _value; } 00086 void setValue( xsNCName val ) { *(daeStringRef*)&_value = val; } 00087 00088 protected: 00092 domFx_depthtarget_common_complexType(DAE& dae, daeElement* elt) : attrIndex(), attrFace(), attrMip(), attrSlice(), _value() {} 00096 virtual ~domFx_depthtarget_common_complexType() {} 00100 virtual domFx_depthtarget_common_complexType &operator=( const domFx_depthtarget_common_complexType &cpy ) { (void)cpy; return *this; } 00101 }; 00102 00106 class domFx_depthtarget_common : public daeElement, public domFx_depthtarget_common_complexType 00107 { 00108 public: 00109 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_DEPTHTARGET_COMMON; } 00110 static daeInt ID() { return 86; } 00111 virtual daeInt typeID() const { return ID(); } 00112 00113 public: //Accessors and Mutators 00118 xsNonNegativeInteger getIndex() const { return attrIndex; } 00123 void setIndex( xsNonNegativeInteger atIndex ) { attrIndex = atIndex; _validAttributeArray[0] = true; } 00124 00129 domFx_surface_face_enum getFace() const { return attrFace; } 00134 void setFace( domFx_surface_face_enum atFace ) { attrFace = atFace; _validAttributeArray[1] = true; } 00135 00140 xsNonNegativeInteger getMip() const { return attrMip; } 00145 void setMip( xsNonNegativeInteger atMip ) { attrMip = atMip; _validAttributeArray[2] = true; } 00146 00151 xsNonNegativeInteger getSlice() const { return attrSlice; } 00156 void setSlice( xsNonNegativeInteger atSlice ) { attrSlice = atSlice; _validAttributeArray[3] = true; } 00157 00158 protected: 00162 domFx_depthtarget_common(DAE& dae) : daeElement(dae), domFx_depthtarget_common_complexType(dae, this) {} 00166 virtual ~domFx_depthtarget_common() {} 00170 virtual domFx_depthtarget_common &operator=( const domFx_depthtarget_common &cpy ) { (void)cpy; return *this; } 00171 00172 public: // STATIC METHODS 00177 static DLLSPEC daeElementRef create(DAE& dae); 00183 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00184 }; 00185 00186 00187 #endif