From de6b18db8226650cee9726c4694931bdc4b89fad Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Sun, 10 Jan 2021 23:49:28 -0800 Subject: Implement direcitonality UI --- grapher/Constants/Constants.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'grapher/Constants') diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs index 5bee626..69b0bbb 100644 --- a/grapher/Constants/Constants.cs +++ b/grapher/Constants/Constants.cs @@ -61,6 +61,9 @@ namespace grapher /// Vertical placement of write button above bottom of sensitivity graph public const int ButtonVerticalOffset = 60; + /// Padding between directionality title and containing panel + public const int DirectionalityTitlePad = 2; + public const float SmallButtonSizeFactor = 0.666f; /// Format string for shortened x and y textboxes. -- cgit v1.2.3 From 6196cee980c7b8021b752b684cbe14bf7c41b657 Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Mon, 11 Jan 2021 00:34:56 -0800 Subject: Some fixes --- grapher/Constants/Constants.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grapher/Constants') diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs index 69b0bbb..7ebb2cc 100644 --- a/grapher/Constants/Constants.cs +++ b/grapher/Constants/Constants.cs @@ -62,7 +62,7 @@ namespace grapher public const int ButtonVerticalOffset = 60; /// Padding between directionality title and containing panel - public const int DirectionalityTitlePad = 2; + public const int DirectionalityTitlePad = 4; public const float SmallButtonSizeFactor = 0.666f; -- cgit v1.2.3 From 0776e8313bc2aa406da4603ca2d77e4140e35a5a Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Mon, 11 Jan 2021 14:50:37 -0800 Subject: Directionality menu progress --- grapher/Constants/Constants.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'grapher/Constants') diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs index 7ebb2cc..b86874f 100644 --- a/grapher/Constants/Constants.cs +++ b/grapher/Constants/Constants.cs @@ -62,7 +62,7 @@ namespace grapher public const int ButtonVerticalOffset = 60; /// Padding between directionality title and containing panel - public const int DirectionalityTitlePad = 4; + public const int DirectionalityTitlePad = 8; public const float SmallButtonSizeFactor = 0.666f; @@ -114,6 +114,12 @@ namespace grapher /// Default name of settings file. public const string DefaultSettingsFileName = @"settings.json"; + /// Text to direcitonality panel title when panel is closed. + public const string DirectionalityTitleClosed = "Directionality\u25BC"; + + /// Text to direcitonality panel title when panel is open. + public const string DirectionalityTitleOpen = "Directionality\u25B2"; + /// Style used by System.Double.Parse public const NumberStyles FloatStyle = NumberStyles.Float | NumberStyles.AllowThousands; -- cgit v1.2.3 From 784f7cab713640f4a13880ebc3c5abc10894d23c Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Tue, 12 Jan 2021 09:25:48 -0800 Subject: Many small tweaks --- grapher/Constants/Constants.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'grapher/Constants') diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs index b86874f..0fb9827 100644 --- a/grapher/Constants/Constants.cs +++ b/grapher/Constants/Constants.cs @@ -46,6 +46,12 @@ namespace grapher /// Horizontal separation between left side of single dropdown and left side of labels beneath dropdown public const int DropDownLeftSeparation = 10; + /// Height of sensitivity chart when displayed alone. + public const int SensitivityChartAloneHeight = 450; + + /// Height of sensitivity chart when displayed alongside Velocity and Gain charts. + public const int SensitivityChartTogetherHeight = 328; + /// Width of charts when widened public const int WideChartWidth = 723; @@ -115,10 +121,10 @@ namespace grapher public const string DefaultSettingsFileName = @"settings.json"; /// Text to direcitonality panel title when panel is closed. - public const string DirectionalityTitleClosed = "Directionality\u25BC"; + public const string DirectionalityTitleClosed = "Anisotropy\u25BC"; /// Text to direcitonality panel title when panel is open. - public const string DirectionalityTitleOpen = "Directionality\u25B2"; + public const string DirectionalityTitleOpen = "Anisotropy\u25B2"; /// Style used by System.Double.Parse public const NumberStyles FloatStyle = NumberStyles.Float | NumberStyles.AllowThousands; -- cgit v1.2.3 From 4faf0007c7c551fae8fd25fc7a98767070cb9244 Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Mon, 18 Jan 2021 22:02:29 -0800 Subject: Directional works --- grapher/Constants/Constants.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'grapher/Constants') diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs index 0fb9827..c76ac59 100644 --- a/grapher/Constants/Constants.cs +++ b/grapher/Constants/Constants.cs @@ -72,6 +72,9 @@ namespace grapher public const float SmallButtonSizeFactor = 0.666f; + /// Number of divisions between 0 and 90 degrees for directional lookup. For 19: 0, 5, 10... 85, 90. + public const int AngleDivisions = 19; + /// Format string for shortened x and y textboxes. public const string ShortenedFormatString = "0.###"; -- cgit v1.2.3 From 9c2be5743fb44e8a68084ac0bd15c02f6cce637a Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Wed, 20 Jan 2021 00:30:50 -0800 Subject: Final graph fidelity tweaks and fixes --- grapher/Constants/Constants.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'grapher/Constants') diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs index c76ac59..e31f62c 100644 --- a/grapher/Constants/Constants.cs +++ b/grapher/Constants/Constants.cs @@ -17,10 +17,7 @@ namespace grapher public const int Resolution = 100; /// Multiplied by DPI over poll rate to find rough max expected velocity. - public const double MaxMultiplier = 85; - - /// Ratio of max (X, Y) used in "by component" calulations to those used in "whole vector" calculations. - public const double XYToCombinedRatio = 1.4; + public const double MaxMultiplier = .05; /// Separation between X and Y active value labels, in pixels. public const int ActiveLabelXYSeparation = 2; -- cgit v1.2.3 From 6046120f67327411eafa9c6a9fa0601c2ea5c554 Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Wed, 20 Jan 2021 18:25:31 -0800 Subject: Tweaks --- grapher/Constants/Constants.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grapher/Constants') diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs index e31f62c..f05be34 100644 --- a/grapher/Constants/Constants.cs +++ b/grapher/Constants/Constants.cs @@ -14,7 +14,7 @@ namespace grapher public const int DefaultPollRate = 1000; /// Resolution of chart calulation. - public const int Resolution = 100; + public const int Resolution = 500; /// Multiplied by DPI over poll rate to find rough max expected velocity. public const double MaxMultiplier = .05; -- cgit v1.2.3 From e785ba5b4b4f2a991fef3c5b548b09208bee0293 Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Wed, 20 Jan 2021 18:46:47 -0800 Subject: Final GUI tweaks --- grapher/Constants/Constants.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grapher/Constants') diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs index f05be34..d58c5cf 100644 --- a/grapher/Constants/Constants.cs +++ b/grapher/Constants/Constants.cs @@ -121,10 +121,10 @@ namespace grapher public const string DefaultSettingsFileName = @"settings.json"; /// Text to direcitonality panel title when panel is closed. - public const string DirectionalityTitleClosed = "Anisotropy\u25BC"; + public const string DirectionalityTitleClosed = "Anisotropy \u25BC"; /// Text to direcitonality panel title when panel is open. - public const string DirectionalityTitleOpen = "Anisotropy\u25B2"; + public const string DirectionalityTitleOpen = "Anisotropy \u25B2"; /// Style used by System.Double.Parse public const NumberStyles FloatStyle = NumberStyles.Float | NumberStyles.AllowThousands; -- cgit v1.2.3