VESPERSSpatialLineScanConfiguration::VESPERSSpatialLineScanConfiguration(QObject *parent) : AMStepScanConfiguration(parent), VESPERSScanConfiguration() { setName("Line Scan"); setUserScanName("Line Scan"); dbObject_->setParent(this); setIncomingChoice(VESPERS::Imini); setFluorescenceDetector(VESPERS::SingleElement); setMotor(VESPERS::H); setCCDDetector(VESPERS::NoCCD); setCCDFileName(""); setExportSpectraSources(true); setExportSpectraInRows(true); setOtherPosition(-123456789.0); setCloseFastShutter(true); setReturnToOriginalPosition(false); AMScanAxisRegion *region = new AMScanAxisRegion; AMScanAxis *axis = new AMScanAxis(AMScanAxis::StepAxis, region); appendScanAxis(axis); connect(this, SIGNAL(startChanged(double)), this, SLOT(computeTotalTime())); connect(this, SIGNAL(stepChanged(double)), this, SLOT(computeTotalTime())); connect(this, SIGNAL(endChanged(double)), this, SLOT(computeTotalTime())); connect(this, SIGNAL(timeChanged(double)), this, SLOT(computeTotalTime())); connect(dbObject_, SIGNAL(ccdDetectorChanged(int)), this, SLOT(computeTotalTime())); }
VESPERS2DScanConfiguration::VESPERS2DScanConfiguration(QObject *parent) : AMStepScanConfiguration(parent), VESPERSScanConfiguration() { setName("2D Map"); setUserScanName("2D Map"); dbObject_->setParent(this); setIncomingChoice(VESPERS::Imini); setFluorescenceDetector(VESPERS::SingleElement); setMotor(VESPERS::Motors(VESPERS::H | VESPERS::V)); setCCDDetector(VESPERS::NoCCD); setCCDFileName(""); setExportAsAscii(true); setExportSpectraSources(true); setExportSpectraInRows(true); setCloseFastShutter(true); setReturnToOriginalPosition(false); AMScanAxisRegion *region = new AMScanAxisRegion; AMScanAxis *axis = new AMScanAxis(AMScanAxis::StepAxis, region); appendScanAxis(axis); region = new AMScanAxisRegion; axis = new AMScanAxis(AMScanAxis::StepAxis, region); appendScanAxis(axis); connect(scanAxisAt(0)->regionAt(0), SIGNAL(regionStartChanged(AMNumber)), this, SLOT(computeTotalTime())); connect(scanAxisAt(0)->regionAt(0), SIGNAL(regionStepChanged(AMNumber)), this, SLOT(computeTotalTime())); connect(scanAxisAt(0)->regionAt(0), SIGNAL(regionEndChanged(AMNumber)), this, SLOT(computeTotalTime())); connect(scanAxisAt(0)->regionAt(0), SIGNAL(regionTimeChanged(AMNumber)), this, SLOT(computeTotalTime())); connect(scanAxisAt(1)->regionAt(0), SIGNAL(regionStartChanged(AMNumber)), this, SLOT(computeTotalTime())); connect(scanAxisAt(1)->regionAt(0), SIGNAL(regionStepChanged(AMNumber)), this, SLOT(computeTotalTime())); connect(scanAxisAt(1)->regionAt(0), SIGNAL(regionEndChanged(AMNumber)), this, SLOT(computeTotalTime())); connect(dbObject_, SIGNAL(ccdDetectorChanged(int)), this, SLOT(computeTotalTime())); }
VESPERS2DScanConfiguration::VESPERS2DScanConfiguration(const VESPERS2DScanConfiguration &original) : AMStepScanConfiguration(original), VESPERSScanConfiguration(original) { setName(original.name()); setUserScanName(original.name()); dbObject_->setParent(this); setExportAsAscii(original.exportAsAscii()); setExportSpectraSources(original.exportSpectraSources()); setExportSpectraInRows(original.exportSpectraInRows()); setCloseFastShutter(original.closeFastShutter()); setReturnToOriginalPosition(original.returnToOriginalPosition()); computeTotalTime(); connect(scanAxisAt(0)->regionAt(0), SIGNAL(regionStartChanged(AMNumber)), this, SLOT(computeTotalTime())); connect(scanAxisAt(0)->regionAt(0), SIGNAL(regionStepChanged(AMNumber)), this, SLOT(computeTotalTime())); connect(scanAxisAt(0)->regionAt(0), SIGNAL(regionEndChanged(AMNumber)), this, SLOT(computeTotalTime())); connect(scanAxisAt(0)->regionAt(0), SIGNAL(regionTimeChanged(AMNumber)), this, SLOT(computeTotalTime())); connect(scanAxisAt(1)->regionAt(0), SIGNAL(regionStartChanged(AMNumber)), this, SLOT(computeTotalTime())); connect(scanAxisAt(1)->regionAt(0), SIGNAL(regionStepChanged(AMNumber)), this, SLOT(computeTotalTime())); connect(scanAxisAt(1)->regionAt(0), SIGNAL(regionEndChanged(AMNumber)), this, SLOT(computeTotalTime())); connect(dbObject_, SIGNAL(ccdDetectorChanged(int)), this, SLOT(computeTotalTime())); }
VESPERSTimeScanConfiguration::VESPERSTimeScanConfiguration(QObject *parent) : AMTimedRegionScanConfiguration(parent), VESPERSScanConfiguration() { setName("Timed Scan"); setUserScanName("Timed Scan"); dbObject_->setParent(this); setIncomingChoice(VESPERS::Imini); setFluorescenceDetector(VESPERS::SingleElement); setCCDDetector(VESPERS::NoCCD); setCCDFileName(""); setExportSpectraSources(true); setExportSpectraInRows(true); setTime(1); setTimePerAcquisition(10); setIterations(1); computeTotalTime(); connect(this, SIGNAL(timeChanged(double)), this, SLOT(computeTotalTime())); connect(this, SIGNAL(timePerAcquisitionChanged(double)), this, SLOT(computeTotalTime())); connect(this, SIGNAL(iterationsChanged(int)), this, SLOT(computeTotalTime())); connect(dbObject_, SIGNAL(ccdDetectorChanged(int)), this, SLOT(computeTotalTime())); }