Need to get data cursor info programatically

I have a 3d figure with a number of surfaces and shapes, which is viewed from a particular viewing position. I would like to programatically collect the data cursor info, which gives an xyz coordinate, for multiple spots in the figure, in a grid shape.
A few problems I have run into:
#1 - When I manually click the figure using the data cursor, the entire shape of the figure changes. I want to keep it at the exact viewing angle I have, but it won't let me.
#2 - I want to collect this information programatically. I have found some potential methods of doing this, none of which seem very good. The moveptr() function does not seem to place the pointer in the figure as it is supposed to. I can use jRobot to move and click the mouse, but I can only control it with respect to the pixels on the screen, rather than relative to the figure. Ideally, I could move the pointer relative to the x and y axes, since the grid is defined on the x-y plane, but I cannot find a method for doing this.
Any help would be greatly appreciated.
Ben

3 个评论

The entire shape of the figure changes?! It is rectangular before at a specific screen position - and afterwards? Do you mean, that only the viewing angle is affected?
You are correct. The figure doesn't change. But the viewing angle, as well as the scale of the axes changes. Before I click, I cannot see every figure, and I don't want to. After I click, I can see the entire figure, and the viewing angle appears to change.
I meant, I cannot see every part of the figure...there are surfaces, or parts of surfaces that are hidden from view on the edges, and I would like them to remain hidden.

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息

提问:

2012-2-15

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by