KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_selection.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) 2019 CERN
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#ifndef SCH_SELECTION_H
22#define SCH_SELECTION_H
23
25class SCH_SCREEN;
26class SCH_SHEET_PATH;
27
28#include <unordered_set>
29#include <tool/selection.h>
30#include <sch_sheet_path.h> // SCH_MULTI_UNIT_REFERENCE_MAP
31
32
34{
39
40public:
41 SCH_SELECTION( SCH_SCREEN* aScreen = nullptr );
42
43 EDA_ITEM* GetTopLeftItem( bool onlyModules = false ) const override;
44
45 BOX2I GetBoundingBox() const override;
46
47 void SetScreen( SCH_SCREEN* aScreen ) { m_screen = aScreen; }
49
50 const std::vector<KIGFX::VIEW_ITEM*> updateDrawList() const override;
51};
52
53#endif // SCH_SELECTION_H
BOX2< VECTOR2I > BOX2I
Definition box2.h:918
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:96
Container to create a flattened list of symbols because in a complex hierarchy, a symbol can be used ...
const std::vector< KIGFX::VIEW_ITEM * > updateDrawList() const override
EDA_ITEM * GetTopLeftItem(bool onlyModules=false) const override
SCH_SELECTION(SCH_SCREEN *aScreen=nullptr)
SCH_SCREEN * GetScreen()
BOX2I GetBoundingBox() const override
void SetScreen(SCH_SCREEN *aScreen)
SCH_SCREEN * m_screen
Screen of selected objects.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.