16 if( this->
size() < 2 )
37 return QPointF(p.x, p.y);
51 throw std::runtime_error(
"the X axis is null");
63 double min_y =( std::numeric_limits<double>::max() );
64 double max_y =(-std::numeric_limits<double>::max() );
65 double min_x =( std::numeric_limits<double>::max() );
66 double max_x =(-std::numeric_limits<double>::max() );
70 const double EPS = std::numeric_limits<double>::epsilon();
72 for (
size_t i=0;
i<data_size;
i++ )
78 throw std::runtime_error(
"X and Y axis don't share the same time axis");
86 min_x = std::min( min_x, p.x() );
87 max_x = std::max( max_x, p.x() );
88 min_y = std::min( min_y, p.y() );
89 max_y = std::max( max_y, p.y() );
PointSeriesXY(const PlotData *y_axis, const PlotData *x_axis)
const Point & at(size_t index) const
virtual size_t size() const override
int getIndexFromX(Time x) const
void resize(size_t new_size)
PlotData::RangeValueOpt getVisualizationRangeY(PlotData::RangeTime range_X) override
virtual size_t size() const
nonstd::optional< RangeValue > RangeValueOpt
nonstd::optional< QPointF > sampleFromTime(double t) override
PlotData::RangeTimeOpt getVisualizationRangeX() override
nonstd::optional< RangeTime > RangeTimeOpt
bool updateCache() override