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 __domLibrary_animation_clips_h__ 00010 #define __domLibrary_animation_clips_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/domAnimation_clip.h> 00018 #include <dom/domExtra.h> 00019 class DAE; 00020 00025 class domLibrary_animation_clips : public daeElement 00026 { 00027 public: 00028 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::LIBRARY_ANIMATION_CLIPS; } 00029 static daeInt ID() { return 713; } 00030 virtual daeInt typeID() const { return ID(); } 00031 protected: // Attributes 00037 xsID attrId; 00041 xsNCName attrName; 00042 00043 protected: // Elements 00048 domAssetRef elemAsset; 00052 domAnimation_clip_Array elemAnimation_clip_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 domAnimation_clip_Array &getAnimation_clip_array() { return elemAnimation_clip_array; } 00097 const domAnimation_clip_Array &getAnimation_clip_array() const { return elemAnimation_clip_array; } 00102 domExtra_Array &getExtra_array() { return elemExtra_array; } 00107 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00108 protected: 00112 domLibrary_animation_clips(DAE& dae) : daeElement(dae), attrId(), attrName(), elemAsset(), elemAnimation_clip_array(), elemExtra_array() {} 00116 virtual ~domLibrary_animation_clips() {} 00120 virtual domLibrary_animation_clips &operator=( const domLibrary_animation_clips &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