Quantcast

Point mode and Point Tool Dialog and WaitforUser

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Point mode and Point Tool Dialog and WaitforUser

nstifani
Hi there,
I have read that the Point Tool dialog was non-modal. Awesome !
1.50d 25 October 2015
The Edit>Options>Point Tool dialog, in multi-point mode, is now non-modal and has a "Counter" drop down menu. As a shortcut for opening this dialog, double click on the multi-point tool icon.


So I was trying to run something like:
run("Point Tool...");
waitForUser("The Point Tool Dialog prevents the waitforUser...");

Yet the waitforUser wont appear unless the Point Tool Dialog is closed... Is there a walk-around?



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Point mode and Point Tool Dialog and WaitforUser

Rasband, Wayne (NIH/NIMH) [E]
> On Dec 16, 2016, at 4:16 PM, nstifani <[hidden email]> wrote:
>
> Hi there,
> I have read that the Point Tool dialog was non-modal. Awesome !
> /1.50d 25 October 2015
> The Edit>Options>Point Tool dialog, in multi-point mode, is now non-modal
> and has a "Counter" drop down menu. As a shortcut for opening this dialog,
> double click on the multi-point tool icon.
> /
>
> So I was trying to run something like:
> run("Point Tool...");
> waitForUser("The Point Tool Dialog prevents the waitforUser...");
>
> Yet the waitforUser wont appear unless the Point Tool Dialog is closed... Is
> there a walk-around?

This will work as expected if you insure that the multi-point tool is selected and you use doCommand("Point Tool…”) instead of run("Point Tool…”), for example:

  setTool("multipoint");
  doCommand("Point Tool...");
  waitForUser("Wait for User...”);

The doCommand() function runs a command in a separate thread and returns immediately. The run() function runs a command and waits for it to finish.

-wayne


> --
> View this message in context: http://imagej.1557.x6.nabble.com/Point-mode-and-Point-Tool-Dialog-and-WaitforUser-tp5017791.html
> Sent from the ImageJ mailing list archive at Nabble.com.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Point mode and Point Tool Dialog and WaitforUser

nstifani
This post was updated on .
Thank you very much Wayne for your prompt reply (as usual).
It works like a charm.

Actually I would like to follow up on the following modification:
Thanks to Christiane, the Results table, for each point in a multi-point selection, displays the counter associated with the point and the count for that counter.


That's great. Yet I noticed that when only 1 counter is used the results window do not display the counter associated and the counts. This can be a problem if someone wants to merge result files afterwards.

I also noticed that the multipoint tool does not allow counters>0 in absence of counter 0 point. In other words: If ones would like to have only counter types 4 and 8, it must create a "dummy" counter 0 first.


Loading...