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/CombinedState.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/CombinedState.cs')
| -rw-r--r-- | grapher/Models/Charts/ChartState/CombinedState.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/grapher/Models/Charts/ChartState/CombinedState.cs b/grapher/Models/Charts/ChartState/CombinedState.cs new file mode 100644 index 0000000..bc8c720 --- /dev/null +++ b/grapher/Models/Charts/ChartState/CombinedState.cs @@ -0,0 +1,38 @@ +using grapher.Models.Calculations; + +namespace grapher.Models.Charts.ChartState +{ + public class CombinedState : ChartState + { + public CombinedState( + ChartXY sensitivityChart, + ChartXY velocityChart, + ChartXY gainChart, + AccelData accelData) + : base( + sensitivityChart, + velocityChart, + gainChart, + accelData) + { } + + public override void Activate() + { + SensitivityChart.SetCombined(); + VelocityChart.SetCombined(); + GainChart.SetCombined(); + } + + public override void MakeDots(int x, int y, double timeInMs) + { + AccelData.CalculateDots(x, y, timeInMs); + } + + public override void Bind() + { + SensitivityChart.Bind(AccelData.Combined.AccelPoints); + VelocityChart.Bind(AccelData.Combined.VelocityPoints); + GainChart.Bind(AccelData.Combined.GainPoints); + } + } +} |