- Timestamp:
- 05/16/11 15:47:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r10715 r10716 26 26 #include "TMarker.h" 27 27 #include "TColor.h" 28 29 #define HAS_ROOT30 28 31 29 using namespace std; … … 53 51 double bb[5] = {0., 1.00, 0.00, 0.00, 1.00}; 54 52 55 const Int_t nn = 14 38;53 const Int_t nn = 1440; 56 54 57 55 Int_t idx = TColor::CreateGradientColorTable(5, ss, rr, gg, bb, nn); … … 120 118 121 119 valarray<double> fData; 122 map<int,bool> fBold;123 map<int,bool> fEnable;120 vector<bool> fBold; 121 vector<bool> fEnable; 124 122 125 123 int fWhite; 126 124 127 125 public: 128 Camera() : fData( 0., 1438), fWhite(-1)126 Camera() : fData(1440), fBold(1440), fEnable(1440), fWhite(-1) 129 127 { 130 128 CreatePalette(); 131 129 CreateGeometry(); 132 130 133 for (int i=0; i<1438; i++) 134 fData[i] = i; 131 for (int i=0; i<1440; i++) 132 { 133 fData[i] = i; 134 fBold[i]=false; 135 fEnable[i]=true; 136 } 135 137 } 136 138 … … 205 207 206 208 Paint(*p); 207 209 } 208 210 209 211 line.SetLineWidth(2); … … 910 912 911 913 // ---------------------------------------------- 912 #ifdef HA S_ROOT914 #ifdef HAVE_ROOT 913 915 TCanvas *c = fFtmTempCanv->GetCanvas(); 914 916 915 static int cntr = 0; 916 double_t tm = cntr++;//Time().RootTime(); 917 // static int cntr = 0; 918 // double_t tm = cntr++;//Time().RootTime(); 919 920 double tm = d.time.RootTime(); 921 922 cout << tm << endl; 917 923 918 924 TH1 *h = (TH1*)c->FindObject("MyFrame"); … … 929 935 // ---------------------------------------------- 930 936 931 valarray<double> dat(0., 14 38);932 933 for (int i=0; i<14 38; i++)937 valarray<double> dat(0., 1440); 938 939 for (int i=0; i<1440; i++) 934 940 dat[i] = sdata.fRatePatch[fPatch[i]]; 935 941 … … 1048 1054 SetFtuStatusLed(d.time); 1049 1055 1050 #ifdef HA S_ROOT1056 #ifdef HAVE_ROOT 1051 1057 Camera *cam = (Camera*)fRatesCanv->GetCanvas()->FindObject("Camera"); 1052 for (int i=0; i<14 38; i++)1058 for (int i=0; i<1440; i++) 1053 1059 cam->SetEnable(i, sdata.IsEnabled(i)); 1054 1060 #endif … … 1525 1531 } 1526 1532 1527 #ifdef HA S_ROOT1533 #ifdef HAVE_ROOT 1528 1534 void slot_RootEventProcessed(TObject *obj, unsigned int evt, TCanvas *) 1529 1535 { … … 1680 1686 1681 1687 // -------------------------------------------------------------------------- 1682 #ifdef HA S_ROOT1688 #ifdef HAVE_ROOT 1683 1689 TCanvas *c = fFtmTempCanv->GetCanvas(); 1684 1690 c->SetBit(TCanvas::kNoContextMenu); … … 1699 1705 h.SetYTitle("Temperature / °C"); 1700 1706 h.GetXaxis()->CenterTitle(); 1701 h.GetYaxis()->CenterTitle(); 1702 // h.GetXaxis()->SetTitleSize(1.2); 1707 h.GetYaxis()->CenterTitle(); 1708 h.GetXaxis()->SetTimeDisplay(true); 1709 h.GetXaxis()->SetTimeFormat("%H:%M"); 1710 h.GetXaxis()->SetLabelSize(0.025); 1703 1711 // h.GetYaxis()->SetTitleSize(1.2); 1704 1712 h.DrawCopy();
Note:
See TracChangeset
for help on using the changeset viewer.