[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Arrowlines patch version 2
From: |
Jonatan Liljedahl |
Subject: |
Re: Arrowlines patch version 2 |
Date: |
Mon, 18 Apr 2005 11:33:46 -0300 |
On Mon, 18 Apr 2005 01:46:37 +0200
Han-Wen Nienhuys <address@hidden> wrote:
> Op ma, 18-04-2005 te 00:49 -0300, schreef Jonatan Liljedahl:
> > On Sun, 17 Apr 2005 23:22:38 +0200
> > Han-Wen Nienhuys <address@hidden> wrote:
> >
> > > >+ static Stencil make_arrow (Offset &from, Offset &to, int dir,
> > > >Real length, Real width);
> > >
> > > don't use & . If you want to modify, use * . Use const& for big
> > > structures. In this case, just copy the arguments.
> >
> > I forgot to say: I don't know if you noticed, but I need to shorten
> > the line a bit to prevent it sticking out of the arrowhead. (The tip
> > of the arrow is sharp while the end of the line is linethickness
> > wide). So I need to modify the from and to offsets so that they are
> > shortened when they reach the make_line() calls later on. I don't
> > understand what you mean by copying the arguments...
>
> Use Lookup::round_filled_polygon to get rounded corners on the arrow
> heads.
That is the function I am using. But the line sticks out of the arrow
anyhow; the line needs to be shortened!
This means that I need access to the Offsets that draws the line, and
that's why I need to use the call-by-reference arguments.
/Jonatan -=( http://kymatica.com )=-
- Re: Arrowlines patch version 2, (continued)
- Re: Arrowlines patch version 2, Han-Wen Nienhuys, 2005/04/17
- Re: Arrowlines patch version 2, Jonatan Liljedahl, 2005/04/18
- Re: Arrowlines patch version 2, Han-Wen Nienhuys, 2005/04/17
- Re: Arrowlines patch version 2, Jonatan Liljedahl, 2005/04/18
- Re: Arrowlines patch version 2, Han-Wen Nienhuys, 2005/04/18
- Re: Arrowlines patch version 2, Jonatan Liljedahl, 2005/04/18
- Re: Arrowlines patch version 2, Han-Wen Nienhuys, 2005/04/18
- Re: Arrowlines patch version 2, Jonatan Liljedahl, 2005/04/18
Re: Arrowlines patch version 2, Jonatan Liljedahl, 2005/04/18