2014-10-23 13:53:38 -04:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007-2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
2025-01-01 13:30:11 -08:00
|
|
|
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
|
2014-10-23 13:53:38 -04:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2018-01-29 21:58:58 +01:00
|
|
|
#include <pcb_edit_frame.h>
|
2020-11-12 20:19:22 +00:00
|
|
|
#include <footprint.h>
|
2020-06-16 11:15:14 -07:00
|
|
|
#include <ratsnest/ratsnest_data.h>
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2010-11-12 10:36:43 -06:00
|
|
|
/**
|
|
|
|
* Function Compile_Ratsnest
|
2009-11-20 14:55:20 +00:00
|
|
|
* Create the entire board ratsnest.
|
2022-09-29 17:07:42 +01:00
|
|
|
* Must be called after a board change (changes for pads, footprints or a read netlist ).
|
2010-12-29 18:47:32 +01:00
|
|
|
* @param aDisplayStatus : if true, display the computation results
|
2007-08-23 04:28:46 +00:00
|
|
|
*/
|
2019-05-30 16:11:17 +01:00
|
|
|
void PCB_BASE_FRAME::Compile_Ratsnest( bool aDisplayStatus )
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2017-03-22 14:51:07 +01:00
|
|
|
GetBoard()->GetConnectivity()->RecalculateRatsnest();
|
2022-09-29 17:07:42 +01:00
|
|
|
GetBoard()->UpdateRatsnestExclusions();
|
2023-08-17 10:24:59 -04:00
|
|
|
GetBoard()->OnRatsnestChanged();
|
2007-10-13 12:17:17 +00:00
|
|
|
|
2010-12-29 18:47:32 +01:00
|
|
|
if( aDisplayStatus )
|
2020-09-30 23:02:05 +01:00
|
|
|
SetMsgPanel( m_pcb );
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|