00001 #ifndef __domConvex_mesh_h__ 00002 #define __domConvex_mesh_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 #include <dom/domSource.h> 00009 #include <dom/domVertices.h> 00010 #include <dom/domLines.h> 00011 #include <dom/domLinestrips.h> 00012 #include <dom/domPolygons.h> 00013 #include <dom/domPolylist.h> 00014 #include <dom/domTriangles.h> 00015 #include <dom/domTrifans.h> 00016 #include <dom/domTristrips.h> 00017 #include <dom/domExtra.h> 00018 class DAE; 00019 00027 class domConvex_mesh : public daeElement 00028 { 00029 public: 00030 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CONVEX_MESH; } 00031 static daeInt ID() { return 335; } 00032 virtual daeInt typeID() const { return ID(); } 00033 protected: // Attribute 00038 xsAnyURI attrConvex_hull_of; 00039 00040 protected: // Elements 00041 domSource_Array elemSource_array; 00042 domVerticesRef elemVertices; 00043 domLines_Array elemLines_array; 00044 domLinestrips_Array elemLinestrips_array; 00045 domPolygons_Array elemPolygons_array; 00046 domPolylist_Array elemPolylist_array; 00047 domTriangles_Array elemTriangles_array; 00048 domTrifans_Array elemTrifans_array; 00049 domTristrips_Array elemTristrips_array; 00053 domExtra_Array elemExtra_array; 00057 daeElementRefArray _contents; 00061 daeUIntArray _contentsOrder; 00062 00066 daeTArray< daeCharArray * > _CMData; 00067 00068 00069 public: //Accessors and Mutators 00074 xsAnyURI &getConvex_hull_of() { return attrConvex_hull_of; } 00079 const xsAnyURI &getConvex_hull_of() const { return attrConvex_hull_of; } 00084 void setConvex_hull_of( const xsAnyURI &atConvex_hull_of ) { attrConvex_hull_of = atConvex_hull_of; } 00089 void setConvex_hull_of( xsString atConvex_hull_of ) { attrConvex_hull_of = atConvex_hull_of; } 00090 00095 domSource_Array &getSource_array() { return elemSource_array; } 00100 const domSource_Array &getSource_array() const { return elemSource_array; } 00105 const domVerticesRef getVertices() const { return elemVertices; } 00110 domLines_Array &getLines_array() { return elemLines_array; } 00115 const domLines_Array &getLines_array() const { return elemLines_array; } 00120 domLinestrips_Array &getLinestrips_array() { return elemLinestrips_array; } 00125 const domLinestrips_Array &getLinestrips_array() const { return elemLinestrips_array; } 00130 domPolygons_Array &getPolygons_array() { return elemPolygons_array; } 00135 const domPolygons_Array &getPolygons_array() const { return elemPolygons_array; } 00140 domPolylist_Array &getPolylist_array() { return elemPolylist_array; } 00145 const domPolylist_Array &getPolylist_array() const { return elemPolylist_array; } 00150 domTriangles_Array &getTriangles_array() { return elemTriangles_array; } 00155 const domTriangles_Array &getTriangles_array() const { return elemTriangles_array; } 00160 domTrifans_Array &getTrifans_array() { return elemTrifans_array; } 00165 const domTrifans_Array &getTrifans_array() const { return elemTrifans_array; } 00170 domTristrips_Array &getTristrips_array() { return elemTristrips_array; } 00175 const domTristrips_Array &getTristrips_array() const { return elemTristrips_array; } 00180 domExtra_Array &getExtra_array() { return elemExtra_array; } 00185 const domExtra_Array &getExtra_array() const { return elemExtra_array; } 00190 daeElementRefArray &getContents() { return _contents; } 00195 const daeElementRefArray &getContents() const { return _contents; } 00196 00197 protected: 00201 domConvex_mesh(DAE& dae) : daeElement(dae), attrConvex_hull_of(dae, *this), elemSource_array(), elemVertices(), elemLines_array(), elemLinestrips_array(), elemPolygons_array(), elemPolylist_array(), elemTriangles_array(), elemTrifans_array(), elemTristrips_array(), elemExtra_array() {} 00205 virtual ~domConvex_mesh() { daeElement::deleteCMDataArray(_CMData); } 00209 virtual domConvex_mesh &operator=( const domConvex_mesh &cpy ) { (void)cpy; return *this; } 00210 00211 public: // STATIC METHODS 00216 static DLLSPEC daeElementRef create(DAE& dae); 00222 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00223 }; 00224 00225 00226 #endif