Ignore:
Timestamp:
Aug 25, 2011 1:09:15 PM (13 years ago)
Author:
gah
Message:

update from branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/packages/vizservers/nanovis/DataLoader.cpp

    r2120 r2409  
    44#include <stdlib.h>
    55#include <math.h>
     6#include <Trace.h>
    67
    78inline void endian_swap(unsigned int& x)
     
    3536        if (path.size() == 0)
    3637        {
    37                 printf("file not found[%s]\n", path.c_str());
    38                 return NULL;
     38            ERROR("file not found[%s]\n", path.c_str());
     39            return NULL;
    3940        }
    4041
     
    4243        if (fp == NULL)
    4344        {
    44                 printf("ERROR :file not found %s\n", path.c_str());
    45                 return NULL;
     45            ERROR("file not found %s\n", path.c_str());
     46            return NULL;
    4647        }
    4748
     
    173174        if (path.size() == 0)
    174175        {
    175                 printf("file not found[%s]\n", path.c_str());
    176                 return NULL;
     176            ERROR("file not found[%s]\n", path.c_str());
     177            return NULL;
    177178        }
    178179
     
    180181        if (fp == NULL)
    181182        {
    182                 printf("ERROR :file not found %s\n", path.c_str());
    183                 return NULL;
     183            ERROR("file not found %s\n", path.c_str());
     184            return NULL;
    184185        }
    185186
     
    243244                                if (length > max)
    244245                                {
    245                                         //printf("max %lf %lf %fl\n", x, y, z);
     246                                        //TRACE("max %lf %lf %fl\n", x, y, z);
    246247                                        max = length;
    247248                                }
     
    262263        fclose(fp);
    263264
    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",
    265266                width, height, depth, min, max, axisScaleX, axisScaleY, axisScaleZ);
    266267        return data;
     
    273274        if (fname == 0)
    274275        {
    275                 printf("file name is null\n");
    276                 return NULL;
     276            ERROR("file name is null\n");
     277            return NULL;
    277278        }
    278279
     
    280281        if (fp == NULL)
    281282        {
    282                 printf("ERROR :file not found %s\n", fname);
    283                 return NULL;
     283            ERROR("file not found %s\n", fname);
     284            return NULL;
    284285        }
    285286
     
    302303        if (fname == 0)
    303304        {
    304                 printf("file name is null\n");
    305                 return;
     305            ERROR("file name is null\n");
     306            return;
    306307        }
    307308
     
    309310        if (fp == NULL)
    310311        {
    311                 printf("ERROR :file not found %s\n", fname);
    312                 return;
     312            ERROR("file not found %s\n", fname);
     313            return;
    313314        }
    314315
     
    326327        if (path.size() == 0)
    327328        {
    328                 printf("file not found[%s]\n", path.c_str());
    329                 return NULL;
     329            ERROR("file not found[%s]\n", path.c_str());
     330            return NULL;
    330331        }
    331332
     
    333334        if (fp == NULL)
    334335        {
    335                 printf("ERROR :file not found %s\n", path.c_str());
    336                 return NULL;
     336            ERROR("file not found %s\n", path.c_str());
     337            return NULL;
    337338        }
    338339
     
    387388                                if (length > max)
    388389                                {
    389                                         printf("max %lf %lf %fl\n", x, y, z);
     390                                        TRACE("max %lf %lf %fl\n", x, y, z);
    390391                                        max = length;
    391392                                }
     
    406407        fclose(fp);
    407408
    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",
    409410                width, height, depth, min, max, axisScaleX, axisScaleY, axisScaleZ);
    410411        return data;
Note: See TracChangeset for help on using the changeset viewer.