当前位置: 首页 > news >正文

织梦网站教程id怎么自动导入wordpress

织梦网站教程,id怎么自动导入wordpress,wordpress国内工作室主题,多少钱需要交个人所得税文章目录 avalonia、WPF使用ScottPlot动态显示ECG心电图实现效果#xff0c;动态效果懒得录视频了安装代码部分UpdateData方法就是用来更新心电图表的方法#xff0c; 根据消息队列数据去更新是视图中的ScottPlot 图表 avalonia、WPF使用ScottPlot动态显示ECG心电图 avalonia… 文章目录 avalonia、WPF使用ScottPlot动态显示ECG心电图实现效果动态效果懒得录视频了安装代码部分UpdateData方法就是用来更新心电图表的方法 根据消息队列数据去更新是视图中的ScottPlot 图表 avalonia、WPF使用ScottPlot动态显示ECG心电图 avalonia、WPF使用ScottPlot动态显示ECG心电图 实现效果动态效果懒得录视频了 安装 1.安装ScottPlot.Avalonia NuGet包 注意 如果开发环境是macos、linux需要按照官网步骤配置环境 此处是官网配置链接 代码部分 view部分 注意安装包之后引入 xmlns:ScottPlotclr-namespace:ScottPlot.Avalonia;assemblyScottPlot.Avalonia Window xmlnshttps://github.com/avaloniauixmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:dhttp://schemas.microsoft.com/expression/blend/2008xmlns:mchttp://schemas.openxmlformats.org/markup-compatibility/2006mc:Ignorabled d:DesignWidth1920 d:DesignHeight600xmlns:vmusing:AvaloniaMedical.ViewModelsx:ClassAvaloniaMedical.Views.xxxmlns:ScottPlotclr-namespace:ScottPlot.Avalonia;assemblyScottPlot.Avaloniax:DataTypevm:xxxmlns:viewsclr-namespace:AvaloniaMedical.Viewsxmlns:iclr-namespace:Avalonia.Xaml.Interactivity;assemblyAvalonia.Xaml.Interactivityxmlns:controls1clr-namespace:Material.Styles.Controls;assemblyMaterial.StylesBackground#31363A此处只显示三导心电ScottPlot:AvaPlot Height200 NameAvaPlotName1 Grid.Row1 Grid.Column0 /ScottPlot:AvaPlotScottPlot:AvaPlot Height200 NameAvaPlotName2 Grid.Row2 Grid.Column0 /ScottPlot:AvaPlotScottPlot:AvaPlot Height200 NameAvaPlotName3 Grid.Row3 Grid.Column0 /ScottPlot:AvaPlot /Windowusing System; using System.Collections.ObjectModel; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.Threading; using Avalonia; using Avalonia.Controls; using Avalonia.Data; using Avalonia.Markup.Xaml; using Avalonia.Threading; using AvaloniaMedical.ViewModels; using Npoi.Mapper; using ScottPlot; using ScottPlot.Avalonia; using ScottPlot.Plottable;namespace AvaloniaMedical.Views;public partial class xx : Window {private readonly double[] liveData new double[4000];private readonly double[] liveData2 new double[4000];private readonly double[] liveData3 new double[4000];private readonly Timer _updateDataTimer;private readonly DispatcherTimer _renderTimer;private readonly VLine vline;private readonly VLine vline2;private readonly VLine vline3;int nextValueIndex -1;int nextValueIndex2 -1;int nextValueIndex3 -1;AvaPlot AvaPlot1;AvaPlot AvaPlot2;AvaPlot AvaPlot3;public xx(){InitializeComponent();#if DEBUGthis.AttachDevTools(); #endifAvaPlot1 this.FindAvaPlot(AvaPlotName1);AvaPlot2 this.FindAvaPlot(AvaPlotName2);AvaPlot3 this.FindAvaPlot(AvaPlotName3);AvaPlot1.Plot.AddSignal(liveData, 1, color: Color.LightGreen);AvaPlot1.Plot.AxisAutoX(margin: 0);AvaPlot1.Plot.SetAxisLimits(yMin: 2, yMax:7);AvaPlot2.Plot.AddSignal(liveData2, 1, color: Color.LightGreen);AvaPlot2.Plot.AxisAutoX(margin: 0);AvaPlot2.Plot.SetAxisLimits(yMin: 2, yMax: 7);AvaPlot3.Plot.AddSignal(liveData3, 1, color: Color.LightGreen);AvaPlot3.Plot.AxisAutoX(margin: 0);AvaPlot3.Plot.SetAxisLimits(yMin: 2, yMax: 7);vline AvaPlot1.Plot.AddVerticalLine(0, Color.LightGreen, 1);vline2 AvaPlot2.Plot.AddVerticalLine(0, Color.LightGreen, 1);vline3 AvaPlot3.Plot.AddVerticalLine(0, Color.LightGreen, 1);///Binding binding new Binding();binding.Source AvaPlot1;binding.Path new ropertyPath();AvaPlot1.SetValue(TagProperty, 0);AvaPlot1.Plot.Style(Style.Gray1); AvaPlot2.Plot.Style(Style.Gray1); AvaPlot3.Plot.Style(Style.Gray1); customize styling//AvaPlot1.Plot.Title(Electrocardiogram Strip Chart);AvaPlot1.Plot.Grid(true);AvaPlot2.Plot.Grid(true);AvaPlot3.Plot.Grid(true);// create a traditional timer to update the data//_updateDataTimer new Timer(_ UpdateData(), null, 0, 1); create a separate timer to update the GUI_renderTimer new DispatcherTimer{Interval TimeSpan.FromMilliseconds(1)};_renderTimer.Tick Render;_renderTimer.Start();Closed (sender, args) {_updateDataTimer?.Dispose();_renderTimer?.Stop();};}public void UpdateChart(double dto){UpdateData(dto);}public void UpdateChart2(double dto){UpdateData2(dto);}public void UpdateChart3(double dto){UpdateData3(dto);}void UpdateData(double dto){// scroll the whole chart to the left// Array.Copy(liveData, 1, liveData, 0, liveData.Length - 1);// place the newest data point at the enddouble nextValue dto;nextValueIndex (nextValueIndex liveData.Length - 1) ? nextValueIndex 1 : 0;liveData[nextValueIndex] nextValue;vline.IsVisible true;vline.X nextValueIndex;}void UpdateData2(double dto){// scroll the whole chart to the left// Array.Copy(liveData, 1, liveData, 0, liveData.Length - 1);// place the newest data point at the enddouble nextValue dto;nextValueIndex2 (nextValueIndex2 liveData2.Length - 1) ? nextValueIndex2 1 : 0;liveData2[nextValueIndex2] nextValue;vline2.IsVisible true;vline2.X nextValueIndex2;}void UpdateData3(double dto){// scroll the whole chart to the left// Array.Copy(liveData, 1, liveData, 0, liveData.Length - 1);// place the newest data point at the enddouble nextValue dto;nextValueIndex3 (nextValueIndex3 liveData3.Length - 1) ? nextValueIndex3 1 : 0;liveData3[nextValueIndex3] nextValue;vline3.IsVisible true;vline3.X nextValueIndex3;}void Render(object sender, EventArgs e){AvaPlot1.Refresh();AvaPlot2.Refresh();AvaPlot3.Refresh();}private void InitializeComponent(){AvaloniaXamlLoader.Load(this);}protected override void OnClosing(CancelEventArgs e){this.Hide();base.OnClosing(e);}}UpdateData方法就是用来更新心电图表的方法 根据消息队列数据去更新是视图中的ScottPlot 图表
http://www.tj-hxxt.cn/news/226642.html

