Re: [Pharo-users] Roassal2 Composite Shape

2014-07-17 Thread Alexandre Bergel
Well seen!! Good point! Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Jul 15, 2014, at 9:46 PM, Juraj Kubelka wrote: > Just an idea: the svg path shape would not solve your needs? May

Re: [Pharo-users] Roassal2 Composite Shape

2014-07-15 Thread Juraj Kubelka
Just an idea: the svg path shape would not solve your needs? Maybe improving trachel svg path and then use it for any desired shape, e.g., rectangles with round corner? Does it have sense? Cheers, Jura -- Juraj Kubelka > El 15/07/2014, a las 03:24, Peter Uhnák escribió: > > Well in the long

Re: [Pharo-users] Roassal2 Composite Shape

2014-07-15 Thread Alexandre Bergel
Thanks Ben for your nice words Alexandre > On 15 Jul 2014, at 08:09, Ben Coman wrote: > > Peter Uhnák wrote: >> >> Well in the long run I will probably need much more shapes that are >> currently present so I will probably end up making both TRShape and RTShape >> anyway. As far as contribut

Re: [Pharo-users] Roassal2 Composite Shape

2014-07-15 Thread Alexandre Bergel
Defining new shapes is not complicated at all, and we will review your code. The first thing is to define a trshape, you just have to override how you compute the path, and checking for point inclusion (I.e., is a point inside the shape or not). But beside that, this is all trivial. Let us know

Re: [Pharo-users] Roassal2 Composite Shape

2014-07-15 Thread Ben Coman
Peter Uhnák wrote: Well in the long run I will probably need much more shapes that are currently present so I will probably end up making both TRShape and RTShape anyway. As far as contribution goes, I'd be happy to contribute but I'm still quite new to both Pharo and Smalltalk so I'm quite

Re: [Pharo-users] Roassal2 Composite Shape

2014-07-15 Thread Peter Uhnák
Well in the long run I will probably need much more shapes that are currently present so I will probably end up making both TRShape and RTShape anyway. As far as contribution goes, I'd be happy to contribute but I'm still quite new to both Pharo and Smalltalk so I'm quite skeptical about the code q

Re: [Pharo-users] Roassal2 Composite Shape

2014-07-14 Thread Alexandre Bergel
Indeed, Roassal does not have a rectangle with rounded corner. Having it in Roassal means you need a new TRShape and a new RTShape. I could easily do the RTShape. But we need the TRShape first. Do you feel like doing it? This will be a valuable addition to Roassal. Cheers, Alexandre -- _,.;:~^

Re: [Pharo-users] Roassal2 Composite Shape

2014-07-13 Thread Peter Uhnák
Thank you, the example now works. However as I've mentioned in previous post I'm not sure about the rest of the shapes posted in the attachment. E.g. I haven't seen any notion of "box with rounded corners". I could compose it from four RTArc nad four RTLine but it seems to me overly complex compare

Re: [Pharo-users] Roassal2 Composite Shape

2014-07-13 Thread Alexandre Bergel
Sorry, the version was not properly saved in SmalltalkHub. If you update Roassal2 and Trachel, you should be able to execute the code snippet I’ve sent you. Maybe you want to add “v open” at the end. If you are using GTInspector, this is not necessary. As far as I understand your description of

Re: [Pharo-users] Roassal2 Composite Shape

2014-07-13 Thread Peter Uhnák
Thank you both for suggestions. According to Monticello I have latest Roassal2 and yet I don't see RTMultiCompositeShape, but I would assume it should be what I was looking for originally. In the meantime I chose to do it manually - creating a custom shape in both Roassal and Trachert: I've done

Re: [Pharo-users] Roassal2 Composite Shape

2014-07-12 Thread Alexandre Bergel
Hi Peter, I am not sure what you try to do. Having two ellipses with the same center? But different radius? Something like that maybe: -=-=-=-=-=-=-=-=-= | v | v := RTView new. v @ RTDraggableView. shape := RTMultiCompositeShape new. shape add: (RTEllipse new color: (Color yellow alpha: 0.3);

Re: [Pharo-users] Roassal2 Composite Shape

2014-07-11 Thread Juraj Kubelka
I think you should make a new composite shape. But first check how the width and height is computed, because the shapes somehow share the same (biggest) size. Cheers, Jura -- Juraj Kubelka > El 11/07/2014, a las 17:05, Peter Uhnák escribió: > > Hi > > I'm trying to draw an ellipse inside an

[Pharo-users] Roassal2 Composite Shape

2014-07-11 Thread Peter Uhnák
Hi I'm trying to draw an ellipse inside another ellipse but to no avail. I've tried using RTCompositeShape but that just expands the size of the smaller shape. Is there something else I'm missing (like fixing dimensions so they won't get updated) or should I subclass RTAbstractCompositeShape and t