comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: itools (mouse) events
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: itools (mouse) events [message #59107] Tue, 04 March 2008 22:11 Go to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
sjwelch wrote:
> I'm using iplot to construct a 2D scatter plot. What I want to do is
> register a listener of some sort for mouse events such that when the
> user clicks on a point in the plot, the coordinates of that point are
> returned.
>
> I've just spent an hour or so pouring through the itools code, looking
> at the messaging system and I just can't (quickly at least) figure out
> where to start. To which component do I add the observer (tool,
> dataspace, view, plot)? Do I need to register my observer class
> somewhere? I know there are a few readers with itools coding
> experience, any ideas?
>
> My experience is that it's very easy to get new stuff into itools
> (inserting visualisations, etc) I hoped it would be as easy to get
> stuff out, and it probably is if you know how.

You want to write manipulator. Check out the "Creating a Manipulator"
section in the Contents > Programmer's Guides > iTools Programming in
the IDL help.

http://idlastro.gsfc.nasa.gov/idl_html_help/Creating_a_Manip ulator.html

I would recommend trying the example manipulator in the manual, the
color table manipulator. I would say this is one of the trickier parts
of the documented iTools interface (and let's hope you can do what you
want with the documented interface).

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
Re: itools (mouse) events [message #59260 is a reply to message #59107] Wed, 12 March 2008 22:13 Go to previous message
sjwelch is currently offline  sjwelch
Messages: 5
Registered: October 2007
Junior Member
On Mar 5, 5:11 pm, Michael Galloy <mgal...@gmail.com> wrote:
> sjwelch wrote:
>> I'm using iplot to construct a 2D scatter plot. What I want to do is
>> register a listener of some sort for mouse events such that when the
>> user clicks on a point in the plot, the coordinates of that point are
>> returned.
>
>> I've just spent an hour or so pouring through theitoolscode, looking
>> at the messaging system and I just can't (quickly at least) figure out
>> where to start. To which component do I add the observer (tool,
>> dataspace, view, plot)? Do I need to register my observer class
>> somewhere? I know there are a few readers withitoolscoding
>> experience, any ideas?
>
>> My experience is that it's very easy to get new stuff intoitools
>> (inserting visualisations, etc) I hoped it would be as easy to get
>> stuff out, and it probably is if you know how.
>
> You want to write manipulator. Check out the "Creating a Manipulator"
> section in the Contents > Programmer's Guides >iToolsProgramming in
> the IDL help.
>
> http://idlastro.gsfc.nasa.gov/idl_html_help/Creating_a_Manip ulator.html
>
> I would recommend trying the example manipulator in the manual, the
> color table manipulator. I would say this is one of the trickier parts
> of the documentediToolsinterface (and let's hope you can do what you
> want with the documented interface).
>
> Mike
> --www.michaelgalloy.com
> Tech-X Corporation
> Software Developer II

Thanks Mike,

That was exactly what I needed! Got it doing what I wanted, much
appreciated.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: unsigned long long and min/max operator
Next Topic: Re: Simple task manager for parallel processing in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 20:46:48 PDT 2025

Total time taken to generate the page: 0.88089 seconds