From 246fb772c5bf7dd6a85143fadebece3b4d9f1e04 Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Tue, 1 Sep 2020 02:18:41 -0700 Subject: Add constants class and separate classes into regions --- grapher/Constants/AccelGUIConstants.cs | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 grapher/Constants/AccelGUIConstants.cs (limited to 'grapher/Constants/AccelGUIConstants.cs') diff --git a/grapher/Constants/AccelGUIConstants.cs b/grapher/Constants/AccelGUIConstants.cs new file mode 100644 index 0000000..20ec6d0 --- /dev/null +++ b/grapher/Constants/AccelGUIConstants.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace grapher.Constants +{ + public static class AccelGUIConstants + { + #region Constants + + /// Vertical separation between charts, in pixels. + public const int ChartSeparationVertical = 10; + + /// Needed to show full contents in form. Unsure why. + public const int FormHeightPadding = 35; + + /// DPI by which charts are scaled if none is set by user. + public const int DefaultDPI = 1200; + + /// Poll rate by which charts are scaled if none is set by user. + public const int DefaultPollRate = 1000; + + /// Resolution of chart calulation. + 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; + + #endregion Constants + } +} -- cgit v1.2.3