kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #30746
Re: [PATCH] Make BRIGHT_BOX line width dependent on zoom level
-
To:
Kicad Developers <kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Maciej Suminski <maciej.suminski@xxxxxxx>
-
Date:
Fri, 15 Sep 2017 21:02:06 +0200
-
Authentication-results:
spf=pass (sender IP is 188.184.36.48) smtp.mailfrom=cern.ch; lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=bestguesspass action=none header.from=cern.ch;
-
In-reply-to:
<CA+qGbCCN9DYKv5SAJ7vd8YyVpvN4SprvN7chXbwmWHYr4Z2=FQ@mail.gmail.com>
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:99
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0
Hi Jon,
The implementation is correct, I tested the patch and it works as
advertised, but I am not sure if we really want to switch to fixed line
width for BRIGHT_BOX. Drawing a 10px wide outline looks fine at certain
zoom levels, but the items are covered with the outline when the view is
zoomed out too much. Perhaps a thinner line would work better here. The
original line width (size dependent) has been chosen to work as a well
visible outline for the most common track/pad/via sizes.
Oliver, just to clarify: the method Jon used works on the same principle
as the one you had proposed. The difference is Jon applied it to an item
that is supposed to be displayed using a non-cached vertex container.
You have proposed a generic function (GAL::SetFixedLineWidth()) which
works correctly for non-cached items, but fails for cached items. This
is the sole reason why I have not applied your patch, as it would add a
method that works only under specific circumstances, whereas it needs to
work in all cases. As you have guessed correctly, there are too many
issues to fix now, so I could not really focus on this task. It is
almost done, but I am stuck with a few visual artifacts I could not fix
easily.
Regards,
Orson
On 09/06/2017 02:24 AM, Jon Evans wrote:
> Hi all,
>
> This patch is a quick one to make the line width of the BRIGHT_BOX
> dependent on the zoom level so that it remains basically the same apparent
> size on the screen.
>
> -Jon
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References