Changeset 2409 for branches/blt4/packages/vizservers/nanovis/DataLoader.cpp
- Timestamp:
- Aug 25, 2011 1:09:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/packages/vizservers/nanovis/DataLoader.cpp
r2120 r2409 4 4 #include <stdlib.h> 5 5 #include <math.h> 6 #include <Trace.h> 6 7 7 8 inline void endian_swap(unsigned int& x) … … 35 36 if (path.size() == 0) 36 37 { 37 printf("file not found[%s]\n", path.c_str());38 38 ERROR("file not found[%s]\n", path.c_str()); 39 return NULL; 39 40 } 40 41 … … 42 43 if (fp == NULL) 43 44 { 44 printf("ERROR :file not found %s\n", path.c_str());45 45 ERROR("file not found %s\n", path.c_str()); 46 return NULL; 46 47 } 47 48 … … 173 174 if (path.size() == 0) 174 175 { 175 printf("file not found[%s]\n", path.c_str());176 176 ERROR("file not found[%s]\n", path.c_str()); 177 return NULL; 177 178 } 178 179 … … 180 181 if (fp == NULL) 181 182 { 182 printf("ERROR :file not found %s\n", path.c_str());183 183 ERROR("file not found %s\n", path.c_str()); 184 return NULL; 184 185 } 185 186 … … 243 244 if (length > max) 244 245 { 245 // printf("max %lf %lf %fl\n", x, y, z);246 //TRACE("max %lf %lf %fl\n", x, y, z); 246 247 max = length; 247 248 } … … 262 263 fclose(fp); 263 264 264 printf("width %d, height %d, depth %d, min %f, max %f, scaleX %f, scaleY %f, scaleZ %f\n",265 TRACE("width %d, height %d, depth %d, min %f, max %f, scaleX %f, scaleY %f, scaleZ %f\n", 265 266 width, height, depth, min, max, axisScaleX, axisScaleY, axisScaleZ); 266 267 return data; … … 273 274 if (fname == 0) 274 275 { 275 printf("file name is null\n");276 276 ERROR("file name is null\n"); 277 return NULL; 277 278 } 278 279 … … 280 281 if (fp == NULL) 281 282 { 282 printf("ERROR :file not found %s\n", fname);283 283 ERROR("file not found %s\n", fname); 284 return NULL; 284 285 } 285 286 … … 302 303 if (fname == 0) 303 304 { 304 printf("file name is null\n");305 305 ERROR("file name is null\n"); 306 return; 306 307 } 307 308 … … 309 310 if (fp == NULL) 310 311 { 311 printf("ERROR :file not found %s\n", fname);312 312 ERROR("file not found %s\n", fname); 313 return; 313 314 } 314 315 … … 326 327 if (path.size() == 0) 327 328 { 328 printf("file not found[%s]\n", path.c_str());329 329 ERROR("file not found[%s]\n", path.c_str()); 330 return NULL; 330 331 } 331 332 … … 333 334 if (fp == NULL) 334 335 { 335 printf("ERROR :file not found %s\n", path.c_str());336 336 ERROR("file not found %s\n", path.c_str()); 337 return NULL; 337 338 } 338 339 … … 387 388 if (length > max) 388 389 { 389 printf("max %lf %lf %fl\n", x, y, z);390 TRACE("max %lf %lf %fl\n", x, y, z); 390 391 max = length; 391 392 } … … 406 407 fclose(fp); 407 408 408 printf("width %d, height %d, depth %d, min %f, max %f, scaleX %f, scaleY %f, scaleZ %f\n",409 TRACE("width %d, height %d, depth %d, min %f, max %f, scaleX %f, scaleY %f, scaleZ %f\n", 409 410 width, height, depth, min, max, axisScaleX, axisScaleY, axisScaleZ); 410 411 return data;
Note: See TracChangeset
for help on using the changeset viewer.