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 __domVertices_h__ 00010 #define __domVertices_h__ 00011 00012 #include <dae/daeDocument.h> 00013 #include <dom/domTypes.h> 00014 #include <dom/domElements.h> 00015 00016 #include <dom/domExtra.h> 00017 #include <dom/domInputLocal.h> 00018 class DAE; 00019 00026 class domVertices : public daeElement 00027 { 00028 public: 00029 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::VERTICES; } 00030 static daeInt ID() { return 628; } 00031 virtual daeInt typeID() const { return ID(); } 00032 protected: // Attributes 00038 xsID attrId; 00042 xsNCName attrName; 00043 00044 protected: // Elements 00049 domInputLocal_Array elemInput_array; 00053 domExtra_Array elemExtra_array; 00054 00055 public: //Accessors and Mutators 00060 xsID getId() const { return attrId; } 00065 void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; _validAttributeArray[0] = true; 00066 if( _document != NULL ) _document->changeElementID( this, attrId ); 00067 } 00068 00073 xsNCName getName() const { return attrName; } 00078 void setName( xsNCName atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; } 00079 00084 domInputLocal_Array &getInput_array() { return elemInput_array; } 00089 const domInputLocal_Array &getInput_array() const { return elemInput_array; } 00094 domExtra_Array &getExtra_array() { return elemExtra_array; } 00099 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00100 protected: 00104 domVertices(DAE& dae) : daeElement(dae), attrId(), attrName(), elemInput_array(), elemExtra_array() {} 00108 virtual ~domVertices() {} 00112 virtual domVertices &operator=( const domVertices &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