Changeset 12024
- Timestamp:
- 09/08/11 10:00:18 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r12006 r12024 2468 2468 void handleFeedbackDeviation(const DimData &d) 2469 2469 { 2470 if (!CheckSize(d, 2*416*sizeof(float))) 2471 return; 2472 2473 const float *ptr = d.ptr<float>(); 2474 2475 valarray<float> dev(1440); 2476 valarray<float> ref(1440); 2477 2478 for (int i=0; i<1440; i++) 2479 { 2480 const PixelMapEntry &entry = fPixelMap.index(i); 2481 2482 dev[i] = ptr[entry.hv()]; 2483 ref[i] = ptr[entry.hv()+416]; 2484 } 2485 2486 fFeedbackDevCam->SetData(dev); 2487 fFeedbackRefCam->SetData(ref); 2488 2489 fFeedbackDevCam->updateCamera(); 2490 fFeedbackRefCam->updateCamera(); 2491 } 2492 2493 void handleFeedbackReference(const DimData &d) 2494 { 2470 2495 if (!CheckSize(d, 416*sizeof(float))) 2471 2496 return; … … 2473 2498 const float *ptr = d.ptr<float>(); 2474 2499 2475 fFeedbackDevCam->SetData(valarray<float>(ptr, 416)); 2476 fFeedbackDevCam->updateGL(); 2477 } 2478 2479 void handleFeedbackReference(const DimData &d) 2480 { 2481 if (!CheckSize(d, 416*sizeof(float))) 2482 return; 2483 2484 const float *ptr = d.ptr<float>(); 2485 2486 fFeedbackRefCam->SetData(valarray<float>(ptr, 416)); 2487 fFeedbackRefCam->updateGL(); 2500 // fFeedbackRefCam->SetData(valarray<float>(ptr, 416)); 2501 // fFeedbackRefCam->updateCamera(); 2488 2502 } 2489 2503 … … 2530 2544 2531 2545 fBiasCamA->SetData(dat); 2532 fBiasCamA->update GL();2546 fBiasCamA->updateCamera(); 2533 2547 2534 2548 UpdateBiasValues(); … … 3345 3359 fBiasCamV->SetWhite(entry.index); 3346 3360 fBiasCamA->SetWhite(entry.index); 3347 fBiasCamV->update GL();3348 fBiasCamA->update GL();3361 fBiasCamV->updateCamera(); 3362 fBiasCamA->updateCamera(); 3349 3363 3350 3364 UpdateBiasCam(entry); … … 3376 3390 fBiasCamV->SetWhite(entry.index); 3377 3391 fBiasCamA->SetWhite(entry.index); 3378 fBiasCamV->update GL();3379 fBiasCamA->update GL();3392 fBiasCamV->updateCamera(); 3393 fBiasCamA->updateCamera(); 3380 3394 3381 3395 UpdateBiasHv(entry); … … 3420 3434 } 3421 3435 3422 fBiasCamV->update GL();3436 fBiasCamV->updateCamera(); 3423 3437 } 3424 3438 … … 3830 3844 fBiasCamV->SetMin(fBiasVoltMin->value()); 3831 3845 fBiasCamV->SetMax(fBiasVoltMax->value()); 3832 fBiasCamV->update GL();3846 fBiasCamV->updateCamera(); 3833 3847 3834 3848 fBiasCamA->SetMin(fBiasCurrentMin->value()); 3835 3849 fBiasCamA->SetMax(fBiasCurrentMax->value()); 3836 fBiasCamA->update GL();3850 fBiasCamA->updateCamera(); 3837 3851 3838 3852 // -------------------------------------------------------------------------- … … 3840 3854 fRatesCanv->SetMin(fRatesMin->value()); 3841 3855 fRatesCanv->SetMax(fRatesMax->value()); 3842 fRatesCanv->update GL();3856 fRatesCanv->updateCamera(); 3843 3857 on_fPixelIdx_valueChanged(0); 3844 3858
Note:
See TracChangeset
for help on using the changeset viewer.