开发者论坛

 找回密码
 注册 (请使用非IE浏览器)
查看: 3791|回复: 0

LightningChart数据可视化工具使用篇29-IntensityMeshSeries

[复制链接]

0

精华

10

贡献

2071

赞扬

帖子
141
软币
3968
在线时间
255 小时
注册时间
2021-1-21
发表于 2021-5-12 16:59:17 | 显示全部楼层 |阅读模式
IntensityMeshSeries
演示示例: Animated intensity mesh; Intensity mesh, static geometry; Intensity mesh, circle/polar geometry

IntensityMeshSeries 几乎与IntensityGridSeries类似。最大的不同点在于系列节点可以任意地放置于X-Y空间内。换句话说,这种系列并不呈现为矩形。线框线条可用WireframeType属性设置为可见。同时设置ShowNodes为true可显示出节点。
微信截图_20210512164450.png

图. IntensityMeshSeries,任意定位每个节点的X和Y值。 WireframeType = Wireframe ,ShowNodes = true.




微信截图_20210512164548.png

图. 强度网眼节点SizeX = 4, SizeY =4.





几何形状变化时的强度网眼数据设置

当X、Y和Value字段同时更新时,需遵照以下指令说明操作。
• 设置 SizeX 和 SizeY 属性,为网眼赋予以列和行表示的尺寸。
• 为所有节点设置 X、Y 和 Value:

采用数据数组索引的方法
[C#] 纯文本查看 复制代码
[/color]
[color=#000]for (int nodeIndexX = 0; nodeIndexX < columnCount; nodeIndexX ++)
{
               for (int nodeIndexY = 0; nodeIndexY < rowCount; nodeIndexY ++)
               {
                meshSeries.Data[nodeIndexX, nodeIndexY].X = xValue;
                meshSeries.Data[nodeIndexX, nodeIndexY].Y = yValue;
                meshSeries.Data[nodeIndexX, nodeIndexY].Value = value;
               }
}
meshSeries.InvalidateData(); //通知新值已准备好并将刷新


采用SetDataValue的另一种方法

forint nodeIndexX = 0; nodeIndexX < columnCount; nodeIndexX ++)
{
               forint nodeIndexY = 0; nodeIndexY < rowCount; nodeIndexY ++)
               {
                meshSeries.SetDataValue(nodeIndexX, nodeIndexY,
                                      xValue,
               yValue,
                                      value,
                                      Color.Green); //本例中没有使用源点颜色,所以这里用什么颜色都行
               }
}
meshSeries.InvalidateData(); //通知新值已准备好并将刷新





几何形状无变化时的强度网眼数据设置


当Data数组IntensityPoint结构的Value字段更新时,需按照这些指令说明操作。这是更新数据的性能优化方法,例如在热成像或环境数据监测解决方案中,每个节点的X和Y值保持在同一位置。


创建系列及其几何图形
• 设置 Optimization 为 DynamicValuesData
• 设置 SizeX 和 SizeY 属性,为网眼赋予以列和行表示的尺寸。
• 为所有节点设置 X、Y 和 Value:

    forint nodeIndexX = 0; nodeIndexX < columnCount; nodeIndexX ++)
    {

        forint nodeIndexY = 0; nodeIndexY < rowCount; nodeIndexY ++)
    {
         meshSeries.Data[nodeIndexX, nodeIndexY].X = xValue;
         meshSeries.Data[nodeIndexX, nodeIndexY].Y = yValue;
         meshSeries.Data[nodeIndexX, nodeIndexY].Value = value;
     }
}
meshSeries.InvalidateData(); //根据节点重建几何形状并重新绘制






定期更新值
• 仅设置所有节点的值:
[C#] 纯文本查看 复制代码
[/color]
[color=#000]for (int nodeIndexX = 0; nodeIndexX < columnCount; nodeIndexX ++)
{
        for (int nodeIndexY = 0; nodeIndexY < rowCount; nodeIndexY ++)
    {
            meshSeries.Data[nodeIndexX, nodeIndexY].Value = value;
    }
}
meshSeries.InvalidateValuesDataOnly(); //仅更新数据值


遇到使用问题,关注Arction公众号可以跟官方技术支持在线聊天解决,技术支持这一块儿Lightningchart做的还是不错的。

LightningChar0t.png


后续我会不断更新LightingChart更详细的使用方法,写文不易,还望多多回复关注支持!谢谢!

最新版V10 LightningChart下载地址:
猛击下载




回复

使用道具 举报

Archiver|手机版|小黑屋|开发者网 ( 苏ICP备08004430号-2 )
版权所有:南京韵文教育信息咨询有限公司

GMT+8, 2024-3-29 03:24

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表