Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/txp/trpage_tile.cpp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/txp/trpage_tile.cpp
r12536 r13041 48 48 currentRow = -1; 49 49 currentCol = -1; 50 50 51 51 } 52 52 … … 72 72 void trpgTileTable::SetNumTiles(int nx,int ny,int lod) 73 73 { 74 74 75 75 if(localBlock) { 76 76 LodInfo &li = lodInfo[lod]; … … 115 115 void trpgTileTable::SetTile(int x,int y,int lod,trpgwAppAddress &ref,float32 zmin,float32 zmax) 116 116 { 117 if (lod < 0 || lod >= static_cast<int>(lodInfo.size())) 117 if (lod < 0 || lod >= static_cast<int>(lodInfo.size())) 118 118 return; 119 119 if (mode == External) … … 160 160 int loc; 161 161 if(localBlock) { 162 loc = 0; 162 loc = 0; 163 163 } 164 164 else { … … 167 167 loc = y*li.numX + x; 168 168 } 169 169 170 170 ref = li.addr[loc]; 171 171 zmin = li.elev_min[loc]; … … 182 182 183 183 buf.Begin(TRPGTILETABLE2); 184 184 185 185 // Write the mode 186 186 buf.Add(mode); … … 271 271 ref.col = currentCol; 272 272 ref.row = currentRow; 273 273 274 274 float emin,emax; 275 275 buf.Get(emin); … … 282 282 buf.Get(li.numX); 283 283 buf.Get(li.numY); 284 if (li.numX <= 0 || li.numY <= 0) 284 if (li.numX <= 0 || li.numY <= 0) 285 285 throw 1; 286 286 int numTile = li.numX*li.numY; … … 488 488 489 489 // Tile Header CB 490 // Used to aid in parsing tile header 490 // Used to aid in parsing tile header 491 491 // We want the tile header to be expandable, so be careful here 492 492 class tileHeaderCB : public trpgr_Callback {
