Beispiel #1
0
        public void PostSwingDataAsDistance([FromBody] SwingData swingSpeed)
        {
            int swingDistance = DistanceMeasurer.CalculateDistance(swingSpeed);

            if (swingDistance != 0)
            {
                FinalSwingDistance = swingDistance;
            }
        }
Beispiel #2
0
        private void Init(string description, string title, ICollection types)
        {
            this.description = description;
            this.title       = title;
            this.types       = types;

            ZedGraphControl = new ZedGraphControl
            {
                IsAntiAlias       = true,
                IsShowCrossHair   = true,
                IsShowVScrollBar  = true,
                IsShowHScrollBar  = true,
                IsAutoScrollRange = true,

                //CrossHairType   = CrossHairType.MasterPane
            };
            m_DistanceMeasurer        = new DistanceMeasurer(ZedGraphControl, Color.DarkOrange, Color.Red, 9.0F, CoordType.AxisXYScale);
            GraphPane.IsBoundedRanges = true;
        }
 public InteractiveGraphViewer()
 {
     _PreviewRectangle = new PreviewRect(this);
     _DistanceLine = new DistanceMeasurer(this);
     InitializeComponent();
 }