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 __domLibrary_force_fields_h__ 00010 #define __domLibrary_force_fields_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 #include <dom/domAsset.h> 00017 #include <dom/domForce_field.h> 00018 #include <dom/domExtra.h> 00019 class DAE; 00020 00024 class domLibrary_force_fields : public daeElement 00025 { 00026 public: 00027 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_FORCE_FIELDS; } 00028 static daeInt ID() { return 718; } 00029 virtual daeInt typeID() const { return ID(); } 00030 protected: // Attributes 00036 xsID attrId; 00040 xsNCName attrName; 00041 00042 protected: // Elements 00046 domAssetRef elemAsset; 00050 domForce_field_Array elemForce_field_array; 00054 domExtra_Array elemExtra_array; 00055 00056 public: //Accessors and Mutators 00061 xsID getId() const { return attrId; } 00066 void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true; 00067 if( _document != NULL ) _document->changeElementID( this, attrId ); 00068 } 00069 00074 xsNCName getName() const { return attrName; } 00079 void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; } 00080 00085 const domAssetRef getAsset() const { return elemAsset; } 00090 domForce_field_Array &getForce_field_array() { return elemForce_field_array; } 00095 const domForce_field_Array &getForce_field_array() const { return elemForce_field_array; } 00100 domExtra_Array &getExtra_array() { return elemExtra_array; } 00105 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00106 protected: 00110 domLibrary_force_fields(DAE& dae) : daeElement(dae), attrId(), attrName(), elemAsset(), elemForce_field_array(), elemExtra_array() {} 00114 virtual ~domLibrary_force_fields() {} 00118 virtual domLibrary_force_fields &operator=( const domLibrary_force_fields &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