Changeset 1560 for GTP/trunk/Lib/Geom/shared/GTGeometry/include
- Timestamp:
- 10/03/06 14:11:36 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GTGeometry/include/GeoLodStripsLibrary.h
r1552 r1560 35 35 { 36 36 unsigned long strip; // change this to uint32 37 char position;38 char vertexRepetition;39 char edgeRepetition;40 char obligatory;37 char position; 38 char vertexRepetition; 39 char edgeRepetition; 40 char obligatory; 41 41 } LODRegisterType; 42 42 … … 73 73 class LodStripsLibraryData 74 74 { 75 public: 76 SmallIntVector mFileVertices; 77 std::vector <LODRegisterType> mFileChangesLOD; 78 LongVector mData; 79 std::vector<unsigned int> p_changes; 75 public: 76 77 SmallIntVector mFileVertices; 78 std::vector <LODRegisterType> mFileChangesLOD; 79 LongVector mData; 80 std::vector<unsigned int> p_changes; 80 81 }; 82 81 83 class LodStripsLibrary : public Geometry::LodObject 82 84 { … … 88 90 // Structures with the data read from the file 89 91 // We won't work with these structures 90 SmallIntVector mFileVertices;92 SmallIntVector mFileVertices; 91 93 std::vector <LODRegisterType> mFileChangesLOD; 92 94 std::vector <SmallIntVector> mFileStrips; 93 LongVector mData;95 LongVector mData; 94 96 95 97 // Structures with the data to work with … … 113 115 114 116 // For the efficient version. 115 SmallInt mTotalFaces;116 SmallInt *mCurrentData;117 SmallInt *mStripsChanges;117 SmallInt mTotalFaces; 118 SmallInt *mCurrentData; 119 SmallInt *mStripsChanges; 118 120 LODRegisterType *mCurrentRegLOD; 119 SmallInt *mVertex;121 SmallInt *mVertex; 120 122 121 123 SmallInt minFaces, maxFaces; … … 140 142 // Strips vector. 141 143 SmallIntVector *mStrips; 142 int *indices_x_submesh; 144 145 int *indices_x_submesh; 143 146 int *offsets_x_submesh; 144 147 145 void UpdateDataRetrievalInterface(void); 148 void UpdateDataRetrievalInterface(void); 146 149 147 150 //Number of strips in each submesh 148 int* mStripsSubmesh; 149 bool delete_indexdata; 150 int *submesh_x_strip; 151 Real lodFactor; 152 IndexData *dataRetrievalInterface; 153 uint32 current_triangle_count; 151 int *mStripsSubmesh; 152 bool delete_indexdata; 153 int *submesh_x_strip; 154 Real lodFactor; 155 156 IndexData *dataRetrievalInterface; 157 uint32 current_triangle_count; 154 158 155 159 public: 156 160 157 IndexData *GetIndexDataInterface(void){ return dataRetrievalInterface; } 161 IndexData *GetIndexDataInterface(void) 162 { 163 return dataRetrievalInterface; 164 } 158 165 159 166 /** Constructor, receives as a parameter the name of the file 160 167 * including the multiresolution object. 161 168 */ 162 LodStripsLibrary(const LodStripsLibraryData *, Mesh *geomesh, IndexData * userindexdata = NULL); 169 LodStripsLibrary( const LodStripsLibraryData *, 170 Mesh *geomesh, 171 IndexData *userindexdata = NULL); 163 172 164 173 /// Destructor. … … 184 193 uint32 MinVertices(); 185 194 186 uint32 GetValidIndexCount(int submeshid) const { return indices_x_submesh[submeshid]; } 187 // uint32 GetValidOffset(int submeshid) const { return offsets_x_submesh[submeshid]; } 188 uint32 GetTotalStripCount(void) const { return mTotalStrips; } 189 uint32 GetSubMeshtripCount(int submeshid) const { return mStripsSubmesh[submeshid]; } 190 uint32 GetCurrentTriangleCount(void) const { return current_triangle_count; } 191 192 virtual Real GetCurrentLodFactor(void) const { return lodFactor; } 195 uint32 GetValidIndexCount(int submeshid) const 196 { 197 return indices_x_submesh[submeshid]; 198 } 199 200 uint32 GetTotalStripCount(void) const 201 { 202 return mTotalStrips; 203 } 204 205 uint32 GetSubMeshtripCount(int submeshid) const 206 { 207 return mStripsSubmesh[submeshid]; 208 } 209 210 uint32 GetCurrentTriangleCount(void) const 211 { 212 return current_triangle_count; 213 } 214 215 virtual Real GetCurrentLodFactor(void) const 216 { 217 return lodFactor; 218 } 193 219 }; 194 220 }
Note: See TracChangeset
for help on using the changeset viewer.