Group: Forum Members
Posts: 11,
Visits: 66
|
I'm working with a GridSurface chart with millions of points. I want some double-click behaviors as follows:
1. Double-click the legend or the vertical axis... bring up a scaling dialog 2. Double-click the plot or the walls... restore the viewing angle (elevation, rotation, zoom, height)
My problem is that the hit test is very slow when I have a million or so points. The use will double-click, and then double-click again thinking that the first one wasn't handled.
private void nChartControl1_MouseDoubleClick(object sender, MouseEventArgs e) { // this handler is called immediately after the double click, but the HitTest function takes too much time. NHitTestResult result = nChartControl1.HitTest(e.X, e.Y); // do something with "result" }
Is there anyway I can do a hit test in a faster way? Perhaps ignore the plot and just check for walls, legend and axes?
Thanks, - Mark
|