why ellipse is so special?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

why ellipse is so special?

Natalia Tymchuk
Hello,
I noticed that RTEllipse doesn’t have the border. Why it is like that?

Best regards,
Natalia
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: why ellipse is so special?

Peter Uhnak
It does have a border, you just can't change it's width, which is set to 0.005.

~~~~~~~~~~~
e := RTEllipse new
size: 30;
color: Color white;
borderColor: Color black;
element.
~~~~~~~~~~~

I believe there was a problem with it's nonuniformity --- it would be thicker on the wider side and vice versa, or something like that.

In theory RTSVGPath could be used, but I don't think support for arcs was added yet (and maybe the problem is still there).

Peter


On Mon, Jun 8, 2015 at 1:03 PM, Natalia Tymchuk <[hidden email]> wrote:
Hello,
I noticed that RTEllipse doesn’t have the border. Why it is like that?

Best regards,
Natalia
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: why ellipse is so special?

abergel
In reply to this post by Natalia Tymchuk
Hi Natalia,

You can set the border as:

v := RTView new.
shape := RTEllipse new
        size: 30;
        color: Color white;
        borderWidth: [ :vv | vv / 30 ];
        borderColor: Color black.
       
v addAll: (shape elementsOn: (1 to: 10)).
RTGridLayout on: v elements.
v

You questioned whether ellipse are special. I would say that border are rarely required for an ellipse, but for a box it is often necessary. This is just my feeling.

Cheers,
Alexandre

> On Jun 8, 2015, at 8:03 AM, Natalia Tymchuk <[hidden email]> wrote:
>
> Hello,
> I noticed that RTEllipse doesn’t have the border. Why it is like that?
>
> Best regards,
> Natalia
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: why ellipse is so special?

Natalia Tymchuk
Thank you.

Best regards,
Natalia

> On 08 Jun 2015, at 17:14, Alexandre Bergel <[hidden email]> wrote:
>
> Hi Natalia,
>
> You can set the border as:
>
> v := RTView new.
> shape := RTEllipse new
> size: 30;
> color: Color white;
> borderWidth: [ :vv | vv / 30 ];
> borderColor: Color black.
>
> v addAll: (shape elementsOn: (1 to: 10)).
> RTGridLayout on: v elements.
> v
>
> You questioned whether ellipse are special. I would say that border are rarely required for an ellipse, but for a box it is often necessary. This is just my feeling.
>
> Cheers,
> Alexandre
>
>> On Jun 8, 2015, at 8:03 AM, Natalia Tymchuk <[hidden email]> wrote:
>>
>> Hello,
>> I noticed that RTEllipse doesn’t have the border. Why it is like that?
>>
>> Best regards,
>> Natalia
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: why ellipse is so special?

Peter Uhnak
Interesting; the layout is ignoring the border --- there should be spacing everywhere.
It seems that the border is not accounted for in encompassingRectangle and/or containsPoint: as RTDraggable also works only on the inner half of the border.

Peter

On Mon, Jun 8, 2015 at 5:19 PM, Natalia Tymchuk <[hidden email]> wrote:
Thank you.

Best regards,
Natalia
> On 08 Jun 2015, at 17:14, Alexandre Bergel <[hidden email]> wrote:
>
> Hi Natalia,
>
> You can set the border as:
>
> v := RTView new.
> shape := RTEllipse new
>       size: 30;
>       color: Color white;
>       borderWidth: [ :vv | vv / 30 ];
>       borderColor: Color black.
>
> v addAll: (shape elementsOn: (1 to: 10)).
> RTGridLayout on: v elements.
> v
>
> You questioned whether ellipse are special. I would say that border are rarely required for an ellipse, but for a box it is often necessary. This is just my feeling.
>
> Cheers,
> Alexandre
>
>> On Jun 8, 2015, at 8:03 AM, Natalia Tymchuk <[hidden email]> wrote:
>>
>> Hello,
>> I noticed that RTEllipse doesn’t have the border. Why it is like that?
>>
>> Best regards,
>> Natalia
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: why ellipse is so special?

Peter Uhnak
Also, why does RTEllipse has different units for the border? I.e. why is there division by 30; if I did that with RTBox I would get quite different results.

Thanks,
Peter

On Mon, Jun 8, 2015 at 8:57 PM, Peter Uhnák <[hidden email]> wrote:
Interesting; the layout is ignoring the border --- there should be spacing everywhere.
It seems that the border is not accounted for in encompassingRectangle and/or containsPoint: as RTDraggable also works only on the inner half of the border.

Peter

On Mon, Jun 8, 2015 at 5:19 PM, Natalia Tymchuk <[hidden email]> wrote:
Thank you.

