00001 #ifndef __domEdges_h__ 00002 #define __domEdges_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 #include <dom/domInput_local_offset.h> 00009 #include <dom/domP.h> 00010 #include <dom/domExtra.h> 00011 class DAE; 00012 00016 class domEdges : public daeElement 00017 { 00018 public: 00019 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::EDGES; } 00020 static daeInt ID() { return 300; } 00021 virtual daeInt typeID() const { return ID(); } 00022 protected: // Attributes 00023 xsID attrId; 00024 xsToken attrName; 00025 xsInt attrCount; 00026 00027 protected: // Elements 00034 domInput_local_offset_Array elemInput_array; 00038 domPRef elemP; 00039 domExtra_Array elemExtra_array; 00040 00041 public: //Accessors and Mutators 00046 xsID getId() const { return attrId; } 00051 void setId( xsID atId ) { *(daeStringRef*)&attrId = atId; 00052 if( _document != NULL ) _document->changeElementID( this, attrId ); 00053 } 00054 00059 xsToken getName() const { return attrName; } 00064 void setName( xsToken atName ) { *(daeStringRef*)&attrName = atName;} 00065 00070 xsInt getCount() const { return attrCount; } 00075 void setCount( xsInt atCount ) { attrCount = atCount; } 00076 00081 domInput_local_offset_Array &getInput_array() { return elemInput_array; } 00086 const domInput_local_offset_Array &getInput_array() const { return elemInput_array; } 00091 const domPRef getP() const { return elemP; } 00096 domExtra_Array &getExtra_array() { return elemExtra_array; } 00101 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00102 protected: 00106 domEdges(DAE& dae) : daeElement(dae), attrId(), attrName(), attrCount(), elemInput_array(), elemP(), elemExtra_array() {} 00110 virtual ~domEdges() {} 00114 virtual domEdges &operator=( const domEdges &cpy ) { (void)cpy; return *this; } 00115 00116 public: // STATIC METHODS 00121 static DLLSPEC daeElementRef create(DAE& dae); 00127 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00128 }; 00129 00130 00131 #endif