- Timestamp:
- 09/12/11 16:44:48 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/QCameraWidget.cc
r12071 r12072 230 230 int face = PixelAtPosition(cEvent->pos()); 231 231 if (face != -1) { 232 //fWhite = face;233 //fWhitePatch = pixelsPatch[fWhite];232 fWhite = face; 233 fWhitePatch = pixelsPatch[fWhite]; 234 234 // CalculatePatchColor(); 235 235 emit signalCurrentPixel(face); … … 237 237 else 238 238 { 239 //fWhite = -1;240 //fWhitePatch = -1;241 } 242 //updateGL();239 fWhite = -1; 240 fWhitePatch = -1; 241 } 242 updateGL(); 243 243 } 244 244 void QCameraWidget::mouseMoveEvent(QMouseEvent* cEvent) … … 255 255 if (face != -1) { 256 256 // cout << "Event !" << endl; 257 //fWhite = face;258 //fWhitePatch = pixelsPatch[fWhite];257 fWhite = face; 258 fWhitePatch = pixelsPatch[fWhite]; 259 259 // highlightPixel(face); 260 260 // highlightPatch(fWhitePatch); … … 264 264 else 265 265 { 266 //fWhite = -1;267 //fWhitePatch = -1;266 fWhite = -1; 267 fWhitePatch = -1; 268 268 // clearHighlightedPixels(); 269 269 // clearHighlightedPatches(); 270 270 } 271 //updateGL();271 updateGL(); 272 272 273 273 } … … 303 303 double dmin = fData[0]; 304 304 double dmax = fData[0]; 305 if (fMin < 0 || fMax < 0)305 if (fMin < fScaleLimit || fMax < fScaleLimit) 306 306 { 307 307 for (int i=0;i<ACTUAL_NUM_PIXELS;i++) … … 312 312 } 313 313 } 314 if (fMin > = 0) dmin = fMin;315 if (fMax > = 0) dmax = fMax;314 if (fMin > fScaleLimit) dmin = fMin; 315 if (fMax > fScaleLimit) dmax = fMax; 316 316 // cout << "min: " << dmin << " max: " << dmax << " fMin: " << fMin << " fMax: " << fMax << endl; 317 317 float color;
Note:
See TracChangeset
for help on using the changeset viewer.