difficult click POINT3D, when it rotated

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
petroV
Newbie
Newbie
Posts: 24
Joined: Tue Mar 02, 2010 12:00 am

difficult click POINT3D, when it rotated

Post by petroV » Wed Apr 28, 2010 1:33 pm

have chart with serieses POINT3D. event CLICK not always work, when chart rotate with some angle. and if event works, ScreenPointToValuePoint return wrong PointDouble, value X, Y deffer from real value of CLICKED POINT on series

Code: Select all

    private void points3D_Click(object sender, MouseEventArgs e)
    {
      Steema.TeeChart.Styles.Points3D points3D = sender as Steema.TeeChart.Styles.Points3D;
      Steema.TeeChart.Drawing.PointDouble pd = points3D.ScreenPointToValuePoint(e.X, e.Y);
}
what do i wrong action?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: difficult click POINT3D, when it rotated

Post by Narcís » Thu Apr 29, 2010 10:14 am

Hi petroV,

I'm afraid this is a known problem converting 2D screen coordinates to 3D rotated coordinates. Neither GDI nor GDI+ provide methods for doing this transformation and therefore it's very difficult for series to return correct values in such circumstances.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

petroV
Newbie
Newbie
Posts: 24
Joined: Tue Mar 02, 2010 12:00 am

Re: difficult click POINT3D, when it rotated

Post by petroV » Thu Apr 29, 2010 10:36 am

thanks you. willn't use this event on 3d series.

Post Reply