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_surface_init_from_common_h__ 00010 #define __domFx_surface_init_from_common_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 class DAE; 00017 00022 class domFx_surface_init_from_common_complexType 00023 { 00024 protected: // Attributes 00025 xsUnsignedInt attrMip; 00026 xsUnsignedInt attrSlice; 00027 domFx_surface_face_enum attrFace; 00028 00029 protected: // Value 00033 xsIDREF _value; 00034 00035 public: //Accessors and Mutators 00040 xsUnsignedInt getMip() const { return attrMip; } 00045 void setMip( xsUnsignedInt atMip ) { attrMip = atMip; } 00046 00051 xsUnsignedInt getSlice() const { return attrSlice; } 00056 void setSlice( xsUnsignedInt atSlice ) { attrSlice = atSlice; } 00057 00062 domFx_surface_face_enum getFace() const { return attrFace; } 00067 void setFace( domFx_surface_face_enum atFace ) { attrFace = atFace; } 00068 00073 xsIDREF &getValue() { return _value; } 00078 const xsIDREF &getValue() const { return _value; } 00083 void setValue( const xsIDREF &val ) { _value = val; } 00084 00085 protected: 00089 domFx_surface_init_from_common_complexType(DAE& dae, daeElement* elt) : attrMip(), attrSlice(), attrFace(), _value(*elt) {} 00093 virtual ~domFx_surface_init_from_common_complexType() {} 00097 virtual domFx_surface_init_from_common_complexType &operator=( const domFx_surface_init_from_common_complexType &cpy ) { (void)cpy; return *this; } 00098 }; 00099 00103 class domFx_surface_init_from_common : public daeElement, public domFx_surface_init_from_common_complexType 00104 { 00105 public: 00106 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FX_SURFACE_INIT_FROM_COMMON; } 00107 static daeInt ID() { return 21; } 00108 virtual daeInt typeID() const { return ID(); } 00109 00110 public: //Accessors and Mutators 00115 xsUnsignedInt getMip() const { return attrMip; } 00120 void setMip( xsUnsignedInt atMip ) { attrMip = atMip; _validAttributeArray[0] = true; } 00121 00126 xsUnsignedInt getSlice() const { return attrSlice; } 00131 void setSlice( xsUnsignedInt atSlice ) { attrSlice = atSlice; _validAttributeArray[1] = true; } 00132 00137 domFx_surface_face_enum getFace() const { return attrFace; } 00142 void setFace( domFx_surface_face_enum atFace ) { attrFace = atFace; _validAttributeArray[2] = true; } 00143 00144 protected: 00148 domFx_surface_init_from_common(DAE& dae) : daeElement(dae), domFx_surface_init_from_common_complexType(dae, this) {} 00152 virtual ~domFx_surface_init_from_common() {} 00156 virtual domFx_surface_init_from_common &operator=( const domFx_surface_init_from_common &cpy ) { (void)cpy; return *this; } 00157 00158 public: // STATIC METHODS 00163 static DLLSPEC daeElementRef create(DAE& dae); 00169 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00170 }; 00171 00172 00173 #endif