Changeset 14793 for trunk/FACT++/gui


Ignore:
Timestamp:
Jan 28, 2013, 12:33:28 PM (7 years ago)
Author:
lyard
Message:
fixed warning multiple-display
Location:
trunk/FACT++/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/Q3DCameraWidget.cc

    r14791 r14793  
    3131            _z[i] = 0;
    3232        }
     33        _warningWritten = false;
    3334    }
    3435    Q3DCameraWidget::~Q3DCameraWidget()
     
    163164    void Q3DCameraWidget::setData(float* ddata)
    164165    {
    165         cout << "Info : 3D plotter disabled. requires more work so that less than 300 slices per pixel can be loaded" << endl;
    166         cout << "Contact Etienne (etienne.lyard@unige.ch) for more information." << endl;
    167         //disabled for now as I am working with 150 slices only
     166        if (!_warningWritten)
     167        {
     168            _warningWritten = true;
     169            cout << "Info : 3D plotter disabled. requires more work so that less than 300 slices per pixel can be loaded" << endl;
     170            cout << "Contact Etienne (etienne.lyard@unige.ch) for more information." << endl;
     171        }
     172       //disabled for now as I am working with 150 slices only
    168173/*        for (int i=0;i<1440;i++)
    169174            for (int j=0;j<300;j++)
     
    176181    void Q3DCameraWidget::setData(short* ddata)
    177182    {
    178         cout << "Info : 3D plotter disabled. requires more work so that less than 300 slices per pixel can be loaded" << endl;
    179         cout << "Contact Etienne (etienne.lyard@unige.ch) for more information." << endl;
    180 /*        for (int i=0;i<1440;i++)
     183        if (!_warningWritten)
     184        {
     185            _warningWritten = true;
     186            cout << "Info : 3D plotter disabled. requires more work so that less than 300 slices per pixel can be loaded" << endl;
     187            cout << "Contact Etienne (etienne.lyard@unige.ch) for more information." << endl;
     188        }
     189            /*        for (int i=0;i<1440;i++)
    181190            for (int j=0;j<300;j++)
    182191                _data[i*300+j] = ddata[i* 300 + j];
  • trunk/FACT++/gui/Q3DCameraWidget.h

    r14250 r14793  
    7575    bool isPicking;
    7676    void calculateColorsAndPositions();
     77    bool _warningWritten;
    7778
    7879};
Note: See TracChangeset for help on using the changeset viewer.