Hi peter

I hope that igor will see your mail now I will try to reply and this may be a bit wrong :)

Hello,

I'm currently working on drawing engine (à la Squeak Connectors) as a part of school project and have a couple of questions about Morphs and Athens and would be grateful if someone could enlighten me.

What is the difference between "Morph>>#drawOn:" and "Morph>>#drawOnAthensCanvas:" if I draw on AthensCairoSurface? Should I always use the latter or will there be switch to the former once everything is rendered using Athens?
One of the idea is that you have a wrappingMorph that convert the Morphic to Athens drawing. This way you can use athens and still be in a non athens world, then we will switch to athens you will just have to unwrap your (athensihed morph).

Now about the granularity question it depends, what I would do is to have one wrapper and be in a athens world.
Did you check the trachel layer in Roassal?

What would be good is that
- you define drawOnAthensCanvas: for all the shapes you need and we integrate them into Pharo
    - like that slowly we will get ready to switch to Athens

Should AthensMorphWrap be around every morphic element or just the top level? i.e. CanvasMorph (owner of the surface) will have a single submorph AthensMorphWrap which will then hold all the morphs (EllipsisMorph, RectangleMorph, ...) which are being drawn on the canvas.
I think so.
This is what Roassal is doing.
Please keep us aware of your progress and do not hesitate to ask questions and we are REALLY interested in your project.
So if you have athens draw on method please send them to us.

Stef


Thanks,
Peter


Reply via email to