Re: CURSOR question [message #27075] |
Wed, 10 October 2001 12:17  |
Pavel A. Romashkin
Messages: 531 Registered: November 2000
|
Senior Member |
|
|
David Fanning wrote:
> It can be done trivially in an object
> graphics window. :-)
This kind of thing always baffled me. Choosing a point in 3D is ok as
long as you hit an existing item and this is what you intended to hit.
But there is no way to unambigously select a 3D location on a 2D screen
otherwise, as far as I can see. You *have* to make assumptions here.
Cheers,
Pavel
|
|
|
Re: CURSOR question [message #27078 is a reply to message #27075] |
Wed, 10 October 2001 10:47   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Paul Manusiu (phpvm@alinga.newcastle.edu.au) writes:
> Using the CURSOR routine I can read the X, Y data values on a 2-D plot
> using the mouse. If I have a 3-D plot does anyone now if its possible to
> read the Z component using the mouse ?
> ;That is, instead of
> CURSOR, X, Y
> ;I want
> CURSOR, X, Y, Z
> ;or something like
> CURSOR, X, Z
>
> My initial tries have all failed !
This kind of thing, I am sure, could be done
by replicating the window in the Z-graphics
buffer and selecting the referenced point there.
But, I confess, the details of how it is done escape
me. It can be done trivially in an object
graphics window. :-)
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: CURSOR question [message #27169 is a reply to message #27075] |
Wed, 10 October 2001 13:12  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Pavel A. Romashkin (pavel.romashkin@noaa.gov) writes:
> This kind of thing always baffled me. Choosing a point in 3D is ok as
> long as you hit an existing item and this is what you intended to hit.
> But there is no way to unambigously select a 3D location on a 2D screen
> otherwise, as far as I can see. You *have* to make assumptions here.
I think you can unambiguously select the thing you can
*see*. The ambiguous stuff is behind all that. :-)
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|