FACT++  1.0
void UIConnector::displaySliceValue ( )
slot

Definition at line 1397 of file RawEventsViewer.cc.

References str.

1398 {
1399  if (!GLWindow->nRoi)
1400  return;
1401  if (GLWindow->selectedPixel == -1)
1402  {
1403  ostringstream str;
1404  str << " Current Pixel val.: --";
1405  currentPixelValue->setText(QString(str.str().c_str()));
1406  return;
1407  }
1408 // int mapping = GLWindow->_softwareOrdering ? GLWindow->selectedPixel : GLWindow->hardwareMapping[GLWindow->selectedPixel];
1409  int mapping = GLWindow->hardwareMapping[GLWindow->selectedPixel];
1410  const int idx = GLWindow->nRoi*mapping + GLWindow->whichSlice;
1411 
1412  ostringstream str;
1413  str << "Current Pixel val.: " << GLWindow->eventData[idx];
1414  currentPixelValue->setText(QString(str.str().c_str()));
1415 }
char str[80]
Definition: test_client.c:7