Best regards,
Natalia
> On 08 Jun 2015, at 17:14, Alexandre Bergel <[hidden email]> wrote:
>
> Hi Natalia,
>
> You can set the border as:
>
> v := RTView new.
> shape := RTEllipse new
>       size: 30;
>       color: Color white;
>       borderWidth: [ :vv | vv / 30 ];
>       borderColor: Color black.
>
> v addAll: (shape elementsOn: (1 to: 10)).
> RTGridLayout on: v elements.
> v
>
> You questioned whether ellipse are special. I would say that border are rarely required for an ellipse, but for a box it is often necessary. This is just my feeling.
>
> Cheers,
> Alexandre
>
>> On Jun 8, 2015, at 8:03 AM, Natalia Tymchuk <[hidden email]> wrote:
>>
>> Hello,
>> I noticed that RTEllipse doesn’t have the border. Why it is like that?
>>
>> Best regards,
>> Natalia
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: why ellipse is so special?

abergel
I am not sure why. I guess this comes from Athens…

Alexandre


> On Jun 8, 2015, at 3:58 PM, Peter Uhnák <[hidden email]> wrote:
>
> Also, why does RTEllipse has different units for the border? I.e. why is there division by 30; if I did that with RTBox I would get quite different results.
>
> Thanks,
> Peter
>
> On Mon, Jun 8, 2015 at 8:57 PM, Peter Uhnák <[hidden email]> wrote:
> Interesting; the layout is ignoring the border --- there should be spacing everywhere.
> It seems that the border is not accounted for in encompassingRectangle and/or containsPoint: as RTDraggable also works only on the inner half of the border.
>
> Peter
>
> On Mon, Jun 8, 2015 at 5:19 PM, Natalia Tymchuk <[hidden email]> wrote:
> Thank you.
>
> Best regards,
> Natalia
> > On 08 Jun 2015, at 17:14, Alexandre Bergel <[hidden email]> wrote:
> >
> > Hi Natalia,
> >
> > You can set the border as:
> >
> > v := RTView new.
> > shape := RTEllipse new
> >       size: 30;
> >       color: Color white;
> >       borderWidth: [ :vv | vv / 30 ];
> >       borderColor: Color black.
> >
> > v addAll: (shape elementsOn: (1 to: 10)).
> > RTGridLayout on: v elements.
> > v
> >
> > You questioned whether ellipse are special. I would say that border are rarely required for an ellipse, but for a box it is often necessary. This is just my feeling.
> >
> > Cheers,
> > Alexandre
> >
> >> On Jun 8, 2015, at 8:03 AM, Natalia Tymchuk <[hidden email]> wrote:
> >>
> >> Hello,
> >> I noticed that RTEllipse doesn’t have the border. Why it is like that?
> >>
> >> Best regards,
> >> Natalia
> >> _______________________________________________
> >> Moose-dev mailing list
> >> [hidden email]
> >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> > --
> > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > Alexandre Bergel  http://www.bergel.eu
> > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >
> >
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: why ellipse is so special?

Nicolai Hess


2015-06-08 22:06 GMT+02:00 Alexandre Bergel <[hidden email]>:
I am not sure why. I guess this comes from Athens…

Alexandre


Just look at these issues:

Issue 1097: Not all shapes support borderColor/borderWidth
https://code.google.com/p/moose-technology/issues/detail?id=1097

PaintMatrix does not effect strokepaints
change athens EllipseMorph drawing





 

> On Jun 8, 2015, at 3:58 PM, Peter Uhnák <[hidden email]> wrote:
>
> Also, why does RTEllipse has different units for the border? I.e. why is there division by 30; if I did that with RTBox I would get quite different results.
>
> Thanks,
> Peter
>
> On Mon, Jun 8, 2015 at 8:57 PM, Peter Uhnák <[hidden email]> wrote:
> Interesting; the layout is ignoring the border --- there should be spacing everywhere.
> It seems that the border is not accounted for in encompassingRectangle and/or containsPoint: as RTDraggable also works only on the inner half of the border.
>
> Peter
>
> On Mon, Jun 8, 2015 at 5:19 PM, Natalia Tymchuk <[hidden email]> wrote:
> Thank you.
>
> Best regards,
> Natalia
> > On 08 Jun 2015, at 17:14, Alexandre Bergel <[hidden email]> wrote:
> >
> > Hi Natalia,
> >
> > You can set the border as:
> >
> > v := RTView new.
> > shape := RTEllipse new
> >       size: 30;
> >       color: Color white;
> >       borderWidth: [ :vv | vv / 30 ];
> >       borderColor: Color black.
> >
> > v addAll: (shape elementsOn: (1 to: 10)).
> > RTGridLayout on: v elements.
> > v
> >
> > You questioned whether ellipse are special. I would say that border are rarely required for an ellipse, but for a box it is often necessary. This is just my feeling.
> >
> > Cheers,
> > Alexandre
> >
> >> On Jun 8, 2015, at 8:03 AM, Natalia Tymchuk <[hidden email]> wrote:
> >>
> >> Hello,
> >> I noticed that RTEllipse doesn’t have the border. Why it is like that?
> >>
> >> Best regards,
> >> Natalia
> >> _______________________________________________
> >> Moose-dev mailing list
> >> [hidden email]
> >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
> > --
> > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > Alexandre Bergel  http://www.bergel.eu
> > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >
> >
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev