Page 1 of 1

TDBChart View3D and CalcClickedPart

Posted: Wed Mar 12, 2014 11:08 pm
by 16568752
Hi,

I'm trying to get the Series underneath the cursor but if View3D is enabled then I seem to be getting random results, the code seems to be working fine if I set View3D to False.

My Series style is Rectangle.

I'm using the newest TeeChart Pro for VCL on XE5.

Thanks!
Seppo

Re: TDBChart View3D and CalcClickedPart

Posted: Thu Mar 13, 2014 4:02 pm
by yeray
Hello,

There are some tickets at our bug/wish tracking system that could be related to this. Could you please check them?

If you think they are not explaining the very same case you have noticed, please try to arrange a simple example project we can run as-is to reproduce the problem here.

Also please take a look at the "How to post in this forum" instructions below in my signature

Re: TDBChart View3D and CalcClickedPart

Posted: Thu Mar 13, 2014 6:20 pm
by 16568752
CalcClickedPart_Sample.zip
(59.29 KiB) Downloaded 403 times
I created a small sample. Please check.

It uses two different methods, CalcClickedPart and Clicked on a series. They seem to give the same (incorrect) results. There's also a checkbox to toggle 2D mode and in that mode the methods work correctly.

Thanks!
Seppo

Re: TDBChart View3D and CalcClickedPart

Posted: Fri Mar 14, 2014 12:35 pm
by narcis
Hi Seppo,

Thanks for the example project. The Clicked function works with 2D charts and 3D orthogonal charts but not with 3D non-orthogonal rotated charts. Having that in mind, It works fine with Chart1.Aspect.Orthogonal set to true, for example:

Code: Select all

  Chart1.Aspect.Orthogonal:=True;
As Yeray already suggested, this is ID305 and it comes from the difficulty from converting screen 2D coordinates to real 3D coordinates. I have increased the importance of the bug and attached your project to it.

Re: TDBChart View3D and CalcClickedPart

Posted: Thu Mar 20, 2014 8:33 am
by narcis
Hi Seppo,

This issue has been fixed now as you can see at David Berneda's comments: http://bugs.teechart.net/show_bug.cgi?id=305#c3