/// <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); }
/// <summary> /// Clear all the plots. /// </summary> public void ClearPlots() { HeatmapPlot.ClearPlot(); TimeSeriesPlot.ClearPlot(); ShipTrackPlot.ClearPlot(); AmplitudePlot.ClearPlot(); CorrelationPlot.ClearPlot(); Profile3dPlot.ClearPlot(); }
/// <summary> /// Initialize the dashboard subsystem VM. /// </summary> /// <param name="config"></param> public DashboardSubsystemConfigViewModel(ViewSubsystemConfig config) { Config = config; _windowMgr = IoC.Get <IWindowManager>(); HeatmapPlot = IoC.Get <HeatmapPlotViewModel>(); HeatmapPlot.IsShowMenu = false; HeatmapPlot.IsShowStatusbar = false; HeatmapPlotExapnded = null; ShipTrackGmapPlot = IoC.Get <ShipTrackGmapPlotViewModel>(); ShipTrackGmapPlot.IsShowMenu = false; ShipTrackGmapPlot.IsShowStatusbar = false; ShipTrackPlotExpanded = null; ShipTrackPlot = IoC.Get <ShipTrackPlotViewModel>(); TimeSeriesPlot = IoC.Get <TimeSeriesViewModel>(); TimeSeriesPlot.IsShowMenu = false; TimeSeriesPlot.IsShowStatusbar = false; TimeSeriesPlotExpanded = null; TabularData = IoC.Get <TabularViewModel>(); TabularDataExpanded = null; Application.Current.Dispatcher.Invoke((System.Action) delegate { Profile3dPlot = IoC.Get <ProfilePlot3dViewModel>(); }); CorrelationPlot = IoC.Get <ProfilePlotViewModel>(); CorrelationPlot.SetAxis(ProfilePlotViewModel.PlotType.PLOT_CORRELATION, false); AmplitudePlot = IoC.Get <ProfilePlotViewModel>(); AmplitudePlot.SetAxis(ProfilePlotViewModel.PlotType.PLOT_AMPLITUDE, true); }