KiCad PCB EDA Suite
pcb_display_options.cpp
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) 2012 Jean-Pierre Charras, jean-pierre.charras@ujf-grenoble.fr
5  * Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
6  * Copyright (C) 2012 Wayne Stambaugh <stambaughw@verizon.net>
7  * Copyright (C) 1992-2019 KiCad Developers, see AUTHORS.txt for contributors.
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, you may find one here:
21  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
22  * or you may search the http://www.gnu.org website for the version 2 license,
23  * or you may write to the Free Software Foundation, Inc.,
24  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
25  */
26 
27 #include <common.h>
28 #include <pcbnew.h>
29 #include <pad.h>
30 #include <board_design_settings.h>
31 #include <layer_ids.h>
32 #include <pcb_display_options.h>
33 #include <eda_text.h>
34 
36 {
39  m_DisplayPadNum = true;
40  m_DisplayPadClearance = true;
42 
45  m_DisplayPcbTrackFill = FILLED; // false = sketch , true = filled
47 
49  m_DisplayNetNamesMode = 3; /* 0 do not show netnames,
50  * 1 show netnames on pads
51  * 2 show netnames on tracks
52  * 3 show netnames on tracks and pads */
56  m_MaxLinksShowed = 3; // in track creation: number of hairwires shown
57  m_ShowModuleRatsnest = true; // When moving a footprint: allows displaying a ratsnest
59  m_ShowGlobalRatsnest = true;
60 
61  m_TrackOpacity = 1.0;
62  m_ViaOpacity = 1.0;
63  m_PadOpacity = 1.0;
64  m_ZoneOpacity = 1.0;
65 
67  m_DisplayInvertXAxis = false;
68  m_DisplayInvertYAxis = false;
69  m_Live3DRefresh = false;
70 }
double m_TrackOpacity
Opacity override for all tracks.
double m_ViaOpacity
Opacity override for all types of via.
Net/netclass colors are shown on ratsnest lines only.
Ratsnest lines are drawn to items on all layers (default)
TRACE_CLEARANCE_DISPLAY_MODE_T m_ShowTrackClearanceMode
How trace clearances are displayed.
RATSNEST_MODE m_RatsnestMode
Ratsnest draw mode (all layers vs only visible layers)
PCB_DISPLAY_ORIGIN_OPTIONS_T m_DisplayOrigin
Which origin is used for display transforms.
Inactive layers are shown normally (no high-contrast mode)
HIGH_CONTRAST_MODE m_ContrastModeDisplay
How inactive layers are displayed.
double m_ZoneOpacity
Opacity override for filled zone areas.
double m_PadOpacity
Opacity override for SMD pads and PTHs.
bool m_Live3DRefresh
If true, 3D viewer will redraw on every modification operation.
ZONE_DISPLAY_MODE m_ZoneDisplayMode
The common library.
Definition of PCB_DISPLAY_OPTIONS class.
NET_COLOR_MODE m_NetColorMode
How to use color overrides on specific nets and netclasses.