CursorTool Z position in Point3D series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SteveP
Advanced
Posts: 132
Joined: Sun Sep 07, 2003 4:00 am

CursorTool Z position in Point3D series

Post by SteveP » Tue Aug 01, 2006 4:02 am

A CursorTool does not change its Z Depth axis position for a Point3D series. It seems that the Z Depth axis value for the cursortool is always the Z value of the last data value added to the series.

series1.AddXYZ(1,1,1);
series1.AddXYZ(3,2,5);
series1.AddXYZ(7,4,3);
series1.AddXYZ(2,3,2);
series1.AddXYZ(5,5,4);

Add a Rotate tool. Rotate the chart so that you are looking from x axis maximum towards x minimum. The default y axis yellow depth wall will be at the back of the chart. Notice that the cursortool Z position is Z=4 which is the last data value added. Z=4 no matter what ValueIndex the cursortool is moved to (by dragging or snapping).

This makes the cursortool appear to not lie at the data value position if the chart view is rotated at all, especially if its Style property is Both.

A NearestPoint tool shows its line drawn to the correwct Z depth axis value.

Is there a way to assign the Z depth axis value for the cursortool ? If so, the NearestPoint tool could be used to obtain the ValueIndex and from that set the correct cursortool Z value.

This problem seems to exist for other 3D series as well.

Steve

Pep
Site Admin
Site Admin
Posts: 3198
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Aug 01, 2006 9:57 am

Hi Steve,

using the TeeChart Pro v7.08 you can set the UseSeriesZ property to true :
ChartTool1.UseSeriesZ:=true;

Which makes to follow the zposition. But when the Chart is rotated is not perfectly drawn. I've added this on our defect list to be reviewed for further versions.

SteveP
Advanced
Posts: 132
Joined: Sun Sep 07, 2003 4:00 am

Post by SteveP » Tue Aug 01, 2006 1:49 pm

Is TeeChart Pro v7.08 only available for BDS 2006 ? I am using Delphi 7 and TChart Pro 7.07 which has that ChartTool1.UseSeriesZ property but does not make it follow the Z Position at all. The Z Position never changes.

Steve

Pep
Site Admin
Site Admin
Posts: 3198
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Aug 01, 2006 2:28 pm

Hi Steve,
Is TeeChart Pro v7.08 only available for BDS 2006 ? I am using Delphi 7 and TChart Pro 7.07 which has that ChartTool1.UseSeriesZ property but does not make it follow the Z Position at all. The Z Position never changes.
Yes, the binaries installer of 7.08 is only available for BDS 2006 (we'll post it for the other Delphi version as soon as possible). If you're source code customer, the latest sources available on our web site are the v7.08.
However I don't think this varies from v7.07 to v7.08. As you said, the ZPosition of the cursor is not correctly assigned in most of the cases.

SteveP
Advanced
Posts: 132
Joined: Sun Sep 07, 2003 4:00 am

Post by SteveP » Tue Aug 01, 2006 2:36 pm

A NearestPoint tool trackes the correct data value and draws its line to the correct Z Position. It might be used to change the CursorTool's X and Y values to visually make the cursor appear to be located over the correct Snapped position at the correct Z Position. That would require being able to convert or calculate or account for the rotation angle view. Is there a TChart function that converts a data value (or the NearestPoint) to the correct 3D pixels view ?

Post Reply