KiCad PCB EDA Suite
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-2020 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 
30 #ifndef PCB_DISPLAY_OPTIONS_H_
31 #define PCB_DISPLAY_OPTIONS_H_
32 
34 
39 {
40 public:
42 
54  };
55 
58  bool m_DisplayPadNum; // show pads numbers
60  bool m_DisplayGraphicsFill; // How to display fp drawings ( sketch/ filled )
61  bool m_DisplayTextFill; // How to display fp texts ( sketch/ filled )
62  bool m_DisplayPcbTrackFill; // false : tracks are show in sketch mode, true = filled.
63 
66 
69 
70  int m_DisplayNetNamesMode; /* 0 do not show netnames,
71  * 1 show netnames on pads
72  * 2 show netnames on tracks
73  * 3 show netnames on tracks and pads
74  */
75 
78 
81 
84 
85  int m_MaxLinksShowed; // in track creation: number of airwires shown
86  bool m_ShowModuleRatsnest; // When moving a footprint: allows displaying a ratsnest
87  bool m_ShowGlobalRatsnest; // If true, show all
88  bool m_DisplayRatsnestLinesCurved; // Airwires can be drawn as straight lines (false)
89  // or curved lines (true)
90 
91  // These opacity overrides multiply with any opacity in the base layer color
92 
93  double m_TrackOpacity;
94  double m_ViaOpacity;
95  double m_PadOpacity;
96  double m_ZoneOpacity;
97 
107  };
108 
111  bool m_DisplayInvertXAxis; //< true: Invert the X axis for display
112  bool m_DisplayInvertYAxis; //< true: Invert the Y axis for display
113 
115 };
116 
117 #endif // PCBSTRUCT_H_
double m_TrackOpacity
Opacity override for all tracks.
double m_ViaOpacity
Opacity override for all types of via.
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)
TRACE_CLEARANCE_DISPLAY_MODE_T
The set of values for DISPLAY_OPTIONS.ShowTrackClearanceMode parameter option.
Container for display options like enable/disable some optional drawings.
PCB_DISPLAY_ORIGIN_OPTIONS_T m_DisplayOrigin
Which origin is used for display transforms.
HIGH_CONTRAST_MODE
Determine how inactive layers should be displayed.
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
PCB_DISPLAY_ORIGIN_OPTIONS_T
The set of values for DISPLAY_OPTIONS.DisplayOrigin parameter option.
NET_COLOR_MODE m_NetColorMode
How to use color overrides on specific nets and netclasses.