kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #44481
Re: Evaluating cross-selection between the 3D-Viewer and Pcbnew
-
To:
"kicad-developers@xxxxxxxxxxxxxxxxxxx" <kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Mário Luzeiro <mrluzeiro@xxxxx>
-
Date:
Fri, 4 Sep 2020 01:05:16 +0000
-
Accept-language:
en-GB, en-US
-
Arc-authentication-results:
i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ua.pt; dmarc=pass action=none header.from=ua.pt; dkim=pass header.d=ua.pt; arc=none
-
Arc-message-signature:
i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5UdXd97INjRtVmBh6oVGF5ECPU/U5AFtk/APdWgogSo=; b=lSRQM+FvH6P5o/jNm0buFC8FXiLy7iw48zU6sHmNDh8SBISbTWvEt5aj9tHwh8ipSw5p0T6q2QrRT8E6z6dFi2CBL/LRJqzGxWyqYeQeOrE0eNpWJHPMPiP4p05FnAs8JC1ug3PvtPiZV5flNafcAp9qjjVmZB4+4YgT0ILezvZYxXPwYv0bs1DffxmX/8qyWY3oIQamzscaI1LxwEbeV5ibtXcTkkGIo0JSBEJ8yxP3DztMH+RMNbbLhcd0jX1mQj7+qJ6BCM6Zluro88Qe2BuxKvohetUzjMeu3dE7XYU41NqJzu8OAfzgZfyTqxN9/JOJDPUeshDAqv2c3Pccrw==
-
Arc-seal:
i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VYe2pTUTRruTtibbL+uUXQPGdfdHgUaV566brSER5Pvzi2trVO4Pn5dp0JSu+3z39KJVcXeoMvZVYpVyyfXmhdPphh7Fd1ZLrVUtYb8G8kcJFVFVQdc5YHK6B3mW0lSJnGo2Hop2DkY8tZgWU0SmBrQ7r6WpXsvjolfyVodU3qIFiE0cz5nv4En/iohKVMXVYVPkNuEXflVgMmNRqjwqYJ8zH93GAxXjF/KLNq+McTCGA0f2+L8H4TAawPRBFsMZr1j7Nh8Rb7xJ7t1Wm4omWt3TnEhn+a0NQR65JSKhfH3w8GFaAMB0ONLIr49R6ZCXnbul1FAmrx+Ah+qTwgNuxw==
-
Authentication-results:
lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=none action=none header.from=ua.pt;
-
In-reply-to:
<CAFdeG-rJoUrPaNH12naB6kBsjnjNZLmNQcD06AhfSUhfoq+SDg@mail.gmail.com>
-
Thread-index:
AQHWgKv2/CZmQl6Gu0m2TscvKSQwbqlVUZUAgAAGBACAAAM8AIACTv0H
-
Thread-topic:
[Kicad-developers] Evaluating cross-selection between the 3D-Viewer and Pcbnew
Thanks all for the suggestions on this subject.
I managed to implement almost all the things I had in mind without using kiway.
>From the 3D-Viewer side, I got the board information with all the items state (eg using IsSelected as Fabien suggested)
but that only works one way Pcbnew -> Board -> 3D-Viewer
I noticed that it does not work: if I set an item to be selected, pcbnew will not show it as selected.
Here is where I believe it misses the use of kiway.
I added in pcbnew calls to request a redraw of the 3D-Viewer (when footprint is selected or moved). It adds/touches only less than a dozen of lines of code.
This should be drooped in future if using kiway, but at this moment pcbnew already request a reload of 3D-viewer on a similar fashion.
I open this merge request if you would like to test it and where you can have a list of the implemented features:
https://gitlab.com/kicad/code/kicad/-/merge_requests/397
looking for your feedback and ideas to see if that can be more improved!
Regards,
Mario Luzeiro
References