00001 #ifndef __domForce_field_h__ 00002 #define __domForce_field_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 #include <dom/domAsset.h> 00009 #include <dom/domTechnique.h> 00010 #include <dom/domExtra.h> 00011 class DAE; 00012 00017 class domForce_field : public daeElement 00018 { 00019 public: 00020 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::FORCE_FIELD; } 00021 static daeInt ID() { return 295; } 00022 virtual daeInt typeID() const { return ID(); } 00023 protected: // Attributes 00029 xsID attrId; 00033 xsToken attrName; 00034 00035 protected: // Elements 00039 domAssetRef elemAsset; 00044 domTechnique_Array elemTechnique_array; 00048 domExtra_Array elemExtra_array; 00049 00050 public: //Accessors and Mutators 00055 xsID getId() const { return attrId; } 00060 void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; 00061 if( _document != NULL ) _document->changeElementID( this, attrId ); 00062 } 00063 00068 xsToken getName() const { return attrName; } 00073 void setName( xsToken atName ) { *(daeStringRef*)&attrName = atName;} 00074 00079 const domAssetRef getAsset() const { return elemAsset; } 00084 domTechnique_Array &getTechnique_array() { return elemTechnique_array; } 00089 const domTechnique_Array &getTechnique_array() const { return elemTechnique_array; } 00094 domExtra_Array &getExtra_array() { return elemExtra_array; } 00099 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00100 protected: 00104 domForce_field(DAE& dae) : daeElement(dae), attrId(), attrName(), elemAsset(), elemTechnique_array(), elemExtra_array() {} 00108 virtual ~domForce_field() {} 00112 virtual domForce_field &operator=( const domForce_field &cpy ) { (void)cpy; return *this; } 00113 00114 public: // STATIC METHODS 00119 static DLLSPEC daeElementRef create(DAE& dae); 00125 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00126 }; 00127 00128 00129 #endif