diff options
| author | Jacob Palecki <[email protected]> | 2020-09-16 01:20:23 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-16 01:20:23 -0700 |
| commit | 05c7094a93c7d29eb8ac05247110995574a7b963 (patch) | |
| tree | 8bf2845cc7f33d2e20399001d2724510cf35336a /grapher/Models/Charts/ChartState/XYTwoGraphState.cs | |
| parent | Fix box write (diff) | |
| download | rawaccel-05c7094a93c7d29eb8ac05247110995574a7b963.tar.xz rawaccel-05c7094a93c7d29eb8ac05247110995574a7b963.zip | |
Unsure if I will use this
Diffstat (limited to 'grapher/Models/Charts/ChartState/XYTwoGraphState.cs')
| -rw-r--r-- | grapher/Models/Charts/ChartState/XYTwoGraphState.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/grapher/Models/Charts/ChartState/XYTwoGraphState.cs b/grapher/Models/Charts/ChartState/XYTwoGraphState.cs new file mode 100644 index 0000000..f37af08 --- /dev/null +++ b/grapher/Models/Charts/ChartState/XYTwoGraphState.cs @@ -0,0 +1,38 @@ +using grapher.Models.Calculations; + +namespace grapher.Models.Charts.ChartState +{ + public class XYTwoGraphState : ChartState + { + public XYTwoGraphState( + ChartXY sensitivityChart, + ChartXY velocityChart, + ChartXY gainChart, + AccelData accelData) + : base( + sensitivityChart, + velocityChart, + gainChart, + 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); + } + } +} |