public DataViewModel(IStatisticProvider frametimeStatisticProvider, IFrametimeAnalyzer frametimeAnalyzer, IEventAggregator eventAggregator, IAppConfiguration appConfiguration) { _frametimeStatisticProvider = frametimeStatisticProvider; _frametimeAnalyzer = frametimeAnalyzer; _eventAggregator = eventAggregator; _appConfiguration = appConfiguration; SubscribeToUpdateSession(); CopyStatisticalParameterCommand = new DelegateCommand(OnCopyStatisticalParameter); CopyLShapeQuantilesCommand = new DelegateCommand(OnCopyQuantiles); CopySystemInfoCommand = new DelegateCommand(OnCopySystemInfoCommand); AcceptParameterSettingsCommand = new DelegateCommand(OnAcceptParameterSettings); ParameterFormatter = value => value.ToString(string.Format("F{0}", _appConfiguration.FpsValuesRoundingDigits), CultureInfo.InvariantCulture); _localRecordDataServer = new LocalRecordDataServer(); FrametimeGraphDataContext = new FrametimeGraphDataContext(_localRecordDataServer, _appConfiguration, _frametimeStatisticProvider); FpsGraphDataContext = new FpsGraphDataContext(_localRecordDataServer, _appConfiguration, _frametimeStatisticProvider); MessageDialogContent = new ContitionalMessageDialog(); InitializeStatisticParameter(); }
public GraphDataContextBase(IAppConfiguration appConfiguration, IRecordDataServer recordDataServer, IStatisticProvider frametimesStatisticProvider) { AppConfiguration = appConfiguration; RecordDataServer = recordDataServer; FrrametimesStatisticProvider = frametimesStatisticProvider; }
public GraphDataContextBase(IAppConfiguration appConfiguration, IRecordDataServer recordDataServer, IStatisticProvider frametimesStatisticProvider, IEventAggregator eventAggregator) { AppConfiguration = appConfiguration; RecordDataServer = recordDataServer; _frametimesStatisticProvider = frametimesStatisticProvider; _eventAggregator = eventAggregator; SubscribeToAggregatorEvents(); }
public FpsGraphDataContext(IRecordDataServer recordDataServer, IAppConfiguration appConfiguration, IStatisticProvider frametimesStatisticProvider) : base(recordDataServer, appConfiguration, frametimesStatisticProvider) { CopyFpsValuesCommand = new DelegateCommand(OnCopyFpsValues); CopyFpsPointsCommand = new DelegateCommand(OnCopyFpsPoints); // Update Chart after changing index slider RecordDataServer.FpsPointDataStream.Subscribe(sequence => { SetFpsChart(sequence); }); FpsModel = new PlotModel { PlotMargins = new OxyThickness(40, 10, 0, 40), PlotAreaBorderColor = OxyColor.FromArgb(64, 204, 204, 204), LegendPosition = LegendPosition.TopCenter, LegendOrientation = LegendOrientation.Horizontal }; //Axes //X FpsModel.Axes.Add(new LinearAxis() { Key = "xAxis", Position = AxisPosition.Bottom, Title = "Recording time [s]", MajorGridlineStyle = LineStyle.Solid, MajorGridlineThickness = 1, MajorGridlineColor = OxyColor.FromArgb(64, 204, 204, 204), MinorTickSize = 0, MajorTickSize = 0 }); //Y FpsModel.Axes.Add(new LinearAxis() { Key = "yAxis", Position = AxisPosition.Left, Title = "FPS [1/s]", MajorGridlineStyle = LineStyle.Solid, MajorGridlineThickness = 1, MajorGridlineColor = OxyColor.FromArgb(64, 204, 204, 204), MinorTickSize = 0, MajorTickSize = 0 }); }