010-68421378
sales@cogitosoft.com
當前您所在的位置:首頁>新聞中心>行業動态

Arction LightningChart:靈活操縱點樣式——單獨設置、單像素渲...

發(fā)布時間(jiān):2018/04/09 浏覽量:5647
6.8.1點(diǎn)樣式 點(diǎn)可以真實的3D點(diǎn)或2D形狀的方式呈現。 圖6-14 PointStyle屬性樹 ShapeType在2D和3D外形間切換 圖6-15 紅(hóng)十字ShapeTy...

 

6.8.1點樣式

點(diǎn)可以真實(shí)的3D點(diǎn)或2D形狀的方式呈現。

 

圖6-14  PointStyle屬性樹  ShapeType在2D和3D外形間(jiān)切換(huàn)

圖6-15  紅(hóng)十字ShapeType = Shape2D  Teal與Green對(duì)象ShapeType = Shape3D

注意!2D外形是在所有3D對象的頂(dǐng)部進行渲染並(bìng)且在其它對象可見性上不支持隐藏。

6.8.2線條樣式

圖(tú)6-16  LineStyle屬(shǔ)性

線條可以渲染爲帶(dài)有陰影的3D線條或1像素寬的發(fā)線。

當(dāng)序列中含有大量數據時,建議設置LineOptimization = Hairline,否則性能會(huì)有所減弱。

圖6-1

黃(huáng)線(xiàn):LineStyle.LineOptimization=Hairline

紅(hóng)線(xiàn):LineStyle.LineOptimization = NormalShaded

6.8.3添加點數

PointLineSeries3D支持兩(liǎng)種不同的點(diǎn)格式

• Points屬(shǔ)性(SeriesPoint3D數(shù)組)

• PointsCompact屬(shǔ)性(SeriesPointCompact3D)

設(shè)置要在PointsType屬性中使用的點(diǎn)格式。

注意!可綁(bǎng)定的WPF圖(tú)表不支持PointsCompact。

使用Points屬性時 ,支持點(diǎn)的所有高級著(zhe)色。

 

SeriesPoint3D結(jié)構(gòu)由以下字段組成:

double X:X軸值

double Y:Y軸值

double Z:Z軸值

Color color:個(gè)别數據點(diǎn)顔色,IndividualPointColors或MultiColorLine啓用時,才可使用。

double sizeFactor:size factor乘以PointStyle.Size定義的大小。僅(jǐn)在IndividualPointSizes啓(qǐ)用時适用。

object Tag:可自由分配輔(fǔ)助對(duì)象,例如一些附加的細節。

點(diǎn)必須以代碼(mǎ)的形式添加。使用AddPoints(...)方法将點(diǎn)添加到現有點(diǎn)的末尾。

SeriesPoint3D [] pointsArray = new SeriesPoint3D [3];

pointsArray [0] = new SeriesPoint3D(50,50,50);

pointsArray [1] = new SeriesPoint3D(30,50,20);

pointsArray [2] = new SeriesPoint3D(80,50,80);

chart.View3D.PointLineSeries3D [0] .AddPoints(pointsArray); //添加點(diǎn)

結束

 

若要一次設置整個系列數據並(bìng)覆蓋舊點(diǎn),可直接分配新的點(diǎn)數組:chart.View3D.PointLineSeries [0] .Points = pointsArray; //分配點(diǎn)數組PointsCompact

PointsCompact屬性可實現低内存消耗 ,當(dāng)有大量的數據點(diǎn)時這十分重要。

SeriesPointCompact3D結(jié)構(gòu)由以下字段組成:

float X:X軸值

float Y:Y軸值

float Z:Z軸值

SeriesPointCompact3D [] pointsArray = new SeriesPointCompact3D [3];

pointsArray [0] = new SeriesPointCompact3D(50,50,50);

pointsArray [1] = new SeriesPointCompact3D(30,50,20);

pointsArray [2] = new SeriesPointCompact3D(80,50,80);

chart.View3D.PointLineSeries3D [0] .AddPoints(pointsArray); //添加點(diǎn)

結束

 

要一次設置整個系列數據並(bìng)覆蓋舊點(diǎn),可直接分配新的點(diǎn)數組 :

chart.View3D.PointLineSeries [0] .PointsCompact = pointsArray; //分配

點數組

6.8.4單(dān)獨對點進行著(zhe)色

設置IndividualPointColors = True,點(diǎn)的顔色字段應用會(huì)替代Material.DiffuseColor。

圖(tú)6-18 正在使用的IndividualPointColors

注意! 當(dāng)PointsType = PointsCompact時,不支持單(dān)獨給點上色。

6.8.5單(dān)獨設置點(diǎn)的尺寸

通過設置IndividualPointSizes = True,這些點(diǎn)的sizeFactor字段便會生效。該(gāi)系數會與PointStyle.Size中定義的大小相乘。

圖(tú)6-19正在使用的IndividualPointSizes

注意! 當(dāng)PointsType = PointsCompact時,不支持單(dān)獨設置點的尺寸。

6.8.6多色線

要使用給定的數據點顔色對線著(zhe)色,設置MultiColorLine = True,圖表在相鄰點中圖表插入顔色漸變(biàn)。

圖(tú)6-20 啓(qǐ)用MultiColorLine

注意! 當(dāng)PointsType = PointsCompact時(shí) ,MultiColorLine不支持此功能。

6.8.7顯示百萬散點

爲瞭(le)能夠顯示大量散點,設置PointsOptimization = Pixels,然後每個序列點會作爲單(dān)個像素進行渲染。

圖(tú)6-21 百萬散點(diǎn)  LineVisible = False,PointsVisible = True,PointsOptimization = Pixels

 

下一篇:Steema FastReport.Net:提供先進的報告軟件應用程序、庫和插件
上一篇 :Eltima Software Serial Port Monitor功能多,超乎想象: 獨立解決..

                               

 京ICP備09015132号-996 | 違法和不良信息舉報(bào)電(diàn)話:4006561155

                                   © Copyright 2000-2026 北京哲想軟件有限公司版權所有 | 地址:北京市海澱(diàn)區西三環北路50号豪柏大廈C2座11層(céng)1105室

                         北京哲想軟件集團旗下網站:哲想軟件 | 哲想動畫

                            華滋生物