Hi Veronica,
Debugging visualization is a bit tricky, mainly because of a heretic behavior of Morphic. Your image did not freeze so you should be happy :-)
The best way to debug a visualization, is to render the visualization in a bitmap, instead of having it on screen. For example, if your visualization is:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| view |
view := MOViewRenderer new.
view shape rectangle width: [ :e | 100 / e ].
view nodes: (0 to: 20).
view open
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
then replace the last #open with:
view root applyLayout.
view getRenderedForm
So, the debuggable script should be:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| view |
view := MOViewRenderer new.
view shape rectangle width: [ :e | 100 / e ].
view nodes: (0 to: 20).
view root applyLayout.
view getRenderedForm
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
If your visualization is buggy, then you will get a debugger. If nothing appears, it means there is no bug.
The same trick has to be used for Roassal generated visualization.
Let me know how it goes.
Cheers,
Alexandre
On Sep 20, 2012, at 9:10 AM, Veronica Isabel Uquillas Gomez <vuquilla@vub.ac.be> wrote:
Hi Alex,
I have already planned to migrate my tools to use Roassal...
But for now I have to use what we have with Mondrian because we are preparing an evaluation on our tool in Pharo1.4.
I suddenly have a problem that I do not know to detect
I draw a map with dominanceTreeLayout or forcedBaseLayout.
When the layout is dominanceTreeLayout I am getting the red rectangle with the cross. Sometimes i get it immediately or sometimes I see part of the visualization and when i move the scrollbars the red rectangle appears.
How can I debug that?, I haven't changed my code and I have no idea what is failing now
if I open the same visualization with forcedBaseLayout it works fine.
Regards,
Veronica
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev