34 QVector<QxrdAcquisitionExtraInputsChannelPtr> xchans;
37 xchans = xtra->channels();
40 int nXtra = xchans.count();
46 int nDet = acq->get_DetectorCount();
48 for (
int det=0; det<nDet; det++) {
51 if (d && d->isEnabled()) {
75 QVector<QxrdAcquisitionExtraInputsChannelPtr> xchans;
78 xchans = xtra->channels();
81 int row = index.row();
82 int col = index.column();
83 int nXtra = xchans.count();
84 int nDet = acq->get_DetectorCount();
86 if (role == Qt::DisplayRole) {
89 return "====== Acquisition ======";
91 }
else if (row == 1) {
95 return acq->get_FileIndex()-1;
103 if (nXtra && row == 0) {
105 return "====== NIDAQ Inputs ======";
114 return scalerchan+row;
119 return chan->evaluateChannel();
122 return tr(
"NIDAQ Channel %1").arg(row);
128 for (
int det=0; det<nDet; det++) {
131 if (d && d->isEnabled()) {
134 return tr(
"====== Detector %1 : %2 ======").arg(det).arg(d->get_DetectorName());
143 return scalerchan+row;
145 double val = d->scalerCounts(row);
152 return tr(
"Detector %1 : ROI %2 : %3")
173 if (orientation == Qt::Horizontal) {
174 if (role == Qt::DisplayRole) {
180 return "Description";
int columnCount(const QModelIndex &parent) const
QVariant headerData(int section, Qt::Orientation orientation, int role) const
static QString outputName(int opt)
QSharedPointer< QxrdAcquisition > QxrdAcquisitionPtr
void detectorStateChanged()
QxrdAcquisitionScalerModel(QxrdAcquisitionWPtr acq)
void extraInputsChanged()
QxrdAcquisitionWPtr m_Acquisition
QVariant data(const QModelIndex &index, int role) const
int rowCount(const QModelIndex &parent) const
void valueChanged(QcepDoubleVector val, int index)
QWeakPointer< QxrdAcquisition > QxrdAcquisitionWPtr
QSharedPointer< QxrdDetector > QxrdDetectorPtr