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 __domForce_field_h__ 00010 #define __domForce_field_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/domTechnique.h> 00018 #include <dom/domExtra.h> 00019 class DAE; 00020 00025 class domForce_field : public daeElement 00026 { 00027 public: 00028 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FORCE_FIELD; } 00029 static daeInt ID() { return 790; } 00030 virtual daeInt typeID() const { return ID(); } 00031 protected: // Attributes 00037 xsID attrId; 00041 xsNCName attrName; 00042 00043 protected: // Elements 00047 domAssetRef elemAsset; 00052 domTechnique_Array elemTechnique_array; 00056 domExtra_Array elemExtra_array; 00057 00058 public: //Accessors and Mutators 00063 xsID getId() const { return attrId; } 00068 void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true; 00069 if( _document != NULL ) _document->changeElementID( this, attrId ); 00070 } 00071 00076 xsNCName getName() const { return attrName; } 00081 void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; } 00082 00087 const domAssetRef getAsset() const { return elemAsset; } 00092 domTechnique_Array &getTechnique_array() { return elemTechnique_array; } 00097 const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } 00102 domExtra_Array &getExtra_array() { return elemExtra_array; } 00107 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00108 protected: 00112 domForce_field(DAE& dae) : daeElement(dae), attrId(), attrName(), elemAsset(), elemTechnique_array(), elemExtra_array() {} 00116 virtual ~domForce_field() {} 00120 virtual domForce_field &operator=( const domForce_field &cpy ) { (void)cpy; return *this; } 00121 00122 public: // STATIC METHODS 00127 static DLLSPEC daeElementRef create(DAE& dae); 00133 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00134 }; 00135 00136 00137 #endif