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.
Unfortunately, activation email could not send to your email. Please try again.

Where did ViewMatrix3D go?

Thread ID:

Created:

Updated:

Platform:

Replies:

68784 Oct 1,2007 12:52 PM Oct 24,2007 07:43 AM Windows Forms 1
loading
Tags: Chart
ERobishaw
Asked On October 1, 2007 12:52 PM

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 07:43 AM

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;

Regards,
Saravanan

CONFIRMATION

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.

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.

;