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 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