Example #1
0
        /// <summary>
        /// Set the default values for the
        /// properties.
        /// </summary>
        public void SetDefaults()
        {
            MaxEnsembles = 250;

            EastSeriesOptions                    = new HeatmapSeriesOptions();
            EastSeriesOptions.Type               = HeatmapPlotSeries.HeatmapPlotType.Earth_East_Vel;
            EastSeriesOptions.MinValue           = -0.2;
            EastSeriesOptions.MaxValue           = 0.2;
            EastSeriesOptions.ColorAxisMajorStep = 0.1;

            NorthSeriesOptions                    = new HeatmapSeriesOptions();
            NorthSeriesOptions.Type               = HeatmapPlotSeries.HeatmapPlotType.Earth_North_Vel;
            NorthSeriesOptions.MinValue           = -0.2;
            NorthSeriesOptions.MaxValue           = 0.2;
            NorthSeriesOptions.ColorAxisMajorStep = 0.1;

            VerticalSeriesOptions                    = new HeatmapSeriesOptions();
            VerticalSeriesOptions.Type               = HeatmapPlotSeries.HeatmapPlotType.Earth_Vertical_Vel;
            VerticalSeriesOptions.MinValue           = -0.2;
            VerticalSeriesOptions.MaxValue           = 0.2;
            VerticalSeriesOptions.ColorAxisMajorStep = 0.1;

            AmplitudeSeriesOptions                    = new HeatmapSeriesOptions();
            AmplitudeSeriesOptions.Type               = HeatmapPlotSeries.HeatmapPlotType.Amplitude;
            AmplitudeSeriesOptions.MinValue           = 0;
            AmplitudeSeriesOptions.MaxValue           = 120;
            AmplitudeSeriesOptions.ColorAxisMajorStep = 30;
        }
 /// <summary>
 /// Update the options.
 /// </summary>
 /// <param name="options">Options to update.</param>
 void AmplitudeVelPlot_UpdateOptionsEvent(HeatmapSeriesOptions options)
 {
     // Update the options
     _options.AmplitudeSeriesOptions = options;
     UpdateDatabaseOptions();
 }
 /// <summary>
 /// Update the options.
 /// </summary>
 /// <param name="options">Options to update.</param>
 void VerticalVelPlot_UpdateOptionsEvent(HeatmapSeriesOptions options)
 {
     // Update the options
     _options.VerticalSeriesOptions = options;
     UpdateDatabaseOptions();
 }
 /// <summary>
 /// Update the options.
 /// </summary>
 /// <param name="options">Options to update.</param>
 void NorthVelPlot_UpdateOptionsEvent(HeatmapSeriesOptions options)
 {
     // Update the options
     _options.NorthSeriesOptions = options;
     UpdateDatabaseOptions();
 }
 /// <summary>
 /// Update the options.
 /// </summary>
 /// <param name="options">Options to update.</param>
 void EastVelPlot_UpdateOptionsEvent(HeatmapSeriesOptions options)
 {
     // Update the options
     _options.EastSeriesOptions = options;
     UpdateDatabaseOptions();
 }
        /// <summary>
        /// Set the default values for the
        /// properties.
        /// </summary>
        public void SetDefaults()
        {
            PlotSize2D                    = DEFAULT_PLOT_SIZE_2D;
            PlotSize3D                    = DEFAULT_PLOT_SIZE_3D;
            BinPlotRadius                 = DEFAULT_BIN_PLOT_RAD;
            Beam0Color                    = BeamColor.DEFAULT_COLOR_BEAM_0;
            Beam1Color                    = BeamColor.DEFAULT_COLOR_BEAM_1;
            Beam2Color                    = BeamColor.DEFAULT_COLOR_BEAM_2;
            Beam3Color                    = BeamColor.DEFAULT_COLOR_BEAM_3;
            PlotColorMap                  = DEFAULT_COLORMAP;
            ContourMinimumValue           = DEFAULT_MIN_VELOCITY;
            ContourMaximumValue           = DEFAULT_MAX_VELOCITY;
            SelectedContourPlotType       = ContourPlot.PlotType.Earth_Velocity_Magnitude;
            FilterData                    = true;
            IsGoodPingEarth               = DEFAULT_GOOD_PING;
            BinHistoryMaxCount            = DEFAULT_MAX_BIN_HISTORY_COUNT;
            IsBinHistoryRealtime          = DEFAULT_IS_BIN_HISTORY_REALTIME;
            DisplayMaxEnsembles           = DEFAULT_DISPLAY_MAX_ENS;
            SelectedVelocityPlotTransform = DEFAULT_TRANSFORM;
            IsDisplay3DVelocity           = false;
            MeasurementStandard           = Core.Commons.MeasurementStandards.METRIC;
            HeatmapOptions                = new HeatmapSeriesOptions();

            TimeSeries1Options = new List <TimeSeriesOptions>();
            //TimeSeries1Options.Add( new TimeSeriesOptions
            //(
            //    DataSource.eSource.WaterProfile,
            //    BaseSeriesType.eBaseSeriesType.Base_Velocity_Beam,
            //    0,
            //    0,
            //    OxyColor.Parse(BeamColor.DEFAULT_COLOR_BEAM_0)
            //));
            //TimeSeries1Options.Add(new TimeSeriesOptions
            //(
            //    DataSource.eSource.WaterProfile,
            //    BaseSeriesType.eBaseSeriesType.Base_Velocity_Beam,
            //    1,
            //    0,
            //    OxyColor.Parse(BeamColor.DEFAULT_COLOR_BEAM_1)
            //));
            //TimeSeries1Options.Add(new TimeSeriesOptions
            //(
            //    DataSource.eSource.WaterProfile,
            //    BaseSeriesType.eBaseSeriesType.Base_Velocity_Beam,
            //    2,
            //    0,
            //    OxyColor.Parse(BeamColor.DEFAULT_COLOR_BEAM_2)
            //));
            //TimeSeries1Options.Add(new TimeSeriesOptions
            //(
            //    DataSource.eSource.WaterProfile,
            //    BaseSeriesType.eBaseSeriesType.Base_Velocity_Beam,
            //    3,
            //    0,
            //    OxyColor.Parse(BeamColor.DEFAULT_COLOR_BEAM_3)
            //));

            TimeSeries2Options = new List <TimeSeriesOptions>();
            //TimeSeries2Options.Add(new TimeSeriesOptions
            //(
            //    DataSource.eSource.BottomTrack,
            //    BaseSeriesType.eBaseSeriesType.Base_Velocity_Beam,
            //    0,
            //    0,
            //    OxyColor.Parse(BeamColor.DEFAULT_COLOR_BEAM_0)
            //));
            //TimeSeries2Options.Add(new TimeSeriesOptions
            //(
            //    DataSource.eSource.BottomTrack,
            //    BaseSeriesType.eBaseSeriesType.Base_Velocity_Beam,
            //    1,
            //    0,
            //    OxyColor.Parse(BeamColor.DEFAULT_COLOR_BEAM_1)
            //));
            //TimeSeries2Options.Add(new TimeSeriesOptions
            //(
            //    DataSource.eSource.BottomTrack,
            //    BaseSeriesType.eBaseSeriesType.Base_Velocity_Beam,
            //    2,
            //    0,
            //    OxyColor.Parse(BeamColor.DEFAULT_COLOR_BEAM_2)
            //));
            //TimeSeries2Options.Add(new TimeSeriesOptions
            //(
            //    DataSource.eSource.BottomTrack,
            //    BaseSeriesType.eBaseSeriesType.Base_Velocity_Beam,
            //    3,
            //    0,
            //    OxyColor.Parse(BeamColor.DEFAULT_COLOR_BEAM_3)
            //));

            TimeSeries3Options = new List <TimeSeriesOptions>();
            //TimeSeries3Options.Add(new TimeSeriesOptions
            //(
            //    DataSource.eSource.BottomTrack,
            //    BaseSeriesType.eBaseSeriesType.Base_Range,
            //    0,
            //    0,
            //    OxyColor.Parse(BeamColor.DEFAULT_COLOR_BEAM_0)
            //));
            //TimeSeries3Options.Add(new TimeSeriesOptions
            //(
            //    DataSource.eSource.BottomTrack,
            //    BaseSeriesType.eBaseSeriesType.Base_Range,
            //    1,
            //    0,
            //    OxyColor.Parse(BeamColor.DEFAULT_COLOR_BEAM_1)
            //));
            //TimeSeries3Options.Add(new TimeSeriesOptions
            //(
            //    DataSource.eSource.BottomTrack,
            //    BaseSeriesType.eBaseSeriesType.Base_Range,
            //    2,
            //    0,
            //    OxyColor.Parse(BeamColor.DEFAULT_COLOR_BEAM_2)
            //));
            //TimeSeries3Options.Add(new TimeSeriesOptions
            //(
            //    DataSource.eSource.BottomTrack,
            //    BaseSeriesType.eBaseSeriesType.Base_Range,
            //    3,
            //    0,
            //    OxyColor.Parse(BeamColor.DEFAULT_COLOR_BEAM_3)
            //));
        }