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

Home » Public Forums » archive » Re: recording macros
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: recording macros [message #35473 is a reply to message #35471] Thu, 19 June 2003 14:44 Go to previous messageGo to previous message
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
Reimar Bauer wrote:
> Dear Ben and Liam,
>
> with journal only the call of the routines could be saved but what is if it
> is a widget.
>
> For widgets I have in principle a different solution.
>
> Now you know which things are changed and you have only to setup the makro.
> I would suggest to write a procedure as I did. Because then this could be
> used without any additional routine to reproduce the result it could be
> archived and the users could add idl commands if they like to do it.
>

>> If it's run from the command line, could you use journalling, i.e.,
>>
>> IDL> journal, 'my_commands.pro' ; start journalling
>> IDL> (user enters commands)
>> IDL> journal ; stop journalling
>>
>> To replay the session:
>>
>> IDL> @my_commands.pro
>>

Thanks Liam and Riemar,

Right now, I don't expect the user to run from the command line since
the GUI is available (and, for the user, less intimidating.)

Since the data format doesn't change (it's always an image) I have an
advantage over more generic data handling. I think that I could add a
RecordMacro method into the event handling to provide. I would have
to have a RECORD property/flag that tells the handler when to record
the step and when not to. The behavior I hope to see is similar to that
of ImageJ (http://rsb.info.nih.gov/ij/) . When recording, a simple text
editor appears listing the steps taken. Here's an example from ImageJ...


> run("Threshold...");
> setThreshold(48, 170);
> run("Threshold", "thresholded remaining black");
> run("Despeckle");
> run("Add...", "value=25");
> run("Measure");


In the IDL case, each set corresponds to a method which could be called
in order by CALL_METHOD. The trick, I think, might be the arguments,
such as the ADD, value = 25. Perhaps the macro should include the
object class, the method and any arguments... I don't know what to do
with keywords.

ClassName Method P1 P2 P3 P4 PN
HBB_HISTOGRAM SETTHRESHOLD 48 170
HBB_IMAGE ADD 25

I'll have to think about that.



Thanks again,

Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: recording macros
Next Topic: Re: Function Maximum

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

Current Time: Wed Oct 08 17:24:27 PDT 2025

Total time taken to generate the page: 0.00386 seconds