KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_display_options.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) 2007-2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
5 * Copyright (C) 1992-2021 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, 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_DISPLAY_OPTIONS_H_
26#define PCB_DISPLAY_OPTIONS_H_
27
29
31{
32public:
34 {
35 m_ZoneDisplayMode = ZONE_DISPLAY_MODE::SHOW_FILLED;
36 m_ContrastModeDisplay = HIGH_CONTRAST_MODE::NORMAL;
37 m_NetColorMode = NET_COLOR_MODE::RATSNEST;
38
39 m_TrackOpacity = 1.0;
40 m_ViaOpacity = 1.0;
41 m_PadOpacity = 1.0;
42 m_ZoneOpacity = 1.0;
43 m_ImageOpacity = 1.0;
44 }
45
48
51
54
55 // These opacity overrides multiply with any opacity in the base layer color
56
58 double m_ViaOpacity;
59 double m_PadOpacity;
62};
63
64#endif // PCBSTRUCT_H_
HIGH_CONTRAST_MODE
Determine how inactive layers should be displayed.
double m_TrackOpacity
Opacity override for all tracks.
double m_ZoneOpacity
Opacity override for filled zone areas.
double m_ImageOpacity
Opacity override for user images.
double m_PadOpacity
Opacity override for SMD pads and PTHs.
double m_ViaOpacity
Opacity override for all types of via.
HIGH_CONTRAST_MODE m_ContrastModeDisplay
How inactive layers are displayed.
NET_COLOR_MODE m_NetColorMode
How to use color overrides on specific nets and netclasses.
ZONE_DISPLAY_MODE m_ZoneDisplayMode