mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
included setroi for multidet
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@145 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
@ -15,5 +15,6 @@
|
||||
<file>../images/stop.png</file>
|
||||
<file>../images/leftArrow.png</file>
|
||||
<file>../images/rightArrow.png</file>
|
||||
<file>../images/upload.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
@ -9,17 +9,18 @@
|
||||
#define QTABADVANCED_H_
|
||||
|
||||
#include "qDefs.h"
|
||||
|
||||
#include "sls_detector_defs.h"
|
||||
|
||||
/** Form Header */
|
||||
#include "ui_form_tab_advanced.h"
|
||||
/** Project Class Headers */
|
||||
class multiSlsDetector;
|
||||
class slsDetector;
|
||||
/** Qt Project Class Headers */
|
||||
class qDrawPlot;
|
||||
/** Qt Include Header */
|
||||
#include <QStackedLayout>
|
||||
|
||||
#include <QSpacerItem>
|
||||
/**
|
||||
*@short sets up the advanced parameters
|
||||
*/
|
||||
@ -52,14 +53,13 @@ private:
|
||||
*/
|
||||
void Initialization();
|
||||
|
||||
|
||||
/** Add ROI Input
|
||||
* @param num number of inputs to add
|
||||
*/
|
||||
void AddROIInput(int num);
|
||||
|
||||
private slots:
|
||||
|
||||
/** Set ADC Readout
|
||||
*/
|
||||
void SetADCReadout(int i);
|
||||
|
||||
/** Enable/Disable Energy and Calibration Logs
|
||||
*/
|
||||
void SetLogs();
|
||||
@ -146,6 +146,26 @@ private slots:
|
||||
*/
|
||||
void Configuremac();
|
||||
|
||||
/** Add ROI Input if the value changed in the last slot
|
||||
*/
|
||||
void AddROIInputSlot(){AddROIInput(1);};
|
||||
|
||||
/** Clears all the ROI inputs
|
||||
*/
|
||||
void clearROI();
|
||||
|
||||
/** Gets ROIs from detector and updates it
|
||||
*/
|
||||
void updateROIList();
|
||||
|
||||
/** Sets ROI in detector
|
||||
*/
|
||||
void setROI();
|
||||
|
||||
/** Clears ROI in detector
|
||||
*/
|
||||
void clearROIinDetector();
|
||||
|
||||
private:
|
||||
/** The sls detector object */
|
||||
multiSlsDetector *myDet;
|
||||
@ -172,6 +192,23 @@ private:
|
||||
bool isEnergy;
|
||||
bool isAngular;
|
||||
|
||||
/**sls detector obejct*/
|
||||
slsDetector *det;
|
||||
|
||||
|
||||
/** ROI */
|
||||
vector <QLabel*> lblFromX;
|
||||
vector <QSpinBox*> spinFromX;
|
||||
vector <QLabel*> lblFromY;
|
||||
vector <QSpinBox*> spinFromY;
|
||||
vector <QLabel*> lblToX;
|
||||
vector <QSpinBox*> spinToX;
|
||||
vector <QLabel*> lblToY;
|
||||
vector <QSpinBox*> spinToY;
|
||||
int numRois;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user