About iTools [message #47614] |
Tue, 21 February 2006 04:04  |
Antonio Santiago
Messages: 201 Registered: February 2004
|
Senior Member |
|
|
Hi group,
last friday I started to see the iTools developer guide. iTools seems to
be a great framework, concepts like data, visualizares, the message
system, etc.
The first question is:
- Why iTools are so slowly?
When I work on 'iimage' tool for a while with an 1500x1500 image data it
becomes infernal work with it.
Is it problem of undo/redo options (on how the data are cached).
Also I made a little example from IDLitToolbase class. I remove some
lines of code (some operations) and register a new little operation
Resample (modified of the original IDLitopResample operation).
I have registered this operation with REVERSIBLE_OPERATION=0 but when I
apply this on a data it continues appearing into the Edit/Undo operation.
Thansk in advice for all ideas and sugestions.
--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
|
|
|
Re: About iTools [message #48148 is a reply to message #47614] |
Fri, 31 March 2006 16:28  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
Antonio Santiago wrote:
> Also I made a little example from IDLitToolbase class. I remove some
> lines of code (some operations) and register a new little operation
> Resample (modified of the original IDLitopResample operation).
>
> I have registered this operation with REVERSIBLE_OPERATION=0 but when I
> apply this on a data it continues appearing into the Edit/Undo operation.
Not sure if you're still working on this, but if not maybe it will help
the "next guy."
REVERSIBLE_OPERATION is not doing what you think it's doing. Undo/redo
is automatic (one way or another) for all IDLitDataOperation operations.
If REVERSIBLE_OPERATION=1, then previous data will not be cached because
undo'ing will call the undoExecute method of the operation to be called.
If REVERSIBLE_OPERATION=0 then previous data will be cached because that
is the only way to provide undo.
But I'm not sure if this is what's causing your speed problem. The
itools haven't exactly been speedy for me. Though there were some
performance enhancements that affect iimage in IDL 6.2, I'm not sure
they would help either.
-Mike
|
|
|