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