summaryrefslogtreecommitdiff
path: root/grapher/Models/AccelGUI.cs
diff options
context:
space:
mode:
authorJacobPalecki <[email protected]>2021-01-20 20:13:33 -0800
committerGitHub <[email protected]>2021-01-20 20:13:33 -0800
commit5b6479013c8f35df933dd57c680063f4db1e4028 (patch)
tree60dd7c67a0f163457da2519b42553382a39a591b /grapher/Models/AccelGUI.cs
parentshow custom dialog on bad input (#63) (diff)
parentGuard against bad anisotropy args (diff)
downloadrawaccel-5b6479013c8f35df933dd57c680063f4db1e4028.tar.xz
rawaccel-5b6479013c8f35df933dd57c680063f4db1e4028.zip
Merge pull request #65 from JacobPalecki/Directional
Directionality Features + Graph Fidelity
Diffstat (limited to 'grapher/Models/AccelGUI.cs')
-rw-r--r--grapher/Models/AccelGUI.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/grapher/Models/AccelGUI.cs b/grapher/Models/AccelGUI.cs
index bb634ff..5cd7012 100644
--- a/grapher/Models/AccelGUI.cs
+++ b/grapher/Models/AccelGUI.cs
@@ -72,6 +72,11 @@ namespace grapher
SetupButtons();
AccelForm.DoResize();
+
+ // TODO: The below removes an overlapping form from the anisotropy panel.
+ // Figure out why and remove the overlap and below.
+ ApplyOptions.Directionality.Show();
+ ApplyOptions.Directionality.Hide();
}
#endregion Constructors
@@ -149,6 +154,8 @@ namespace grapher
args = newArgs,
minimumTime = driverSettings.minimumTime,
directionalMultipliers = driverSettings.directionalMultipliers,
+ domainArgs = ApplyOptions.Directionality.GetDomainArgs(),
+ rangeXY = ApplyOptions.Directionality.GetRangeXY(),
deviceID = DeviceIDManager.ID,
};
@@ -206,7 +213,7 @@ namespace grapher
private void SetupButtons()
{
- WriteButton.Top = AccelCharts.Top + AccelCharts.TopChartHeight - Constants.ButtonVerticalOffset;
+ WriteButton.Top = Constants.SensitivityChartAloneHeight - Constants.ButtonVerticalOffset;
ToggleButton.Appearance = Appearance.Button;
ToggleButton.FlatStyle = FlatStyle.System;