KiCad PCB EDA Suite
Loading...
Searching...
No Matches
drc_interactive_courtyard_clearance.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2004-2019 Jean-Pierre Charras, jp.charras at wanadoo.fr
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
21
22#pragma once
23
25
26
28{
29public:
30 DRC_INTERACTIVE_COURTYARD_CLEARANCE( const std::shared_ptr<DRC_ENGINE>& aDRCEngine ) :
33 {
34 m_isRuleDriven = false;
35 SetDRCEngine( aDRCEngine.get() );
36 }
37
39
40 void Init( BOARD* aBoard );
41
42 virtual bool Run() override;
43
44 virtual const wxString GetName() const override
45 {
46 return wxT( "interactive_courtyard_clearance" );
47 }
48
49 void UpdateConflicts( KIGFX::VIEW* aView, bool aHighlightMoved );
50 void ClearConflicts( KIGFX::VIEW* aView );
51
52public:
53 std::vector<FOOTPRINT*> m_FpInMove; // The list of moved footprints
54
55private:
57
58private:
60
61 std::set<BOARD_ITEM*> m_itemsInConflict; // The list of items in conflict
62 std::vector<BOARD_ITEM*> m_lastItemsInConflict; // The list of items last highlighted
63};
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:372
virtual bool Run() override
Run this provider against the given PCB with configured options (if any).
virtual const wxString GetName() const override
virtual ~DRC_INTERACTIVE_COURTYARD_CLEARANCE()=default
void UpdateConflicts(KIGFX::VIEW *aView, bool aHighlightMoved)
DRC_INTERACTIVE_COURTYARD_CLEARANCE(const std::shared_ptr< DRC_ENGINE > &aDRCEngine)
void SetDRCEngine(DRC_ENGINE *engine)
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
Definition view.h:63