Changeset 12103 for trunk/FACT++/gui/QCameraWidget.cc
- Timestamp:
- 09/15/11 12:44:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/QCameraWidget.cc
r12093 r12103 12 12 fEnable.assign(1440, true); 13 13 lastFace = -1; 14 fShowPixelMoveOver = true; 15 fShowPatchMoveOver = true; 14 16 15 17 CalculatePixelsColor(); … … 252 254 { 253 255 int face = PixelAtPosition(cEvent->pos()); 256 // cout << face << endl; 254 257 if (face != -1 && lastFace != face) { 255 258 emit signalPixelMoveOver(face); 256 259 } 260 if (lastFace != face) 261 { 262 if (fShowPixelMoveOver) 263 fWhite = face; 264 265 if (fShowPatchMoveOver) 266 if (face != -1) 267 fWhitePatch = pixelsPatch[face]; 268 else 269 fWhitePatch = -1; 270 } 271 272 if (fShowPixelMoveOver || fShowPatchMoveOver) 273 if (lastFace != face && isVisible()) 274 updateGL(); 275 257 276 lastFace = face; 258 277 } … … 279 298 280 299 } 281 300 void QCameraWidget::ShowPixelCursor(bool on) 301 { 302 fShowPixelMoveOver = on; 303 if (isVisible() && autoRefresh) 304 updateGL(); 305 } 306 void QCameraWidget::ShowPatchCursor(bool on) 307 { 308 fShowPatchMoveOver = on; 309 if (isVisible() && autoRefresh) 310 updateGL(); 311 } 282 312 void QCameraWidget::SetEnable(int idx, bool b) 283 313 {
Note:
See TracChangeset
for help on using the changeset viewer.