diff options
| author | JacobPalecki <[email protected]> | 2021-01-20 20:13:33 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-20 20:13:33 -0800 |
| commit | 5b6479013c8f35df933dd57c680063f4db1e4028 (patch) | |
| tree | 60dd7c67a0f163457da2519b42553382a39a591b /grapher/Constants | |
| parent | show custom dialog on bad input (#63) (diff) | |
| parent | Guard against bad anisotropy args (diff) | |
| download | rawaccel-5b6479013c8f35df933dd57c680063f4db1e4028.tar.xz rawaccel-5b6479013c8f35df933dd57c680063f4db1e4028.zip | |
Merge pull request #65 from JacobPalecki/Directional
Directionality Features + Graph Fidelity
Diffstat (limited to 'grapher/Constants')
| -rw-r--r-- | grapher/Constants/Constants.cs | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs index 5bee626..d58c5cf 100644 --- a/grapher/Constants/Constants.cs +++ b/grapher/Constants/Constants.cs @@ -14,13 +14,10 @@ namespace grapher public const int DefaultPollRate = 1000; /// <summary> Resolution of chart calulation. </summary> - public const int Resolution = 100; + public const int Resolution = 500; /// <summary> Multiplied by DPI over poll rate to find rough max expected velocity. </summary> - public const double MaxMultiplier = 85; - - /// <summary> Ratio of max (X, Y) used in "by component" calulations to those used in "whole vector" calculations. </summary> - public const double XYToCombinedRatio = 1.4; + public const double MaxMultiplier = .05; /// <summary> Separation between X and Y active value labels, in pixels. </summary> public const int ActiveLabelXYSeparation = 2; @@ -46,6 +43,12 @@ namespace grapher /// <summary> Horizontal separation between left side of single dropdown and left side of labels beneath dropdown </summary> public const int DropDownLeftSeparation = 10; + /// <summary> Height of sensitivity chart when displayed alone. </summary> + public const int SensitivityChartAloneHeight = 450; + + /// <summary> Height of sensitivity chart when displayed alongside Velocity and Gain charts. </summary> + public const int SensitivityChartTogetherHeight = 328; + /// <summary> Width of charts when widened </summary> public const int WideChartWidth = 723; @@ -61,8 +64,14 @@ namespace grapher /// <summary> Vertical placement of write button above bottom of sensitivity graph </summary> public const int ButtonVerticalOffset = 60; + /// <summary> Padding between directionality title and containing panel </summary> + public const int DirectionalityTitlePad = 8; + public const float SmallButtonSizeFactor = 0.666f; + /// <summary> Number of divisions between 0 and 90 degrees for directional lookup. For 19: 0, 5, 10... 85, 90.</summary> + public const int AngleDivisions = 19; + /// <summary> Format string for shortened x and y textboxes. </summary> public const string ShortenedFormatString = "0.###"; @@ -111,6 +120,12 @@ namespace grapher /// <summary> Default name of settings file. </summary> public const string DefaultSettingsFileName = @"settings.json"; + /// <summary> Text to direcitonality panel title when panel is closed. </summary> + public const string DirectionalityTitleClosed = "Anisotropy \u25BC"; + + /// <summary> Text to direcitonality panel title when panel is open. </summary> + public const string DirectionalityTitleOpen = "Anisotropy \u25B2"; + /// <summary> Style used by System.Double.Parse </summary> public const NumberStyles FloatStyle = NumberStyles.Float | NumberStyles.AllowThousands; |