void SGMScanInfo::setEnd(const SGMEnergyPosition &end, bool ignoreDatabaseId) { if( (end_ != end) || (!ignoreDatabaseId && ((end_.id() != end.id()) || (end_.name() != end.name())) ) ){ end_ = end; setModified(true); emit endChanged(); emit scanInfoChanged(); } }
void VESPERSSpatialLineScanConfiguration::setEnd(double position) { if (end() != position){ scanAxisAt(0)->regionAt(0)->setRegionEnd(position); emit endChanged(position); setModified(true); } }
void SegmentModel::setEnd(const Curve::Point& pt) { if (pt != m_end) { m_end = pt; m_valid = false; on_endChanged(); endChanged(); } }
void RayCloudPlot::setEnd(NDArray end) { bool success; auto conv = make3d(end, success); if (!success) return; m_end = conv; updateData(); emit endChanged(end); }
void SGMFastScanParameters::setScanInfo(const SGMScanInfo &scanInfo, bool ignoreDatabaseId){ disconnect(&scanInfo_, 0); scanInfo_ = scanInfo; if(!ignoreDatabaseId && (scanInfo_.start().id() != scanInfo.start().id()) ) scanInfo_.setStart(scanInfo.start(), false); if(!ignoreDatabaseId && (scanInfo_.middle().id() != scanInfo.middle().id()) ) scanInfo_.setMiddle(scanInfo.middle(), false); if(!ignoreDatabaseId && (scanInfo_.end().id() != scanInfo.end().id()) ) scanInfo_.setEnd(scanInfo.end(), false); connect(&scanInfo_, SIGNAL(startChanged()), this, SLOT(onStartChanged())); connect(&scanInfo_, SIGNAL(middleChanged()), this, SLOT(onMiddleChanged())); connect(&scanInfo_, SIGNAL(endChanged()), this, SLOT(onEndChanged())); connect(&scanInfo, SIGNAL(scanInfoChanged()), this, SIGNAL(scanInfoChanged())); }