displaying statistics works now

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@226 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
l_maliakal_d
2013-08-13 10:30:13 +00:00
parent eb48b1c492
commit 505328bcaa
6 changed files with 206 additions and 9 deletions

View File

@ -172,6 +172,12 @@ void RecalculatePedestal();
void SetAccumulate(bool enable);
/** Reset accumulation */
void ResetAccumulate();
/** Display Statistics */
void DisplayStatistics(bool enable);
private:
@ -260,6 +266,15 @@ void SetStyle(SlsQtH1D* h){
};
/** Find Statistics
* @param min is the minimum value
* @param max is the maximum value
* @param sum is the sum of all values
* @param array is the array to get statistics from
* @param size is the size of the array */
void GetStatistics(double &min, double &max, double &sum, double* array, int size);
@ -521,6 +536,15 @@ int binaryTo;
bool clientInitiated;
/** display statistics widgets */
QWidget *widgetStatistics;
QLabel *lblMinDisp;
QLabel *lblMaxDisp;
QLabel *lblSumDisp;
bool displayStatistics;
signals:
void UpdatingPlotFinished();