Profile Picture

TrackBall not working

Posted By Eli Gazit 3 Years Ago
Author
Message
Eli Gazit
Posted 3 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 3, Visits: 5
Hi,
I have a 3d scatter chart and I'm trying to enable the trackball/zoom/move interactivity elements.
based on the sample, I should set
ChartControl1.Controller.Tools.Add(new NTrackballTool());

this does not work.
what am I missing?



Nevron Support
Posted 3 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)

Group: Forum Members
Last Active: 1 hour ago
Posts: 2,945, Visits: 3,306
Hi Eli,
You also need to add a tool which designates the current chart - so the code should look like:

nChartControl1.Controller.Tools.Add(new NPanelSelectorTool());
nChartControl1.Controller.Tools.Add(new NTrackballTool());

The reason for this is that since the chart supports rotation (trackball) on multiple charts the first tool selects the chart at the current mouse position and the second actually performs the rotation. Hope this helps - let us know if you have any questions or meet any problems.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic