diff options
Diffstat (limited to 'grapher/Models/Charts')
| -rw-r--r-- | grapher/Models/Charts/AccelCharts.cs | 5 | ||||
| -rw-r--r-- | grapher/Models/Charts/ChartState/ChartState.cs | 7 | ||||
| -rw-r--r-- | grapher/Models/Charts/ChartXY.cs | 9 |
3 files changed, 21 insertions, 0 deletions
diff --git a/grapher/Models/Charts/AccelCharts.cs b/grapher/Models/Charts/AccelCharts.cs index a0e99c8..7484a3a 100644 --- a/grapher/Models/Charts/AccelCharts.cs +++ b/grapher/Models/Charts/AccelCharts.cs @@ -143,6 +143,11 @@ namespace grapher AlignWriteButton(); } + public void Redraw() + { + ChartState.Redraw(); + } + public void Calculate(ManagedAccel accel, DriverSettings settings) { ChartState.SetUpCalculate(settings); diff --git a/grapher/Models/Charts/ChartState/ChartState.cs b/grapher/Models/Charts/ChartState/ChartState.cs index e1c7d01..1898e12 100644 --- a/grapher/Models/Charts/ChartState/ChartState.cs +++ b/grapher/Models/Charts/ChartState/ChartState.cs @@ -48,6 +48,13 @@ namespace grapher.Models.Charts.ChartState public abstract void Calculate(ManagedAccel accel, DriverSettings settings); + public void Redraw() + { + SensitivityChart.Update(); + VelocityChart.Update(); + GainChart.Update(); + } + public virtual void SetUpCalculate(DriverSettings settings) { Data.Clear(); diff --git a/grapher/Models/Charts/ChartXY.cs b/grapher/Models/Charts/ChartXY.cs index c30c993..3bd7601 100644 --- a/grapher/Models/Charts/ChartXY.cs +++ b/grapher/Models/Charts/ChartXY.cs @@ -154,6 +154,15 @@ namespace grapher */ } + public void Update() + { + ChartX.Update(); + if (ChartY.Visible) + { + ChartY.Update(); + } + } + public void SetPointBinds(PointData combined, PointData x, PointData y) { CombinedPointData = combined; |