Changeset 11877 for trunk/FACT++/gui/QCameraWidget.cc
- Timestamp:
- 08/10/11 16:48:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/QCameraWidget.cc
r11876 r11877 323 323 void QCameraWidget::SetMin(int64_t min) 324 324 { 325 cout << "min: " << min << endl;325 // cout << "min: " << min << endl; 326 326 fMin = min; 327 327 pixelColorUpToDate = false; … … 331 331 void QCameraWidget::SetMax(int64_t max) 332 332 { 333 cout << "max: " << max << endl;333 // cout << "max: " << max << endl; 334 334 fMax = max; 335 335 pixelColorUpToDate = false; … … 388 388 color *= 9; 389 389 color += 1; 390 color = log (color);390 color = log10(color); 391 391 } 392 392 if (!fEnable[i]) … … 521 521 glVertex2f(twoX, fiveY); 522 522 glVertex2f(oneX, fiveY); 523 523 glEnd(); 524 //draw linear/log tick marks 525 glColor3f(0.f,0.f,0.f); 526 glBegin(GL_LINES); 527 float value; 528 for (int i=1;i<10;i++) 529 { 530 if (logScale) 531 value = log10(i); 532 else 533 value = (float)(i)/10.f; 534 float y = -shownSizey/2.f + value*shownSizey; 535 glVertex2f(oneX, y); 536 glVertex2f(twoX, y); 537 } 524 538 glEnd(); 525 539 glPopAttrib();
Note:
See TracChangeset
for help on using the changeset viewer.