Changeset 1526 for GTP/trunk/Lib/Geom/shared/GeoTool/include
- Timestamp:
- 09/28/06 17:49:37 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GeoTool/include/GeoMeshViewUI.h
r1090 r1526 87 87 using namespace Geometry; 88 88 89 class GeoToolIndexData : public Geometry::IndexData 90 { 91 public: 92 GeoToolIndexData(unsigned int submeshes):Geometry::IndexData(){ 93 submeshcount = submeshes; 94 indices=new unsigned int*[submeshcount]; 95 indexCount=new unsigned int[submeshcount]; 96 for (int i=0; i<submeshcount; i++) 97 { 98 indices[i]=NULL; 99 indexCount[i]=0; 100 } 101 } 102 virtual ~GeoToolIndexData(void){ 103 for (int i=0; i<submeshcount; i++) 104 if (indices[i]) 105 delete[] indices[i]; 106 delete[] indices; 107 delete[] indexCount; 108 } 109 110 virtual void Begin(unsigned int submesh, unsigned int numinds){ 111 if (indices[submesh]) 112 delete[] indices[submesh]; 113 indices[submesh] = new unsigned int[numinds]; 114 indexCount[submesh] = numinds; 115 modifySubmesh=submesh; 116 } 117 118 virtual void SetIndex(unsigned int i, unsigned int index){ 119 indices[modifySubmesh][i] = index; 120 } 121 122 virtual void End(void){} 123 virtual void BorrowIndexData(const IndexData *){} 124 125 unsigned int submeshcount; 126 unsigned int **indices; 127 unsigned int *indexCount; 128 unsigned int modifySubmesh; 129 }; 130 89 131 class GeoMeshViewUI 90 132 { … … 109 151 // Lod tree object. 110 152 LodTreeLibrary *lodTreeLib; 111 153 112 154 MeshSimplifier *mMeshSimplifier; 113 155 TreeSimplifier *mTreeSimplifier; … … 117 159 118 160 MeshSimplificationSequence *oMeshSimpSequence; 119 LodStripsConstructor *oLodStrip;120 GeoMeshLoader *geoMeshLoader;161 LodStripsConstructor *oLodStrip; 162 GeoMeshLoader *geoMeshLoader; 121 163 122 164 inline void cb_menuFileOpen_i(fltk::Item*, void*); … … 288 330 289 331 public: 332 333 // the indexdata for the LOD models 334 GeoToolIndexData *lod_index_data; 290 335 291 336 GeoMeshView *geoMeshView;
Note: See TracChangeset
for help on using the changeset viewer.