Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCChart3D 3D Charting Tools for .Net (VB and C#)
 Unable to zoom in when chart is rotated.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Jules

10 Posts

Posted - 10 Aug 2010 :  21:11:20  Show Profile  Reply with Quote
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

quinncurtis

1531 Posts

Posted - 11 Aug 2010 :  09:13:47  Show Profile  Reply with Quote
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.
Go to Top of Page

Jules

10 Posts

Posted - 18 Aug 2010 :  22:48:41  Show Profile  Reply with Quote
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

Edited by - Jules on 18 Aug 2010 23:39:44
Go to Top of Page

quinncurtis

1531 Posts

Posted - 18 Aug 2010 :  23:28:07  Show Profile  Reply with Quote
No, there are no examples exactly like you describe. Send support@quinn-curtis.com the complete project of your simple example.
Go to Top of Page

Jules

10 Posts

Posted - 19 Aug 2010 :  00:35:06  Show Profile  Reply with Quote
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.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07