We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Where did ViewMatrix3D go?

Thread ID:





68784 Oct 1,2007 04:52 PM UTC Oct 24,2007 11:43 AM UTC WinForms 1
Tags: Chart
Asked On October 1, 2007 04:52 PM UTC

V5 broke the 3D transform mechanism in ChartSeriesRenderer.

In GetPointByVlauesForSeries() I used to have:

if( ChartArea.RealSeries3D && ChartArea.Series3D )

Vector3D v = new Vector3D( pt.X, pt.Y + lc.X + Math.Abs( lc.Y/2 ), 0 );
v = ChartArea.ViewMatrix3D*v;
pt = Graphics3D.ToPointF(v, ChartArea.Size, ChartArea.Settings3D.Perspective );
pt = new PointF( pt.X + ChartArea.Left, pt.Y + ChartArea.Top );

The ChartArea.ViewMatrix3D has apparently been replaced by: ChartArea.Transform3D.

But how do I construct my point now?

Can anyone help transform my old 4x code to 5x code?

(PS.. I really wish when Syncfusion got rid of a method signature, it would use the [Obsolete(msg, true)] flag and provide a message pointing to the new mechanism from the old.)

Saravanan A [Syncfusion]
Replied On October 24, 2007 11:43 AM UTC

Hi ERobishaw,

In from the Transform3D.View method, you can get the ViewMatrix3D object. Please try using the following code and let us know if it helps you to

//v = ChartArea.ViewMatrix3D*v;
v = ChartArea.Transform3D.View*v;



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon