A Faster HitTest?


Author
Message
Mark Malburg
Mark Malburg
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)
Group: Forum Members
Posts: 11, Visits: 68
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






Reply
Mark Malburg
Mark Malburg
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)
Group: Forum Members
Posts: 11, Visits: 68
I think I'm tracking with you... but how do I undo this after the hit test?

   - Mark
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search