00001 #ifndef __domVertices_h__ 00002 #define __domVertices_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 #include <dom/domInput_local.h> 00009 #include <dom/domExtra.h> 00010 class DAE; 00011 00018 class domVertices : public daeElement 00019 { 00020 public: 00021 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::VERTICES; } 00022 static daeInt ID() { return 37; } 00023 virtual daeInt typeID() const { return ID(); } 00024 protected: // Attributes 00030 xsID attrId; 00034 xsToken attrName; 00035 00036 protected: // Elements 00041 domInput_local_Array elemInput_array; 00045 domExtra_Array elemExtra_array; 00046 00047 public: //Accessors and Mutators 00052 xsID getId() const { return attrId; } 00057 void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; 00058 if( _document != NULL ) _document->changeElementID( this, attrId ); 00059 } 00060 00065 xsToken getName() const { return attrName; } 00070 void setName( xsToken atName ) { *(daeStringRef*)&attrName = atName;} 00071 00076 domInput_local_Array &getInput_array() { return elemInput_array; } 00081 const domInput_local_Array &getInput_array() const { return elemInput_array; } 00086 domExtra_Array &getExtra_array() { return elemExtra_array; } 00091 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00092 protected: 00096 domVertices(DAE& dae) : daeElement(dae), attrId(), attrName(), elemInput_array(), elemExtra_array() {} 00100 virtual ~domVertices() {} 00104 virtual domVertices &operator=( const domVertices &cpy ) { (void)cpy; return *this; } 00105 00106 public: // STATIC METHODS 00111 static DLLSPEC daeElementRef create(DAE& dae); 00117 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00118 }; 00119 00120 00121 #endif