kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #28107
Re: [PATCH] Move ZoomFitScreen and ZoomPreset to common
-
To:
<kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Maciej Sumiński <maciej.suminski@xxxxxxx>
-
Date:
Thu, 23 Feb 2017 10:17:19 +0100
-
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+qGbCDFQ3_xj-61HMPZ0OwA=3te-U=+NDNcPf36E=A4y9yFJQ@mail.gmail.com>
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:99
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
Hi Jon,
I really like the generic approach in the zoom methods. This part I
would merge instantly, but there is an issue with caching the board
bounding box. It does not take into account that items already added to
board may change their position and affect the bounding box. I would
remove caching completely, what do you think?
If you are going to modify the patch, would you rename boardBBox in
COMMON_TOOLS::ZoomFitScreen() to bbox or anything that is not related to
board? Thank you in advance.
Regards,
Orson
On 02/23/2017 05:34 AM, Jon Evans wrote:
> Hi all,
>
> This patch finishes off the refactor I did a few days ago, by enabling
> ZoomFitScreen to work without knowledge of the BOARD class.
>
> In order to make this work, I changed the way GetBoundingBox and
> ComputeBoundingBox work so that the call sites of GetBoundingBox don't have
> to also call ComputeBoundingBox if they don't need to use the
> aBoardEdgesOnly flag.
>
> Those with good knowledge of BOARD should review this to make sure I caught
> all the instances where we should mark the bounding box as needing to be
> re-computed.
>
> Best,
> 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
>
Attachment:
signature.asc
Description: OpenPGP digital signature
Follow ups
References