Draw3D Property

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Aaron_Peronto
Newbie
Newbie
Posts: 8
Joined: Wed Oct 21, 2009 12:00 am
Contact:

Draw3D Property

Post by Aaron_Peronto » Thu Oct 28, 2010 7:29 pm

I was wondering what the Draw3D property actaully does.

I am trying to add 3D plotting into our graphing application.
In doing this, I have noticed that when I plot a Steema.TeeChart.Styles.Points3D series with Pointer.Visible = TRUE if I rotate the 3D graph, the points drawn on the graph appear to lack any sort of depth.
From the front, the Hollow Circles appear fine but as I rotate the graph around so that I am looking perpendicular to the Depth axis, the actual shape of the pointer cannot be seen and individual data points really appear as small vertical lines.

I tried setting the Draw3D property to true since I thought perhaps this would fix the issue.
I was expecting the Hollow Circle to be visible as a Hollow Circle from any viewing angle as the user rotates the graph.
And this is not the case.

Is there some property that I am missing that would allow the points to draw in a more truly 3D manner?

Thanks.
Aaron Peronto
Siemens Energy Inc.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Draw3D Property

Post by Sandra » Tue Nov 02, 2010 11:04 am

Hello Aaron_Peronto,

I think that you can change visibility of pen true to false or use Style of pointer PolishedSphere. Please, see next example:

Code: Select all

   private void InitializeChart()
        {
            Steema.TeeChart.Styles.Points3D series1 = new Steema.TeeChart.Styles.Points3D(tChart1.Chart);
            series1.FillSampleValues();
            series1.Pointer.Visible = true;
            series1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle;//PointerStyles.PolishedSphere
            series1.Pointer.Pen.Visible = false;
            series1.LinePen.Visible = false;
            series1.SetNull(2);
            series1.SetNull(5);   
        }
Could you tell us if previous code works as you want?

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / 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

Aaron_Peronto
Newbie
Newbie
Posts: 8
Joined: Wed Oct 21, 2009 12:00 am
Contact:

Re: Draw3D Property

Post by Aaron_Peronto » Thu Nov 04, 2010 3:05 pm

Sandra,
Thank you for the reply.

I tried the code you listed in my application and did not see any change.
I wanted to remove any issues that my own application might be causing from the equation, so I started a sandbox app with just a Windows Form containing the tchart1 control. I copied and pasted your code in and also added a Rotate tool so that I could swing the graph around and view it from the side.
When I rotate to look at the graph from the side, there is no depth to the points. They pretty much disappear when you attempt to view them form the side or from above.

Not sure if there is anything else I can try to get actual 3D points drawn. The points being drawn are simply 2 dimensional and that becomes obvious when you rotate the graph.

Thanks again for your quick reply, let me know if you have any other suggestions.

Aaron Peronto

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

Re: Draw3D Property

Post by Narcís » Thu Nov 04, 2010 3:14 pm

Hi Aaron,

You need to use DepthSize property, for example:

Code: Select all

            tChart1.Aspect.Chart3DPercent = 100;
            tChart1.Legend.Visible = false;

            Steema.TeeChart.Styles.Points3D points3D1 = new Steema.TeeChart.Styles.Points3D(tChart1.Chart);
            points3D1.FillSampleValues();
            points3D1.DepthSize = points3D1.Pointer.VertSize / 2;
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

Post Reply