00001 #ifndef __domLibrary_physics_materials_h__ 00002 #define __domLibrary_physics_materials_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_material.h> 00010 #include <dom/domExtra.h> 00011 class DAE; 00012 00017 class domLibrary_physics_materials : public daeElement 00018 { 00019 public: 00020 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_PHYSICS_MATERIALS; } 00021 static daeInt ID() { return 299; } 00022 virtual daeInt typeID() const { return ID(); } 00023 protected: // Attributes 00029 xsID attrId; 00033 xsToken attrName; 00034 00035 protected: // Elements 00040 domAssetRef elemAsset; 00044 domPhysics_material_Array elemPhysics_material_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 domPhysics_material_Array &getPhysics_material_array() { return elemPhysics_material_array; } 00089 const domPhysics_material_Array &getPhysics_material_array() const { return elemPhysics_material_array; } 00094 domExtra_Array &getExtra_array() { return elemExtra_array; } 00099 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00100 protected: 00104 domLibrary_physics_materials(DAE& dae) : daeElement(dae), attrId(), attrName(), elemAsset(), elemPhysics_material_array(), elemExtra_array() {} 00108 virtual ~domLibrary_physics_materials() {} 00112 virtual domLibrary_physics_materials &operator=( const domLibrary_physics_materials &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