Changeset 12671
- Timestamp:
- 11/29/11 16:55:46 (13 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/BasicGlCamera.cc
r12473 r12671 74 74 calculatePixelsCoords(); 75 75 76 /* ifstream fin2("MasterList-v3.txt");77 if (!fin2.is_open())78 {79 cout << "Error: file \"MasterList-v3\" missing. aborting." << endl;80 exit(-1);81 }82 int l = 0;83 string buf;84 while (getline(fin2, buf, '\n'))85 {86 buf = Tools::Trim(buf);87 if (buf[0]=='#')88 continue;89 90 unsigned int softid, hardid, dummy;91 92 stringstream str(buf);93 94 str >> softid;95 str >> dummy;96 str >> hardid;97 98 if (softid>=1440)99 continue;100 101 hardwareMapping[softid] = hardid;102 softwareMapping[hardid] = softid;103 104 l++;105 }*/106 76 buildVerticesList(); 107 77 /* … … 143 113 buildPatchesIndices(); 144 114 *///////////////////////////////// 145 ss[0] = 0; ss[1] = 0.25f; ss[2] = 0.5f; ss[3] = 0.75f; ss[4] = 1.0f; 146 rr[0] = 0.15; rr[1] = 0; rr[2] = 0; rr[3] = 1.0f; rr[4] = 0.85f; 147 gg[0] = 0.15; gg[1] = 0; gg[2] = 1; gg[3] = 0; gg[4] = 0.85f; 148 bb[0] = 0.15; bb[1] = 1; bb[2] = 0; bb[3] = 0; bb[4] = 0.85f; 115 regularPalettePlease(true); 116 // ss[0] = 0; ss[1] = 0.25f; ss[2] = 0.5f; ss[3] = 0.75f; ss[4] = 1.0f; 117 // rr[0] = 0.15; rr[1] = 0; rr[2] = 0; rr[3] = 1.0f; rr[4] = 0.85f; 118 // gg[0] = 0.15; gg[1] = 0; gg[2] = 1; gg[3] = 0; gg[4] = 0.85f; 119 // bb[0] = 0.15; bb[1] = 1; bb[2] = 0; bb[3] = 0; bb[4] = 0.85f; 149 120 150 121 fPixelStride = 1; … … 292 263 pixelsPatch[softwareMapping[i*9+j]] = i; 293 264 265 calculatePixelsCoords(); 266 294 267 for (int i=0;i<1440;i++) 295 268 { … … 298 271 updateNeighbors(i); 299 272 } 273 274 buildVerticesList(); 275 300 276 buildPatchesIndices(); 301 277 … … 551 527 if (!checked) return; 552 528 ss[0] = 0; ss[1] = 0.25f; ss[2] = 0.5f; ss[3] = 0.75f; ss[4] = 1.0f; 553 rr[0] = 0 .15; rr[1] = 0; rr[2] = 0; rr[3] = 1.0f; rr[4] = 0.85f;554 gg[0] = 0 .15; gg[1] = 0; gg[2] = 1; gg[3] = 0; gg[4] = 0.85f;555 bb[0] = 0. 15; bb[1] = 1; bb[2] = 0; bb[3] = 0; bb[4] = 0.85f;529 rr[0] = 0; rr[1] = 0; rr[2] = 0; rr[3] = 1.0f; rr[4] = 1; 530 gg[0] = 0; gg[1] = 1; gg[2] = 1; gg[3] = 1; gg[4] = 0; 531 bb[0] = 0.5f; bb[1] = 1; bb[2] = 0; bb[3] = 0; bb[4] = 0; 556 532 tooHighValueCoulour[0] = 1.f; 557 533 tooHighValueCoulour[1] = 1.f; 558 tooHighValueCoulour[2] = 0.f;534 tooHighValueCoulour[2] = 1.f; 559 535 tooLowValueCoulour[0] = 0.f; 560 tooLowValueCoulour[1] = 1.f;561 tooLowValueCoulour[2] = 1.f;536 tooLowValueCoulour[1] = 0.f; 537 tooLowValueCoulour[2] = 0.f; 562 538 pixelColorUpToDate = false; 563 539 … … 660 636 void BasicGlCamera::initializeGL() 661 637 { 662 qglClearColor(QColor(2 5,25,38));638 qglClearColor(QColor(212,208,200));//25,25,38)); 663 639 glShadeModel(GL_FLAT); 664 640 glEnable(GL_DEPTH_TEST); … … 1068 1044 cVertex[k] = hexcoords[j][k]*hexRadius + pixelsCoords[i][k]; 1069 1045 1070 cVertex[1] -= hexRadius;1046 // cVertex[1] -= hexRadius; 1071 1047 1072 1048 bool found = false; … … 1098 1074 cVertex[k] = hexcoords[j][k]*hexRadius + pixelsCoords[i][k]; 1099 1075 1100 cVertex[1] -= hexRadius;1076 // cVertex[1] -= hexRadius; 1101 1077 1102 1078 for (int k=0;k<numVertices;k++) -
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r12670 r12671 2392 2392 } 2393 2393 // cout << "min: " << min << " max: " << max << " average: " << average << endl; 2394 double minRange = (double)(min+(VALUES_SPAN/2))/(double)(VALUES_SPAN-1);2395 double maxRange = (double)(max+(VALUES_SPAN/2))/(double)(VALUES_SPAN-1);2396 double midRange = (double)(average+(VALUES_SPAN/2))/(double)(VALUES_SPAN-1);2394 float minRange = (float)(min+(VALUES_SPAN/2))/(float)(VALUES_SPAN-1); 2395 float maxRange = (float)(max+(VALUES_SPAN/2))/(float)(VALUES_SPAN-1); 2396 float midRange = (float)(average+(VALUES_SPAN/2))/(float)(VALUES_SPAN-1); 2397 2397 if (GLWindow->logScale) 2398 2398 {
Note:
See TracChangeset
for help on using the changeset viewer.