如何在3D曲面上绘制所选点? [英] How to paint selected point on 3D surface?
本文介绍了如何在3D曲面上绘制所选点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在TeeChart 3D表面上绘制所选点?
How can I paint selected point on TeeChart 3D Surface?
推荐答案
- 如果要突出显示鼠标,则可以使用
TSurfaceNearestTool
突出显示TSurfaceSeries
单元格,如所有功能中的示例功能演示程序中的欢迎使用!\工具\最近的表面: - If you want to highlight the cell below the mouse, you can use the
TSurfaceNearestTool
to highlight aTSurfaceSeries
cell like in the example at "All Features\Welcome !\Tools\Surface Nearest" in the Features Demo program:
功能演示程序(Tee9New.exe)随组件的安装一起提供,也可以在此处下载。
The Features Demo program (Tee9New.exe) is shipped with the installation of the component, and you can alternatively download the "TeeChart compiled demo" here.
您只需创建工具并为其分配表面。即:
You just have to create the tool and assign a surface to it. Ie:
uses TeeSurfaceTool, TeeSurfa;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.AddSeries(TSurfaceSeries).FillSampleValues;
(Chart1.Tools.Add(TSurfaceNearestTool) as TSurfaceNearestTool).Series:=Chart1[0];
end;
- 如果您知道要突出显示的单元格的ValueIndex ,您只需更改
ValueColor [ValueIndex]
属性。即: - If you know the ValueIndex of the cell to highlight, you can just change the
ValueColor[ValueIndex]
property. Ie:
uses TeeSurfa, TeeTools;
procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
Chart1.Aspect.Zoom:=80;
Chart1.Chart3DPercent:=100;
with Chart1.AddSeries(TSurfaceSeries) as TSurfaceSeries do
begin
FillSampleValues;
UseColorRange:=false;
UsePalette:=false;
for i:=0 to Count-1 do
if (i mod 2 = 0) then
ValueColor[i]:=clGreen;
end;
end;
这篇关于如何在3D曲面上绘制所选点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文