Changeset 12300
- Timestamp:
- 10/27/11 16:30:58 (13 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/BasicGlCamera.h
r12297 r12300 61 61 62 62 static PixelMap fPixelMap; 63 static int pixelsPatch[NPIX]; 63 64 64 65 bool pixelColorUpToDate; … … 140 141 static std::vector<edge> patchesIndices[160]; 141 142 static int verticesIndices[NPIX][6]; 142 static int pixelsPatch[NPIX];143 143 static int softwareMapping[NPIX]; 144 144 float shownSizex; -
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r12297 r12300 638 638 catch (const runtime_error&) 639 639 { 640 try 641 { 642 inputFile->SetPtrAddress("PCTime", pcTime); 643 } 644 catch (const runtime_error&) 645 { 646 647 } 640 648 } 641 649 … … 1103 1111 updateGL(); 1104 1112 } 1105 1113 void RawDataViewer::setCurrentPixel(int pix) 1114 { 1115 if (pix == -1) 1116 return; 1117 selectedPixel = pix; 1118 if (isVisible()) 1119 updateGL(); 1120 emit signalCurrentPixel(pix); 1121 } 1106 1122 void RawDataViewer::computePulsesStatistics() 1107 1123 { … … 1202 1218 1203 1219 GLWindow_2->enableText(false); 1220 // GLWindow_2->ShowPatchCursor(true); 1204 1221 1205 1222 QObject::connect(GLWindow, SIGNAL(colorPaletteHasChanged()), … … 1213 1230 QObject::connect(GLWindow, SIGNAL(newFileLoaded()), 1214 1231 this, SLOT(newFileLoaded())); 1232 1233 QObject::connect(GLWindow_2, SIGNAL(signalCurrentPixel(int)), 1234 GLWindow, SLOT(setCurrentPixel(int))); 1235 1215 1236 1216 1237 show(); … … 1981 2002 void UIConnector::pixelChanged(int pixel) 1982 2003 { 2004 GLWindow_2->fWhite = pixel; 2005 GLWindow_2->fWhitePatch = GLWindow_2->pixelsPatch[pixel]; 2006 2007 1983 2008 pixel = GLWindow->hardwareMapping[pixel]; 1984 2009 -
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.h
r12297 r12300 75 75 void nextSlice(); 76 76 void previousSlice(); 77 void setCurrentPixel(int); 77 78 78 79 Q_SIGNALS:
Note:
See TracChangeset
for help on using the changeset viewer.