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 件のコメント

Jan
Jan 2012 年 2 月 15 日
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?
Benjamin
Benjamin 2012 年 2 月 15 日
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.
Benjamin
Benjamin 2012 年 2 月 15 日
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 ExchangeCreating, 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