KiCad PCB EDA Suite
PCB_DISPLAY_OPTIONS Class Reference

PCB_DISPLAY_OPTIONS handles display options like enable/disable some optional drawings. More...

#include <pcb_display_options.h>

Public Types

enum  TRACE_CLEARANCE_DISPLAY_MODE_T {
  DO_NOT_SHOW_CLEARANCE = 0, SHOW_CLEARANCE_NEW_TRACKS, SHOW_CLEARANCE_NEW_TRACKS_AND_VIA_AREAS, SHOW_CLEARANCE_NEW_AND_EDITED_TRACKS_AND_VIA_AREAS,
  SHOW_CLEARANCE_ALWAYS
}
 Enum TRACE_CLEARANCE_DISPLAY_MODE_T is the set of values for DISPLAY_OPTIONS.ShowTrackClearanceMode parameter option. More...
 

Public Member Functions

 PCB_DISPLAY_OPTIONS ()
 

Public Attributes

bool m_DisplayPadFill
 
bool m_DisplayViaFill
 
bool m_DisplayPadNum
 
bool m_DisplayPadIsol
 
bool m_DisplayGraphicsFill
 
bool m_DisplayTextFill
 
bool m_DisplayPcbTrackFill
 
TRACE_CLEARANCE_DISPLAY_MODE_T m_ShowTrackClearanceMode
 How trace clearances are displayed. More...
 
int m_DisplayZonesMode
 
int m_DisplayNetNamesMode
 
HIGH_CONTRAST_MODE m_ContrastModeDisplay
 How inactive layers are displayed. More...
 
int m_MaxLinksShowed
 
bool m_ShowModuleRatsnest
 
bool m_ShowGlobalRatsnest
 
bool m_DisplayRatsnestLinesCurved
 

Detailed Description

PCB_DISPLAY_OPTIONS handles display options like enable/disable some optional drawings.

Definition at line 39 of file pcb_display_options.h.

Member Enumeration Documentation

◆ TRACE_CLEARANCE_DISPLAY_MODE_T

Enum TRACE_CLEARANCE_DISPLAY_MODE_T is the set of values for DISPLAY_OPTIONS.ShowTrackClearanceMode parameter option.

This parameter controls how to show tracks and vias clearance area.

Enumerator
DO_NOT_SHOW_CLEARANCE 
SHOW_CLEARANCE_NEW_TRACKS 
SHOW_CLEARANCE_NEW_TRACKS_AND_VIA_AREAS 
SHOW_CLEARANCE_NEW_AND_EDITED_TRACKS_AND_VIA_AREAS 
SHOW_CLEARANCE_ALWAYS 

Definition at line 48 of file pcb_display_options.h.

48  {
49  DO_NOT_SHOW_CLEARANCE = 0, // Do not show clearance areas
50  SHOW_CLEARANCE_NEW_TRACKS, /* Show clearance areas only for new track
51  * during track creation. */
52  SHOW_CLEARANCE_NEW_TRACKS_AND_VIA_AREAS, /* Show clearance areas only for new track
53  * during track creation, and shows a via
54  * clearance area at end of current new
55  * segment (guide to place a new via
56  */
58  /* Show clearance for new, moving and
59  * dragging tracks and vias
60  */
61  SHOW_CLEARANCE_ALWAYS /* Show Always clearance areas
62  * for track and vias
63  */
64  };

Constructor & Destructor Documentation

◆ PCB_DISPLAY_OPTIONS()

PCB_DISPLAY_OPTIONS::PCB_DISPLAY_OPTIONS ( )

Definition at line 34 of file pcb_display_options.cpp.

35 {
38  m_DisplayPadNum = true;
39  m_DisplayPadIsol = true;
40 
43  m_DisplayPcbTrackFill = FILLED; // false = sketch , true = filled
45 
46  m_DisplayZonesMode = 0; /* 0 = Show filled areas outlines in zones,
47  * 1 = do not show filled areas outlines
48  * 2 = show outlines of filled areas */
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 */
54  m_MaxLinksShowed = 3; // in track creation: number of hairwires shown
55  m_ShowModuleRatsnest = true; // When moving a footprint: allows displaying a ratsnest
57  m_ShowGlobalRatsnest = true;
58 }
TRACE_CLEARANCE_DISPLAY_MODE_T m_ShowTrackClearanceMode
How trace clearances are displayed.
HIGH_CONTRAST_MODE m_ContrastModeDisplay
How inactive layers are displayed.

References FILLED, m_ContrastModeDisplay, m_DisplayGraphicsFill, m_DisplayNetNamesMode, m_DisplayPadFill, m_DisplayPadIsol, m_DisplayPadNum, m_DisplayPcbTrackFill, m_DisplayRatsnestLinesCurved, m_DisplayTextFill, m_DisplayViaFill, m_DisplayZonesMode, m_MaxLinksShowed, m_ShowGlobalRatsnest, m_ShowModuleRatsnest, m_ShowTrackClearanceMode, NORMAL, and SHOW_CLEARANCE_NEW_TRACKS_AND_VIA_AREAS.

Member Data Documentation

◆ m_ContrastModeDisplay

◆ m_DisplayGraphicsFill

◆ m_DisplayNetNamesMode

◆ m_DisplayPadFill

◆ m_DisplayPadIsol

◆ m_DisplayPadNum

◆ m_DisplayPcbTrackFill

bool PCB_DISPLAY_OPTIONS::m_DisplayPcbTrackFill

◆ m_DisplayRatsnestLinesCurved

◆ m_DisplayTextFill

◆ m_DisplayViaFill

bool PCB_DISPLAY_OPTIONS::m_DisplayViaFill

◆ m_DisplayZonesMode

int PCB_DISPLAY_OPTIONS::m_DisplayZonesMode

◆ m_MaxLinksShowed

int PCB_DISPLAY_OPTIONS::m_MaxLinksShowed

Definition at line 87 of file pcb_display_options.h.

Referenced by PCB_DISPLAY_OPTIONS(), and PCBNEW_SETTINGS::PCBNEW_SETTINGS().

◆ m_ShowGlobalRatsnest

◆ m_ShowModuleRatsnest

◆ m_ShowTrackClearanceMode


The documentation for this class was generated from the following files: