00001 #ifndef __domTriangles_h__ 00002 #define __domTriangles_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 00020 class domTriangles : public daeElement 00021 { 00022 public: 00023 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TRIANGLES; } 00024 static daeInt ID() { return 35; } 00025 virtual daeInt typeID() const { return ID(); } 00026 protected: // Attributes 00030 xsToken attrName; 00035 domUint attrCount; 00042 xsNCName attrMaterial; 00043 00044 protected: // Elements 00049 domInput_local_offset_Array elemInput_array; 00053 domPRef elemP; 00057 domExtra_Array elemExtra_array; 00058 00059 public: //Accessors and Mutators 00064 xsToken getName() const { return attrName; } 00069 void setName( xsToken atName ) { *(daeStringRef*)&attrName = atName;} 00070 00075 domUint getCount() const { return attrCount; } 00080 void setCount( domUint atCount ) { attrCount = atCount; } 00081 00086 xsNCName getMaterial() const { return attrMaterial; } 00091 void setMaterial( xsNCName atMaterial ) { *(daeStringRef*)&attrMaterial = atMaterial;} 00092 00097 domInput_local_offset_Array &getInput_array() { return elemInput_array; } 00102 const domInput_local_offset_Array &getInput_array() const { return elemInput_array; } 00107 const domPRef getP() const { return elemP; } 00112 domExtra_Array &getExtra_array() { return elemExtra_array; } 00117 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00118 protected: 00122 domTriangles(DAE& dae) : daeElement(dae), attrName(), attrCount(), attrMaterial(), elemInput_array(), elemP(), elemExtra_array() {} 00126 virtual ~domTriangles() {} 00130 virtual domTriangles &operator=( const domTriangles &cpy ) { (void)cpy; return *this; } 00131 00132 public: // STATIC METHODS 00137 static DLLSPEC daeElementRef create(DAE& dae); 00143 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00144 }; 00145 00146 00147 #endif