KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_view.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) 2013-2016 CERN
5 * @author Tomasz Wlostowski <[email protected]>
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, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25#ifndef __PCB_VIEW_H
26#define __PCB_VIEW_H
27
28#include <layer_ids.h>
29#include <view/view.h>
30#include <board_item.h>
31
33
34namespace KIGFX {
35
36class PCB_VIEW : public VIEW
37{
38public:
39 PCB_VIEW();
40 virtual ~PCB_VIEW();
41
43 virtual void Add( VIEW_ITEM* aItem, int aDrawPriority = -1 ) override;
44
46 virtual void Remove( VIEW_ITEM* aItem ) override;
47
49 virtual void Update( const VIEW_ITEM* aItem, int aUpdateFlags ) const override;
50
52 virtual void Update( const VIEW_ITEM* aItem ) const override;
53
54 void UpdateDisplayOptions( const PCB_DISPLAY_OPTIONS& aOptions );
55};
56
57}
58
59#endif
virtual ~PCB_VIEW()
Definition: pcb_view.cpp:52
virtual void Update(const VIEW_ITEM *aItem, int aUpdateFlags) const override
For dynamic VIEWs, inform the associated VIEW that the graphical representation of this item has chan...
Definition: pcb_view.cpp:91
virtual void Add(VIEW_ITEM *aItem, int aDrawPriority=-1) override
Add a VIEW_ITEM to the view.
Definition: pcb_view.cpp:57
virtual void Remove(VIEW_ITEM *aItem) override
Remove a VIEW_ITEM from the view.
Definition: pcb_view.cpp:74
void UpdateDisplayOptions(const PCB_DISPLAY_OPTIONS &aOptions)
Definition: pcb_view.cpp:121
An abstract base class for deriving all objects that can be added to a VIEW.
Definition: view_item.h:84
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
Definition: view.h:68
The Cairo implementation of the graphics abstraction layer.
Definition: color4d.cpp:247