Пример #1
0
        /// <summary>
        /// Processes a single click from the mistie control; dispatches the event into the child controls
        /// </summary>
        /// <param name="pf">mouse location x, y</param>
        /// <param name="e">mouse parameters</param>
        public void ProcessMistieClick(PointF pf, MouseEventArgs e, bool[] KeyModifiers)
        {
            if (Data == null)
            {
                return;
            }
            FitterFunction ff = Data.Solution.SelectedFunction;

            ff.SetParametersFromClick(pf.X, pf.Y);
            RefreshParameterList();
            if (DataFitter != null)
            {
                DataFitter.Plot_Picks();
            }
        }
Пример #2
0
        /// <summary>
        /// Processes a single click from the digitizer; dispatches the event into the child controls
        /// </summary>
        /// <param name="x">mouse location x</param>
        /// <param name="y">mouse location y</param>
        /// <param name="c">color unter mouse location</param>
        /// <param name="e">mouse parameters</param>
        public void ProcessDigitizerClick(int x, int y, int relative_x, int relative_y,
                                          string c, MouseEventArgs e, bool[] KeyModifiers)
        {
            if (Data == null)
            {
                return;
            }
            FitterFunction ff = Data.Solution.SelectedFunction;

            if (ff == null)
            {
                return;
            }
            Point  p  = new Point(x, y);
            PointF pf = Data.Calibration.LocationToValue(p);

            ff.SetParametersFromClick(pf.X, pf.Y);
            RefreshParameterList();
            if (DataFitter != null)
            {
                DataFitter.Plot_Picks();
            }
        }