FACT++  1.0
void QCameraWidget::mouseMoveEvent ( QMouseEvent *  event)
virtual

Reimplemented from BasicGlCamera.

Definition at line 258 of file QCameraWidget.cc.

References fShowPatchMoveOver, fShowPixelMoveOver, BasicGlCamera::fWhite, BasicGlCamera::fWhitePatch, lastFace, BasicGlCamera::PixelAtPosition(), BasicGlCamera::pixelsPatch, and BasicGlCamera::signalPixelMoveOver().

259  {
260  int face = PixelAtPosition(cEvent->pos());
261  if (face != -1 && lastFace != face) {
262  emit signalPixelMoveOver(face);
263  }
264  if (lastFace != face)
265  {
266  if (fShowPixelMoveOver)
267  fWhite = face;
268 
269  if (fShowPatchMoveOver)
270  fWhitePatch = face != -1 ? pixelsPatch[face] : -1;
271  }
272 
274  if (lastFace != face && isVisible())
275  updateGL();
276 
277  lastFace = face;
278  }
bool fShowPatchMoveOver
Definition: QCameraWidget.h:27
void signalPixelMoveOver(int pixel)
bool fShowPixelMoveOver
Definition: QCameraWidget.h:26
static int pixelsPatch[NPIX]
Definition: BasicGlCamera.h:61
virtual int PixelAtPosition(const QPoint &pos)

+ Here is the call graph for this function: