Frame PvPf Plot

When working with smaller intervals it is difficult to see the
highlighted points when all the points are shown in black. This
patch adds a 'Frame Intervals' checkbox to enable the user to
turn off all the points when looking at specific intervals.

If no intervals are selected then this setting has no net effect.
All datapoints are shown.
This commit is contained in:
Mark Liversedge
2010-01-30 10:56:29 +00:00
committed by Sean Rhea
parent 67919e4d21
commit fbd5238e4e
4 changed files with 31 additions and 1 deletions

View File

@@ -169,6 +169,9 @@ PfPvPlot::PfPvPlot(MainWindow *mainWindow)
cl_ = settings->value(GC_CRANKLENGTH).toDouble() / 1000.0;
merge_intervals = false;
frame_intervals = true;
recalc();
}
@@ -415,6 +418,8 @@ PfPvPlot::showIntervals(RideItem *_rideItem)
int num_intervals=intervalCount();
if (mergeIntervals()) num_intervals = 1;
if (frameIntervals() || num_intervals==0) curve->setVisible(true);
if (frameIntervals()==false && num_intervals) curve->setVisible(false);
QVector<std::set<std::pair<double, double> > > dataSetInterval(num_intervals);
long tot_cad = 0;
@@ -620,3 +625,10 @@ PfPvPlot::setMergeIntervals(bool value)
merge_intervals = value;
showIntervals(rideItem);
}
void
PfPvPlot::setFrameIntervals(bool value)
{
frame_intervals = value;
showIntervals(rideItem);
}