Ejemplo n.º 1
0
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);
	}
}
Ejemplo n.º 3
0
void SegmentModel::setEnd(const Curve::Point& pt)
{
  if (pt != m_end)
  {
    m_end = pt;
    m_valid = false;
    on_endChanged();

    endChanged();
  }
}
Ejemplo n.º 4
0
void RayCloudPlot::setEnd(NDArray end)
{
    bool success;
    auto conv = make3d(end, success);
    if (!success)
        return;

    m_end = conv;
    updateData();
    emit endChanged(end);
}
Ejemplo n.º 5
0
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()));
}