Thank you David.
I have come across something else about ViewPoint3D objects: where is the best place to set/get them in the Orson Charts heirarchy?
In the application I am developing, I create the Chart3D object from the Chart3DFactory.createScatterChart() method (love these utility methods), then set the view point to the Chart3D object. I then wrap the Chart3D object with a Chart3DPanel object, which in turn is wrapped by a DisplayPanel3D object for placing into the content of a JFrame, bascially
Code: Select all
Chart3D chart = Chart3DFactory.createScatterChart(.....);
ViewPoint3D vp3D = new ViewPoint3D(0.52, 1.42, 22.87, 3.11);
chart.setViewPoint( vp3D );
Chart3DPanel mChartPanel = new Chart3DPanel( chart );
DisplayPanel3D mDisplayPanel = new DisplayPanel3D( mChartPanel );
My current issue is when I query the ViewPoint3D after the chart has been rendered, the orientation parameter value has changed without touching any of the toolbar buttons. The values of the ViewPoint3D, before and after rendering, are:
Theta of 0.52 to 0.52
Phi of 1.42 to 1.42
Rho of 22.87 to 22.87
Orientation of 3.11 to -0.005 (from calcRollAngle() )
After rendering the chart, clicking any of the toolbar navigation buttons causes the chart to "flip" upside down.
So, I am curious if you have any suggestions as to what I am doing wrong?
Question: is the orientation returned from calcRollAngle() the same as the orientation provided to the constructor?
Question: Once a chart is displayed, what object should the current ViewPoint3D be read from?
Question: Once a chart is displayed, what object should be used for changing the view point with new values from the user in the form of a ViewPoint3D object?
Thank you in advance. David