相关文章:

  • 网站优化要做哪些课程设计做淘宝网站的目的
  • 网站开发和浏览器兼容问题域名是什么意思
  • 东莞手机网站设计公司在线网页代理太太猫
  • 建筑公司网站石家庄网站建设 朝阳区
  • 合肥网站建设 卫来网络中小企业局域网组网方案
  • 商务网站建设论文总结jsp做网站实例教程
  • 沈阳快速建站公司有哪些广告公司取名大全最新版的
  • 怎样做网站xml潍坊企业网络推广
  • 做论坛网站如何赚钱环保公司网站模版
  • 网站建设微信商城网站制作怎样做销售网站
  • 大连地区做网站做网站 服务器
  • 企业网站备案时间东莞网站营销策划
  • 荥阳网站建设价格按天计费的seo弊端
  • 阿里云做网站的代码页游平台
  • 高平市网站建设公司怎么生成链接
  • 大型电子商务系统网站建设wordpress apply filters
  • 做业务在那几个网站上找客户端海城建设网站
  • 柳州 网站推广网站建设属于硬件还是软件
  • 查看邮箱注册过的网站wordpress最新视频教程
  • 京东商城商务网站建设目的网站建设管理中se是什么意思
  • 那些小网站是哪里人做的网页小游戏flash不能正常运行
  • 做网站图片表情饮料网站建设规划书
  • 刷网站关学校网站要更新应怎么做
  • wordpress改站点地址台州网站推广优化
  • 设计通网站建设网站备案不能访问
  • 安徽池州建设厅网站重庆网站推广转化率
  • 网站建设需要资料wordpress文章模版
  • 青海网站开发凤楼网站怎么做的
  • 网站开发实现顺序长春做网站设计
  • 网站推广的途径有哪些wordpress按作者分类