FACT++  1.0
void RawDataViewer::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented from BasicGlCamera.

Definition at line 493 of file RawEventsViewer.cc.

References lastPos, BasicGlCamera::PixelAtPosition(), selectedPixel, setCorrectSlice(), signalCurrentPixel(), and BasicGlCamera::toggleInterfaceDisplay().

Referenced by getCurrentPixel().

494 {
495  if (cEvent->pos().x() > width()-(width()/50.f))
496  {
498  return;
499  }
500  lastPos = cEvent->pos();
501  if (setCorrectSlice(cEvent))
502  return;
503  int face = PixelAtPosition(cEvent->pos());
504 
505  selectedPixel = face;
506  emit signalCurrentPixel(face);
507 
508  updateGL();
509 }
void toggleInterfaceDisplay()
void signalCurrentPixel(int pixel)
bool setCorrectSlice(QMouseEvent *event)
virtual int PixelAtPosition(const QPoint &pos)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: