コード例 #1
0
        /// <summary>
        /// Process the new data.
        /// </summary>
        private void ProcessData()
        {
            // Get the average velocity and direction
            CalcAvgVelDir();

            // Get the boat speed
            AverageBoatSpeed();

            // Pass the data to tabular
            TabularData.ProcessData(_ensemble);
            if (TabularDataExpanded != null)
            {
                TabularDataExpanded.ProcessData(_ensemble);
            }

            TimeSeriesPlot.AddEnsemble(_ensemble);

            // Plot 3D Velocity Plot
            Plot3dVelocityPlot();

            // Update the Heatmap
            HeatmapPlot.AddEnsemble(_ensemble);
            if (HeatmapPlotExapnded != null)
            {
                HeatmapPlotExapnded.AddEnsemble(_ensemble);
            }

            // Plot the amplitude data
            AmplitudePlot.AddEnsemble(_ensemble);

            // Plot the correlation data
            CorrelationPlot.AddEnsemble(_ensemble);
        }
コード例 #2
0
        /// <summary>
        /// Expand the Heatmap plot to a new window.
        /// Pass all the data from the old plot to the new plot.
        /// </summary>
        public void ExpandHeatmapPlot()
        {
            // Create the Heatmap plot and attach to deactivate
            HeatmapPlotExapnded              = IoC.Get <HeatmapPlotViewModel>();
            HeatmapPlotExapnded.Deactivated += HeatmapPlotExapnded_Deactivated;

            // Show the window and update the button
            dynamic settings = new ExpandoObject();

            settings.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            settings.MinWidth  = 600;
            settings.MinHeight = 300;
            _windowMgr.ShowWindow(HeatmapPlotExapnded, null, settings);
            NotifyOfPropertyChange(() => this.CanExpandHeatmapPlot);

            // Duplicate the plot
            HeatmapPlotExapnded.DuplicatePlot(HeatmapPlot);
        }