Changeset 12072 for trunk/FACT++


Ignore:
Timestamp:
09/12/11 16:44:48 (13 years ago)
Author:
lyard
Message:
forgot a line in the upate
File:
1 edited

Legend:

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

    r12071 r12072  
    230230        int face = PixelAtPosition(cEvent->pos());
    231231        if (face != -1) {
    232  //           fWhite = face;
    233    //         fWhitePatch = pixelsPatch[fWhite];
     232            fWhite = face;
     233            fWhitePatch = pixelsPatch[fWhite];
    234234 //           CalculatePatchColor();
    235235            emit signalCurrentPixel(face);
     
    237237        else
    238238        {
    239  //           fWhite = -1;
    240  //           fWhitePatch = -1;
    241         }
    242 //        updateGL();
     239            fWhite = -1;
     240            fWhitePatch = -1;
     241        }
     242        updateGL();
    243243   }
    244244    void QCameraWidget::mouseMoveEvent(QMouseEvent* cEvent)
     
    255255        if (face != -1) {
    256256 //           cout << "Event !" << endl;
    257  //           fWhite = face;
    258  //            fWhitePatch = pixelsPatch[fWhite];
     257            fWhite = face;
     258             fWhitePatch = pixelsPatch[fWhite];
    259259 //          highlightPixel(face);
    260260 //           highlightPatch(fWhitePatch);
     
    264264        else
    265265        {
    266  //           fWhite = -1;
    267  //           fWhitePatch = -1;
     266            fWhite = -1;
     267            fWhitePatch = -1;
    268268 //           clearHighlightedPixels();
    269269 //           clearHighlightedPatches();
    270270        }
    271  //       updateGL();
     271        updateGL();
    272272
    273273    }
     
    303303         double dmin = fData[0];
    304304          double dmax = fData[0];
    305           if (fMin < 0 || fMax < 0)
     305          if (fMin < fScaleLimit || fMax < fScaleLimit)
    306306          {
    307307              for (int i=0;i<ACTUAL_NUM_PIXELS;i++)
     
    312312              }
    313313          }
    314           if (fMin >= 0) dmin = fMin;
    315           if (fMax >= 0) dmax = fMax;
     314          if (fMin > fScaleLimit) dmin = fMin;
     315          if (fMax > fScaleLimit) dmax = fMax;
    316316//          cout << "min: " << dmin << " max: " << dmax << " fMin: " << fMin << " fMax: " << fMax << endl;
    317317          float color;
Note: See TracChangeset for help on using the changeset viewer.