コード例 #1
0
        private void CleanData(string obj)
        {
            dataCursor.Clean();
            peaksAnalyzer.Clean();

            QuickViewChanged?.Invoke(this, EventArgs.Empty);
            AnalysisChanged?.Invoke(this, EventArgs.Empty);
        }
コード例 #2
0
        private void AllPeaksAnalysisCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            allPeaksAnalysis.WorkerReportsProgress = false;

            AnalysisChanged?.Invoke(this, EventArgs.Empty);

            AnalyzeMainPeakAvailable = true;
            AnalyzeAllPeaksAvailable = true;
            AllPeaksAnalysisPercent  = 100;

            OnPropertyChanged(nameof(AllPeaksAnalysisPercent));
            OnPropertyChanged(nameof(AnalyzeMainPeakAvailable));
            OnPropertyChanged(nameof(AnalyzeAllPeaksAvailable));
        }
コード例 #3
0
        protected virtual void OnAnalysisChanged(LidarRecommendation recommendation, double adjustAngle = 0)
        {
            if (recommendation != LastRecommendation || adjustAngle != LastAdjustAngle)
            {
                LastRecommendation = recommendation;
                LastAdjustAngle    = adjustAngle;

                AnalysisChanged?.Invoke(this, new AnalysisEventArgs()
                {
                    Recommendation = recommendation,
                    AdjustAngle    = adjustAngle
                });
            }
        }