Exemple #1
0
void
SeriesData::setData( const adcontrols::Trace& trace )
{
    if ( trace.size() <= 2 )
        return;

    values_.reserve( trace.size() );
    for ( size_t i = 0; i < trace.size(); ++i )
        values_.emplace_back( trace.x(i), trace.y(i) );
}
Exemple #2
0
void
SeriesData::setData( const adcontrols::Trace& trace )
{
    if ( trace.size() <= 2 )
        return;

    values_.resize( trace.size() );
    const double *x = trace.getTimeArray();
    const double *y = trace.getIntensityArray();

    for ( size_t i = 0; i < trace.size(); ++i )
        values_[i] = QPointF( x[i], y[i] );
}