Hi Christophe,
maybe there is an easier solution - use the existing polyline tool and just calculate the quantities of interest in a plugin?
You can use the Dynamic Profiler on the ImageJ web site as a starting point. Remove everything related to the plot window and the background thread. Instead of the 'doUpdate = true' commands, call a method that displays what you want to know via IJ.showStatus.
Michael
_______________________________________________________________________________
On 2011-Sep-02, at 11:59, Christophe Leterrier wrote:
> Hi,
>
> Sorry to ask again but maybe my request was lost in the middle of summer:
> does someone have a macro tool implementation of the standard ImageJ tools ?
> I'm specifically looking for the polygon and polyline tools. I looked at the
> java source code for these tools but it is too far from macro language to be
> easily translated. The example macro tools at
>
http://rsb.info.nih.gov/ij/macros/tools/ are useful, bot I found nothing
> close enough to the polygon/polyline tools... I need that to create new
> tools based on these default tools (for example, a polyline that would
> display the size of its different segments and the total size in the status
> bar during tracing).
>
> Thanks a lot,
>
> Christophe