diff options
| author | Jacob Palecki <[email protected]> | 2020-09-17 01:29:18 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-17 01:29:18 -0700 |
| commit | 5beedd6d1aca73adaae6556ded584d3f454509b0 (patch) | |
| tree | b0aa89c37dcdae4ad2533ba5b60e75c584b47eb3 /grapher/Models/Charts/ChartState/XYOneGraphState.cs | |
| parent | Add chart states to grapher (diff) | |
| download | rawaccel-5beedd6d1aca73adaae6556ded584d3f454509b0.tar.xz rawaccel-5beedd6d1aca73adaae6556ded584d3f454509b0.zip | |
Much progress
Diffstat (limited to 'grapher/Models/Charts/ChartState/XYOneGraphState.cs')
| -rw-r--r-- | grapher/Models/Charts/ChartState/XYOneGraphState.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/grapher/Models/Charts/ChartState/XYOneGraphState.cs b/grapher/Models/Charts/ChartState/XYOneGraphState.cs index 58276e4..3ed5c5b 100644 --- a/grapher/Models/Charts/ChartState/XYOneGraphState.cs +++ b/grapher/Models/Charts/ChartState/XYOneGraphState.cs @@ -16,5 +16,23 @@ namespace grapher.Models.Charts.ChartState accelData) { } + public override void Activate() + { + SensitivityChart.SetSeparate(); + VelocityChart.SetSeparate(); + GainChart.SetSeparate(); + } + + public override void MakeDots(int x, int y, double timeInMs) + { + AccelData.CalculateDotsXY(x, y, timeInMs); + } + + public override void Bind() + { + SensitivityChart.BindXY(AccelData.X.AccelPoints, AccelData.Y.AccelPoints); + VelocityChart.BindXY(AccelData.X.VelocityPoints, AccelData.Y.VelocityPoints); + GainChart.BindXY(AccelData.X.GainPoints, AccelData.Y.GainPoints); + } } } |