Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Shutdown the view model.
        /// </summary>
        public void Dispose()
        {
            TabularData.Dispose();

            if (TabularDataExpanded != null)
            {
                TabularDataExpanded.Dispose();
            }
        }