It's part of the kiway mail messaging system. Take a look at the kiway*.{h/cpp} files. I'm not sure if the 3D viewer is derived from KIWAY_PLAYER. If it is, this should be fairly straight forward assuming you can figure out the component position from the model geometry and translate that back to the board position. If not, you will have a lot more work to do. I do no want to add another messaging protocol to the board editor.
On 9/1/20 6:15 PM, Mário Luzeiro wrote: > Hello all, > > I'm evaluating how/ if it will be possible to implement some kind of cross > footprint selection between the 3D-Viewer and Pcbnew. > I know that it works with Schematic and Board so I believe there are already > some existent mechanisms.. but I don't know what exists in KiCad source-code > for that. > > Could someone point me where can I find relevant code that is already used or > implemented for this purpose? > > I have the following questions do clarify: > - Can I notify 3D-Viewer to update the render from pcbnew/eeschema? > - How can I flag/or select a footprint and notify pcbnew/eeschema? > - Does a footprint has a flag that says it is selected? or there is some > other list of selected footprints? > > Any other concerns or things that I should have a look? > > Regards, > Mario Luzeiro > > _______________________________________________ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp > _______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp