Changeset 11705 for trunk/FACT++
- Timestamp:
- 07/29/11 18:06:37 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r11704 r11705 23 23 #include <qwt_symbol.h> 24 24 25 #include " ../../src/Configuration.h"25 #include "src/Configuration.h" 26 26 27 27 //Coordinates of an hexagon of radius 1 and center 0 … … 1520 1520 nsamples++; 1521 1521 // if (nsamples > 5) 1522 boardsTimeHistoItem.setSamples(xval, yval, nsamples); 1522 #if QWT_VERSION < 0x060000 1523 boardsTimeHistoItem.setData(xval, yval, nsamples); 1524 #else 1525 boardsTimeHistoItem.setSamples(xval, yval, nsamples); 1526 #endif 1523 1527 1524 1528 it = pixelHistoMap.begin(); … … 1555 1559 nsamples++; 1556 1560 // if (nsamples > 5) 1557 startCellHistoItem.setSamples(xval, yval, nsamples); 1561 #if QWT_VERSION < 0x060000 1562 startCellHistoItem.setData(xval, yval, nsamples); 1563 #else 1564 startCellHistoItem.setSamples(xval, yval, nsamples); 1565 #endif 1558 1566 1559 1567 it = timeMarksMap.begin(); … … 1590 1598 nsamples++; 1591 1599 // if (nsamples > 5) 1592 startTimeMarkHistoItem.setSamples(xval, yval, nsamples); 1600 #if QWT_VERSION < 0x060000 1601 startTimeMarkHistoItem.setData(xval, yval, nsamples); 1602 #else 1603 startTimeMarkHistoItem.setSamples(xval, yval, nsamples); 1604 #endif 1593 1605 1594 1606 it = delayMap.begin(); … … 1625 1637 nsamples++; 1626 1638 // if (nsamples > 5) 1627 triggerDelayHistoItem.setSamples(xval, yval, nsamples); 1639 #if QWT_VERSION < 0x060000 1640 triggerDelayHistoItem.setData(xval, yval, nsamples); 1641 #else 1642 triggerDelayHistoItem.setSamples(xval, yval, nsamples); 1643 #endif 1628 1644 1629 1645 … … 1764 1780 #endif 1765 1781 } 1766 pixelValueCurveItem.setRawSamples(xval, yval, viewer->nRoi); 1782 #if QWT_VERSION < 0x060000 1783 pixelValueCurveItem.setRawData(xval, yval, viewer->nRoi); 1784 #else 1785 pixelValueCurveItem.setRawSamples(xval, yval, viewer->nRoi); 1786 #endif 1767 1787 1768 1788 QStack< QRectF > stack; … … 1952 1972 po::options_description configs("Raw Events Viewer Options"); 1953 1973 configs.add_options() 1954 ("color Range", vars<double>(), "Range of the display colours")1955 ("color Red", vars<double>(), "Range of red values")1956 ("color Green", vars<double>(), "Range of green values")1957 ("color Blue", vars<double>(), "Range of blue values")1974 ("color.range", vars<double>(), "Range of the display colours") 1975 ("color.red", vars<double>(), "Range of red values") 1976 ("color.rreen", vars<double>(), "Range of green values") 1977 ("color.blue", vars<double>(), "Range of blue values") 1958 1978 ("file,f", var<string>(), "File to be loaded at startup") 1959 1979 ; 1960 1980 conf.AddOptions(configs); 1981 1982 po::positional_options_description p; 1983 p.add("file", 1); // The first positional options 1984 conf.SetArgumentPositions(p); 1985 1961 1986 } 1962 1987 /************************************************************ … … 1971 1996 return -1; 1972 1997 1973 if (conf.Has("color Range"))1974 { 1975 vector<double> value = conf.Vec<double>("color Range");1998 if (conf.Has("color.range")) 1999 { 2000 vector<double> value = conf.Vec<double>("color.range"); 1976 2001 if (value.size() != 5) 1977 2002 { … … 1983 2008 } 1984 2009 1985 if (conf.Has("color Red"))1986 { 1987 vector<double> value = conf.Vec<double>("color Red");2010 if (conf.Has("color.red")) 2011 { 2012 vector<double> value = conf.Vec<double>("color.red"); 1988 2013 if (value.size() != 5) 1989 2014 { … … 1995 2020 } 1996 2021 1997 if (conf.Has("color Green"))1998 { 1999 vector<double> value = conf.Vec<double>("color Green");2022 if (conf.Has("color.green")) 2023 { 2024 vector<double> value = conf.Vec<double>("color.green"); 2000 2025 if (value.size() != 5) 2001 2026 { … … 2007 2032 } 2008 2033 2009 if (conf.Has("color Blue"))2010 { 2011 vector<double> value = conf.Vec<double>("color Blue");2034 if (conf.Has("color.blue")) 2035 { 2036 vector<double> value = conf.Vec<double>("color.blue"); 2012 2037 if (value.size() != 5) 2013 2038 { … … 2022 2047 2023 2048 if (!QGLFormat::hasOpenGL()) { 2024 std::c out<< "This system has no OpenGL support" << std::endl;2049 std::cerr << "This system has no OpenGL support" << std::endl; 2025 2050 return 1; 2026 2051 }
Note:
See TracChangeset
for help on using the changeset viewer.