00001 #ifndef __domLibrary_physics_models_h__ 00002 #define __domLibrary_physics_models_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/domPhysics_model.h> 00010 #include <dom/domExtra.h> 00011 class DAE; 00012 00016 class domLibrary_physics_models : public daeElement 00017 { 00018 public: 00019 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_PHYSICS_MODELS; } 00020 static daeInt ID() { return 412; } 00021 virtual daeInt typeID() const { return ID(); } 00022 protected: // Attributes 00028 xsID attrId; 00032 xsToken attrName; 00033 00034 protected: // Elements 00038 domAssetRef elemAsset; 00042 domPhysics_model_Array elemPhysics_model_array; 00046 domExtra_Array elemExtra_array; 00047 00048 public: //Accessors and Mutators 00053 xsID getId() const { return attrId; } 00058 void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; 00059 if( _document != NULL ) _document->changeElementID( this, attrId ); 00060 } 00061 00066 xsToken getName() const { return attrName; } 00071 void setName( xsToken atName ) { *(daeStringRef*)&attrName = atName;} 00072 00077 const domAssetRef getAsset() const { return elemAsset; } 00082 domPhysics_model_Array &getPhysics_model_array() { return elemPhysics_model_array; } 00087 const domPhysics_model_Array &getPhysics_model_array() const { return elemPhysics_model_array; } 00092 domExtra_Array &getExtra_array() { return elemExtra_array; } 00097 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00098 protected: 00102 domLibrary_physics_models(DAE& dae) : daeElement(dae), attrId(), attrName(), elemAsset(), elemPhysics_model_array(), elemExtra_array() {} 00106 virtual ~domLibrary_physics_models() {} 00110 virtual domLibrary_physics_models &operator=( const domLibrary_physics_models &cpy ) { (void)cpy; return *this; } 00111 00112 public: // STATIC METHODS 00117 static DLLSPEC daeElementRef create(DAE& dae); 00123 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00124 }; 00125 00126 00127 #endif