Re: Radial profile ext to work with Macros

Posted by CARL Philippe (LBP) on
URL: http://imagej.273.s1.nabble.com/Radial-profile-ext-to-work-with-Macros-tp5005598p5005936.html

Dear all,
Following the request of macro integration of the "Radial profile ext" plugin, I tried to move forward.
Thus up to the following document:
http://rsb.info.nih.gov/ij/docs/macro_reference_guide.pdf
in order to have easily access to the built-in macro command recorder, the plugin should be using the ij.gui.GenericDialog class (I'm very happy to be aware of this now since I used already this knowledge for another project...).
In the "Radial profile ext" plugin I haven't used this class but the GenericRecallableDialog class developped in the Contour_Plotter routine by Walter O'Dell PhD.
And I used this class since with this class the window is non blocking (can actually be solved by using the NonBlockingGenericDialog class developed by Johannes Schindelin) but as well since it is possible to add more buttons in the window (the "Radial profile ext" plugin has 6 buttons) which seems can't be done with the NonBlockingGenericDialog class.
Thus is there a way to use the NonBlockingGenericDialog class and implement more than 2 (= 6 in my case) buttons with it?
Alternatively I need to stick with the GenericRecallableDialog class and thus implement calls to public static methods like described at the page 17 and 18 of the http://rsb.info.nih.gov/ij/docs/macro_reference_guide.pdf file.
Unfortunately with the data indicated in this document I'm not able to move forward (for example where and how should the "Recorder.record" command be used?).
Could some examples of such implementation be found somewhere for better understanding?
I thank you very much in advance.
Best regards,
Philippe

Philippe CARL
Laboratoire de Biophotonique et Pharmacologie
UMR 7213 CNRS - Université de Strasbourg
Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 41 84

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html