13 if (first_index > last_index || first_index < 0 || last_index < 0)
18 if (first_index == 0 && last_index ==
plotData()->
size() - 1)
26 for (
size_t i = first_index; i < last_index; i++)
28 const double Y =
sample(i).y();
32 return Range{ min_y, max_y };
43 return QPointF(p.x, p.y);
49 _source_data(source_data),
50 _dst_data(source_data->
name())
67 if( transform_ID.isEmpty() )
117 box.setTop(range_y.max);
118 box.setBottom(range_y.min);
141 if (this->
size() < 2){
virtual RangeOpt getVisualizationRangeX()
const Point & at(size_t index) const
QRectF boundingRect() const override
QPointF sample(size_t i) const override
nonstd::optional< Range > RangeOpt
const PlotData * _ts_data
virtual RangeOpt getVisualizationRangeY(Range range_X) override
optional_constexpr14 value_type const & value() const optional_ref_qual
size_t size() const override
virtual nonstd::optional< QPointF > sampleFromTime(double t) override
int getIndexFromX(double x) const
std::shared_ptr< TimeSeriesTransform > TimeSeriesTransformPtr
void setTimeOffset(double offset)
virtual size_t size() const
const PlotDataBase< double > * plotData() const
const PlotDataBase< double > * _data
void pushBack(const Point &p)
virtual RangeOpt rangeX() const