T O P I C R E V I E W |
Jules |
Posted - 10 Aug 2010 : 21:11:20 Hello,
I have a 3D scatter chart with 100's of points. I've been using the zoom in and rotate functionality to inspect the points.
I've noticed when I've rotated a chart, I'm unable to zoom in (no points are visible). The size of the selected area makes no difference. In comparision if I haven't rotated the chart, I'm able to zoom into small and large clusters of points.
I've used mouse events for both the zoom in (highlight area using Right Mouse Button Click) and rotate (CNTL + Left Mouse Button Click).
Is there an example of this working or do you know of a setting that is required?
Thanks, Jules
|
4 L A T E S T R E P L I E S (Newest First) |
Jules |
Posted - 19 Aug 2010 : 00:35:06 Thanks for your reply.
My simple example now works. I added the hardcoded data points from the simple example into my app and the zoom in while rotated works as well. So it seems there's a problem with how I'm getting my data or something along those lines - the arrays are all of the same size.
Apologies for not testing further before posting on the forum.
|
quinncurtis |
Posted - 18 Aug 2010 : 23:28:07 No, there are no examples exactly like you describe. Send support@quinn-curtis.com the complete project of your simple example.
|
Jules |
Posted - 18 Aug 2010 : 22:48:41 I noticed the example uses the rotation control. I've used the below MouseListener. I'm trying to rotate the chart to see the z axis and zoom in from that view.
// cntrl key + left button rotate mouse listener RotateChartMouseListener rotateMouseListener = new RotateChartMouseListener(chartVu, MouseButtons.Left, pTransform1); rotateMouseListener.SetEnable(true); rotateMouseListener.KeyFilter = MouseListener.FilterKeys.CTRL_KEY; chartView.AddMouseListener(rotateMouseListener);
// define a zoom object using a custom zoom class double zpos = 0.0; CartesianCoordinates[] transformArray = { pTransform1 }; ZoomWithStack zoomObj = new ZoomWithStack(chartView, transformArray, zpos, true); zoomObj.SetButtonMask(MouseButtons.Left); zoomObj.SetZoomYEnable(true); zoomObj.SetZoomXEnable(true); zoomObj.SetZoomXRoundMode(ChartObj.AUTOAXES_FAR); zoomObj.SetZoomYRoundMode(ChartObj.AUTOAXES_FAR); zoomObj.SetEnable(true); zoomObj.SetZoomStackEnable(true); chartView.SetCurrentMouseListener(zoomObj);
Currently there are over 300 data points.
Are there any examples where the rotation and zoom in functionality has been implemented with mouse events? I looked for an example in the QCChart3DNetDemo. Sorry if I've overlooked it.
I have stripped down the chart I created to a simple example - still experiencing the same problem. Thanks |
quinncurtis |
Posted - 11 Aug 2010 : 09:13:47 The example program ZoomExamples.SimpleZoom demonstrates zooming a scatter plot. It seems to zoom fine under rotation. See if you can modify the example to demonstrate the problem you are having. |