![]() |
KiCad PCB EDA Suite
|
PCB specific render settings. More...
#include <pcb_painter.h>
Public Types | |
enum | CLEARANCE_MODE { CL_NONE = 0x00, CL_PADS = 0x01, CL_VIAS = 0x02, CL_TRACKS = 0x04, CL_NEW = 0x08, CL_EDITED = 0x10, CL_EXISTING = 0x20 } |
Public Member Functions | |
PCB_RENDER_SETTINGS () | |
void | LoadDisplayOptions (const PCB_DISPLAY_OPTIONS &aOptions, bool aShowPageLimits) |
Load settings related to display options (high-contrast mode, full or outline modes for vias/pads/tracks and so on). More... | |
virtual void | LoadColors (const COLOR_SETTINGS *aSettings) override |
virtual COLOR4D | GetColor (const VIEW_ITEM *aItem, int aLayer) const override |
Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer using currently used render settings. More... | |
void | SetSketchMode (int aItemLayer, bool aEnabled) |
Turn on/off sketch mode for given item layer. More... | |
bool | GetSketchMode (int aItemLayer) const |
Return sketch mode setting for a given item layer. More... | |
void | SetSketchModeGraphicItems (bool aEnabled) |
Turn on/off sketch mode for graphic items (DRAWSEGMENTs, texts). More... | |
void | EnableZoneOutlines (bool aEnabled) |
Turn on/off drawing outline and hatched lines for zones. More... | |
bool | IsBackgroundDark () const override |
const COLOR4D & | GetBackgroundColor () override |
Return current background color settings. More... | |
void | SetBackgroundColor (const COLOR4D &aColor) override |
Set the background color. More... | |
const COLOR4D & | GetGridColor () override |
Return current grid color settings. More... | |
const COLOR4D & | GetCursorColor () override |
Return current cursor color settings. More... | |
void | SetContrastModeDisplay (HIGH_CONTRAST_MODE aMode) |
Switch the contrast mode setting (HIGH_CONTRAST_MODE:NORMAL, DIMMED or HIDDEN ) to control how the non active layers are shown. More... | |
HIGH_CONTRAST_MODE | GetContrastModeDisplay () |
bool | GetCurvedRatsnestLinesEnabled () const |
bool | GetGlobalRatsnestLinesEnabled () const |
bool | GetDrawIndividualViaLayers () const |
void | SetDrawIndividualViaLayers (bool aFlag) |
NET_COLOR_MODE | GetNetColorMode () const |
void | SetNetColorMode (NET_COLOR_MODE aMode) |
RATSNEST_MODE | GetRatsnestDisplayMode () const |
void | SetRatsnestDisplayMode (RATSNEST_MODE aMode) |
std::map< wxString, KIGFX::COLOR4D > & | GetNetclassColorMap () |
std::map< int, KIGFX::COLOR4D > & | GetNetColorMap () |
std::set< int > & | GetHiddenNets () |
const std::set< int > & | GetHiddenNets () const |
void | SetZoneDisplayMode (ZONE_DISPLAY_MODE mode) |
void | SetLayerIsHighContrast (int aLayerId, bool aEnabled=true) |
Set the specified layer as high-contrast. More... | |
bool | GetLayerIsHighContrast (int aLayerId) const |
Return information whether the queried layer is marked as high-contrast. More... | |
const std::set< unsigned int > | GetHighContrastLayers () const |
Returns the set of currently high-contrast layers. More... | |
PCB_LAYER_ID | GetPrimaryHighContrastLayer () const |
Return the board layer which is in high-contrast mode. More... | |
PCB_LAYER_ID | GetActiveLayer () const |
void | SetActiveLayer (PCB_LAYER_ID aLayer) |
void | ClearHighContrastLayers () |
Clear the list of active layers. More... | |
bool | IsHighlightEnabled () const |
Return current highlight setting. More... | |
const std::set< int > & | GetHighlightNetCodes () const |
Return the netcode of currently highlighted net. More... | |
void | SetHighlight (bool aEnabled, int aNetcode=-1, bool aMulti=false) |
Turns on/off highlighting. More... | |
void | SetHighlight (std::set< int > &aHighlight, bool aEnabled=true) |
Turns on highlighting and highlights multiple nets. More... | |
void | SetHighContrast (bool aEnabled) |
Turns on/off high contrast display mode. More... | |
bool | GetHighContrast () const |
float | GetDrawingSheetLineWidth () const |
int | GetDefaultPenWidth () const |
void | SetDefaultPenWidth (int aWidth) |
int | GetMinPenWidth () const |
void | SetMinPenWidth (int aWidth) |
bool | GetShowPageLimits () const |
void | SetShowPageLimits (bool aDraw) |
bool | IsPrinting () const |
void | SetIsPrinting (bool isPrinting) |
const COLOR4D & | GetLayerColor (int aLayer) const |
Return the color used to draw a layer. More... | |
void | SetLayerColor (int aLayer, const COLOR4D &aColor) |
Change the color used to draw a layer. More... | |
void | SetOutlineWidth (float aWidth) |
Set line width used for drawing outlines. More... | |
void | SetHighlightFactor (float aFactor) |
void | SetSelectFactor (float aFactor) |
void | SetHighContrastFactor (float aFactor) |
wxDC * | GetPrintDC () const |
void | SetPrintDC (wxDC *aDC) |
Protected Member Functions | |
virtual void | update () |
Precalculates extra colors for layers (e.g. More... | |
Static Protected Attributes | |
static const double | MAX_FONT_SIZE = Millimeter2iu( 10.0 ) |
< Maximum font size for netnames (and other dynamically shown strings) More... | |
Friends | |
class | PCB_PAINTER |
Flags to control clearance lines visibility. More... | |
PCB specific render settings.
Definition at line 64 of file pcb_painter.h.
Enumerator | |
---|---|
CL_NONE | |
CL_PADS | |
CL_VIAS | |
CL_TRACKS | |
CL_NEW | |
CL_EDITED | |
CL_EXISTING |
Definition at line 70 of file pcb_painter.h.
PCB_RENDER_SETTINGS::PCB_RENDER_SETTINGS | ( | ) |
Definition at line 62 of file pcb_painter.cpp.
References ALL, arrayDim(), CL_NONE, KIGFX::RENDER_SETTINGS::m_backgroundColor, m_clearanceDisplayFlags, m_contrastModeDisplay, m_netColorMode, m_netNamesOnPads, m_netNamesOnTracks, m_netNamesOnVias, m_padNumbers, m_padOpacity, m_ratsnestDisplayMode, m_sketchGraphics, m_sketchMode, m_sketchText, m_trackOpacity, m_viaOpacity, m_zoneDisplayMode, m_zoneOpacity, m_zoneOutlines, NORMAL, RATSNEST, SHOW_FILLED, and KIGFX::RENDER_SETTINGS::update().
|
inlineinherited |
Clear the list of active layers.
Definition at line 118 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_highContrastLayers.
Referenced by GERBVIEW_DRAW_PANEL_GAL::SetHighContrastLayer(), PCB_DRAW_PANEL_GAL::SetHighContrastLayer(), and EDA_DRAW_PANEL_GAL::SetHighContrastLayer().
|
inline |
Turn on/off drawing outline and hatched lines for zones.
Definition at line 136 of file pcb_painter.h.
References m_zoneOutlines.
Referenced by KIGFX::PCB_PRINT_PAINTER::PCB_PRINT_PAINTER().
|
inlineinherited |
Definition at line 112 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_activeLayer.
Referenced by KIGFX::PCB_PAINTER::draw().
|
inlineoverridevirtual |
Return current background color settings.
Implements KIGFX::RENDER_SETTINGS.
Definition at line 148 of file pcb_painter.h.
References LAYER_PCB_BACKGROUND, and KIGFX::RENDER_SETTINGS::m_layerColors.
Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer using currently used render settings.
aItem | is the VIEW_ITEM. |
aLayer | is the layer. |
Implements KIGFX::RENDER_SETTINGS.
Definition at line 226 of file pcb_painter.cpp.
References ALL, BLIND_BURIED, KIGFX::COLOR4D::Brighten(), KIGFX::COLOR4D::CLEAR, color, KIGFX::COLOR4D::Darken(), BOARD_CONNECTED_ITEM::GetNetClassName(), BOARD_CONNECTED_ITEM::GetNetCode(), KIGFX::RENDER_SETTINGS::GetPrimaryHighContrastLayer(), HIDDEN, EDA_ITEM::IsBrightened(), IsHoleLayer(), IsNetCopperLayer(), IsNetnameLayer(), EDA_ITEM::IsSelected(), IsZoneLayer(), LAYER_MARKER_SHADOWS, LAYER_NON_PLATEDHOLES, LAYER_PAD_HOLEWALLS, LAYER_PAD_PLATEDHOLES, LAYER_PADS_TH, LAYER_PCB_BACKGROUND, LAYER_VIA_BBLIND, LAYER_VIA_HOLES, LAYER_VIA_HOLEWALLS, LAYER_VIA_MICROVIA, LAYER_VIA_THROUGH, LAYER_ZONE_START, KIGFX::RENDER_SETTINGS::m_backgroundColor, m_contrastModeDisplay, KIGFX::RENDER_SETTINGS::m_hiContrastEnabled, KIGFX::RENDER_SETTINGS::m_hiContrastFactor, KIGFX::RENDER_SETTINGS::m_highContrastLayers, KIGFX::RENDER_SETTINGS::m_highlightEnabled, KIGFX::RENDER_SETTINGS::m_highlightFactor, KIGFX::RENDER_SETTINGS::m_highlightNetcodes, KIGFX::RENDER_SETTINGS::m_isPrinting, KIGFX::RENDER_SETTINGS::m_layerColors, KIGFX::RENDER_SETTINGS::m_layerColorsDark, KIGFX::RENDER_SETTINGS::m_layerColorsHi, KIGFX::RENDER_SETTINGS::m_layerColorsSel, m_netclassColors, m_netColorMode, m_netColors, m_padOpacity, KIGFX::RENDER_SETTINGS::m_selectFactor, m_trackOpacity, m_viaOpacity, m_zoneOpacity, MICROVIA, pad, PCB_ARC_T, PCB_FP_ZONE_T, PCB_PAD_T, PCB_TRACE_T, PCB_VIA_T, PCB_ZONE_T, LSET::PhysicalLayersMask(), PTH, THROUGH, EDA_ITEM::Type(), UNDEFINED_LAYER, KIGFX::COLOR4D::UNSPECIFIED, via, and KIGFX::COLOR4D::WithAlpha().
Referenced by KIGFX::PCB_PAINTER::draw().
|
inline |
Definition at line 168 of file pcb_painter.h.
References m_contrastModeDisplay.
|
inlineoverridevirtual |
Return current cursor color settings.
Implements KIGFX::RENDER_SETTINGS.
Definition at line 157 of file pcb_painter.h.
References LAYER_CURSOR, and KIGFX::RENDER_SETTINGS::m_layerColors.
|
inline |
Definition at line 170 of file pcb_painter.h.
References m_curvedRatsnestlines.
|
inlineinherited |
Definition at line 200 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_defaultPenWidth.
Referenced by KIGFX::SCH_PAINTER::draw(), LIB_SHAPE::GetEffectivePenWidth(), LIB_ITEM::GetEffectivePenWidth(), KIGFX::SCH_PAINTER::getTextThickness(), SCH_NO_CONNECT::Plot(), SCH_BITMAP::Plot(), SCH_FIELD::Plot(), SCH_TEXT::Plot(), SCH_SCREEN::Plot(), PlotDrawingSheet(), LIB_PIN::PlotPinTexts(), SCH_NO_CONNECT::Print(), SCH_BUS_ENTRY_BASE::Print(), LIB_SHAPE::print(), LIB_TEXT::print(), SCH_FIELD::Print(), SCH_LINE::Print(), SCH_SHEET::Print(), SCH_GLOBALLABEL::Print(), SCH_HIERLABEL::Print(), PrintDrawingSheet(), EDA_TEXT::printOneLineOfText(), LIB_PIN::printPinTexts(), DS_DRAW_ITEM_LINE::PrintWsItem(), DS_DRAW_ITEM_POLYPOLYGONS::PrintWsItem(), DS_DRAW_ITEM_RECT::PrintWsItem(), GERBER_PLOTTER::SetCurrentLineWidth(), PS_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::SetCurrentLineWidth(), SVG_PLOTTER::SetCurrentLineWidth(), PDF_PLOTTER::StartPage(), GERBER_PLOTTER::StartPlot(), and PS_PLOTTER::StartPlot().
|
inline |
Definition at line 174 of file pcb_painter.h.
References m_drawIndividualViaLayers.
Referenced by KIGFX::PCB_PAINTER::draw().
|
inlineinherited |
Definition at line 198 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_drawingSheetLineWidth.
Referenced by DS_PROXY_VIEW_ITEM::buildDrawList().
|
inline |
Definition at line 172 of file pcb_painter.h.
References m_globalRatsnestlines.
|
inlineoverridevirtual |
Return current grid color settings.
Implements KIGFX::RENDER_SETTINGS.
Definition at line 155 of file pcb_painter.h.
References LAYER_GRID, and KIGFX::RENDER_SETTINGS::m_layerColors.
|
inline |
Definition at line 187 of file pcb_painter.h.
References m_hiddenNets.
Referenced by BOARD_INSPECTION_TOOL::doHideNet(), PCB_EDIT_FRAME::LoadProjectSettings(), NET_GRID_TABLE::Rebuild(), and PCB_EDIT_FRAME::SaveProjectSettings().
|
inline |
|
inlineinherited |
Definition at line 186 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_hiContrastEnabled.
Referenced by PCB_GRID_HELPER::computeAnchors(), PNS_KICAD_IFACE::IsItemVisible(), PCB_GRID_HELPER::queryVisible(), and PCB_SELECTION_TOOL::Selectable().
|
inlineinherited |
Returns the set of currently high-contrast layers.
Definition at line 90 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_highContrastLayers.
Referenced by PCB_GRID_HELPER::computeAnchors(), PCB_GRID_HELPER::queryVisible(), and PCB_SELECTION_TOOL::Selectable().
|
inlineinherited |
Return the netcode of currently highlighted net.
Definition at line 138 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_highlightNetcodes.
Referenced by BOARD_INSPECTION_TOOL::HighlightNet(), PNS::TOOL_BASE::highlightNet(), and PCB_EDIT_FRAME::setupUIConditions().
|
inlineinherited |
Return the color used to draw a layer.
aLayer | is the layer number. |
Definition at line 237 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_layerColors.
Referenced by DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), KIGFX::SCH_PAINTER::draw(), KIGFX::PREVIEW::DRAW_CONTEXT::DrawCircle(), KIGFX::PREVIEW::DRAW_CONTEXT::DrawLine(), KIGFX::PREVIEW::DRAW_CONTEXT::DrawLineWithAngleHighlight(), BOARD_PRINTOUT::DrawPage(), KIGFX::PREVIEW::POLYGON_ITEM::drawPreviewShape(), KIGFX::PREVIEW::DrawTextNextToCursor(), KIGFX::SCH_PAINTER::getRenderColor(), PCB_GRID_HELPER::PCB_GRID_HELPER(), LIB_SHAPE::Plot(), LIB_TEXT::Plot(), SCH_NO_CONNECT::Plot(), SCH_BITMAP::Plot(), LIB_FIELD::Plot(), SCH_FIELD::Plot(), SCH_TEXT::Plot(), LIB_SYMBOL::Plot(), SCH_SHEET::Plot(), LIB_SYMBOL::PlotLibFields(), DIALOG_PLOT_SCHEMATIC::plotOneSheetDXF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPDF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG(), LIB_PIN::PlotPinTexts(), LIB_PIN::PlotSymbol(), SCH_NO_CONNECT::Print(), SCH_JUNCTION::Print(), SCH_BUS_ENTRY_BASE::Print(), LIB_SHAPE::print(), LIB_TEXT::print(), LIB_PIN::print(), SCH_FIELD::Print(), SCH_TEXT::Print(), SCH_LINE::Print(), LIB_FIELD::print(), SCH_SHEET::Print(), SCH_GLOBALLABEL::Print(), SCH_HIERLABEL::Print(), LIB_PIN::printPinElectricalTypeName(), LIB_PIN::printPinSymbol(), LIB_PIN::printPinTexts(), DS_DRAW_ITEM_LINE::PrintWsItem(), DS_DRAW_ITEM_POLYPOLYGONS::PrintWsItem(), DS_DRAW_ITEM_RECT::PrintWsItem(), DS_DRAW_ITEM_TEXT::PrintWsItem(), DIALOG_PAGES_SETTINGS::UpdateDrawingSheetExample(), KIGFX::PREVIEW::RULER_ITEM::ViewDraw(), DS_PROXY_VIEW_ITEM::ViewDraw(), and EDIT_POINTS::ViewDraw().
|
inlineinherited |
Return information whether the queried layer is marked as high-contrast.
Definition at line 82 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_highContrastLayers.
|
inlineinherited |
Definition at line 203 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_minPenWidth.
Referenced by LIB_SHAPE::GetEffectivePenWidth(), LIB_ITEM::GetEffectivePenWidth(), LIB_TEXT::Plot(), SCH_FIELD::Plot(), SCH_TEXT::Plot(), and SCH_SHEET::Plot().
|
inline |
Definition at line 183 of file pcb_painter.h.
References m_netclassColors.
Referenced by PCB_EDIT_FRAME::LoadProjectSettings(), APPEARANCE_CONTROLS::onNetclassColorChanged(), APPEARANCE_CONTROLS::onNetclassContextMenu(), APPEARANCE_CONTROLS::rebuildNets(), and PCB_EDIT_FRAME::SaveProjectSettings().
|
inline |
Definition at line 185 of file pcb_painter.h.
References m_netColors.
Referenced by PCB_EDIT_FRAME::LoadProjectSettings(), NET_GRID_TABLE::Rebuild(), PCB_EDIT_FRAME::SaveProjectSettings(), and NET_GRID_TABLE::updateNetColor().
|
inline |
Definition at line 177 of file pcb_painter.h.
References m_netColorMode.
|
inlineinherited |
Return the board layer which is in high-contrast mode.
There should only be one board layer which is high-contrast at any given time, although there might be many high-contrast synthetic (GAL) layers.
Definition at line 101 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_highContrastLayers, PCB_LAYER_ID_COUNT, PCBNEW_LAYER_ID_START, and UNDEFINED_LAYER.
Referenced by GetColor(), and PNS_KICAD_IFACE::IsItemVisible().
|
inlineinherited |
Definition at line 275 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_printDC.
Referenced by SCH_NO_CONNECT::Print(), SCH_JUNCTION::Print(), SCH_BUS_ENTRY_BASE::Print(), SCH_BITMAP::Print(), LIB_SHAPE::print(), LIB_TEXT::print(), LIB_PIN::print(), SCH_FIELD::Print(), SCH_LINE::Print(), LIB_FIELD::print(), SCH_SHEET::Print(), SCH_GLOBALLABEL::Print(), SCH_HIERLABEL::Print(), EDA_DRAW_FRAME::PrintDrawingSheet(), MARKER_BASE::PrintMarker(), EDA_TEXT::printOneLineOfText(), SCH_EDIT_FRAME::PrintPage(), LIB_PIN::printPinElectricalTypeName(), LIB_PIN::printPinSymbol(), LIB_PIN::printPinTexts(), DS_DRAW_ITEM_LINE::PrintWsItem(), DS_DRAW_ITEM_POLYPOLYGONS::PrintWsItem(), DS_DRAW_ITEM_RECT::PrintWsItem(), and DS_DRAW_ITEM_BITMAP::PrintWsItem().
|
inline |
Definition at line 180 of file pcb_painter.h.
References m_ratsnestDisplayMode.
|
inlineinherited |
Definition at line 206 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_showPageLimits.
Referenced by DS_PROXY_VIEW_ITEM::ViewDraw().
|
inline |
Return sketch mode setting for a given item layer.
aItemLayer | is the item layer that is changed. |
Definition at line 117 of file pcb_painter.h.
References m_sketchMode.
|
inlineoverridevirtual |
Reimplemented from KIGFX::RENDER_SETTINGS.
Definition at line 141 of file pcb_painter.h.
References KIGFX::COLOR4D::GetBrightness(), LAYER_PCB_BACKGROUND, and KIGFX::RENDER_SETTINGS::m_layerColors.
|
inlineinherited |
Return current highlight setting.
Definition at line 128 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_highlightEnabled.
Referenced by PCB_EDIT_FRAME::ExecuteRemoteCommand(), and PNS::TOOL_BASE::highlightNet().
|
inlineinherited |
|
overridevirtual |
Reimplemented from KIGFX::RENDER_SETTINGS.
Definition at line 91 of file pcb_painter.cpp.
References KIGFX::COLOR4D::a, LSET::AllCuMask(), B_Cu, F_Cu, GAL_LAYER_ID_END, GAL_LAYER_ID_START, COLOR_SETTINGS::GetColor(), GetNetnameLayer(), KIGFX::COLOR4D::Inverted(), LAYER_PAD_BK, LAYER_PAD_BK_NETNAMES, LAYER_PAD_FR, LAYER_PAD_FR_NETNAMES, LAYER_PAD_NETNAMES, LAYER_PAD_PLATEDHOLES, LAYER_PCB_BACKGROUND, LAYER_VIA_NETNAMES, KIGFX::RENDER_SETTINGS::m_layerColors, PCB_LAYER_ID_COUNT, SetBackgroundColor(), and KIGFX::RENDER_SETTINGS::update().
Referenced by StartPlotBoard().
void PCB_RENDER_SETTINGS::LoadDisplayOptions | ( | const PCB_DISPLAY_OPTIONS & | aOptions, |
bool | aShowPageLimits | ||
) |
Load settings related to display options (high-contrast mode, full or outline modes for vias/pads/tracks and so on).
aOptions | are settings that you want to use for displaying items. |
Definition at line 135 of file pcb_painter.cpp.
References CL_EDITED, CL_EXISTING, CL_NEW, CL_NONE, CL_PADS, CL_TRACKS, CL_VIAS, PCB_DISPLAY_OPTIONS::DO_NOT_SHOW_CLEARANCE, LAYER_PADS_TH, LAYER_TRACKS, LAYER_VIA_BBLIND, LAYER_VIA_MICROVIA, LAYER_VIA_THROUGH, m_clearanceDisplayFlags, PCB_DISPLAY_OPTIONS::m_ContrastModeDisplay, m_contrastModeDisplay, m_curvedRatsnestlines, PCB_DISPLAY_OPTIONS::m_DisplayGraphicsFill, PCB_DISPLAY_OPTIONS::m_DisplayNetNamesMode, PCB_DISPLAY_OPTIONS::m_DisplayPadClearance, PCB_DISPLAY_OPTIONS::m_DisplayPadFill, PCB_DISPLAY_OPTIONS::m_DisplayPadNum, PCB_DISPLAY_OPTIONS::m_DisplayPcbTrackFill, PCB_DISPLAY_OPTIONS::m_DisplayRatsnestLinesCurved, PCB_DISPLAY_OPTIONS::m_DisplayTextFill, PCB_DISPLAY_OPTIONS::m_DisplayViaFill, m_globalRatsnestlines, KIGFX::RENDER_SETTINGS::m_hiContrastEnabled, PCB_DISPLAY_OPTIONS::m_NetColorMode, m_netColorMode, m_netNamesOnPads, m_netNamesOnTracks, m_netNamesOnVias, m_padNumbers, PCB_DISPLAY_OPTIONS::m_PadOpacity, m_padOpacity, m_ratsnestDisplayMode, PCB_DISPLAY_OPTIONS::m_RatsnestMode, PCB_DISPLAY_OPTIONS::m_ShowGlobalRatsnest, KIGFX::RENDER_SETTINGS::m_showPageLimits, PCB_DISPLAY_OPTIONS::m_ShowTrackClearanceMode, m_sketchGraphics, m_sketchMode, m_sketchText, PCB_DISPLAY_OPTIONS::m_TrackOpacity, m_trackOpacity, PCB_DISPLAY_OPTIONS::m_ViaOpacity, m_viaOpacity, PCB_DISPLAY_OPTIONS::m_ZoneDisplayMode, m_zoneDisplayMode, PCB_DISPLAY_OPTIONS::m_ZoneOpacity, m_zoneOpacity, NORMAL, PCB_DISPLAY_OPTIONS::SHOW_TRACK_CLEARANCE_WHILE_ROUTING, PCB_DISPLAY_OPTIONS::SHOW_TRACK_CLEARANCE_WITH_VIA_ALWAYS, PCB_DISPLAY_OPTIONS::SHOW_TRACK_CLEARANCE_WITH_VIA_WHILE_ROUTING, and PCB_DISPLAY_OPTIONS::SHOW_WHILE_ROUTING_OR_DRAGGING.
|
inlineinherited |
Definition at line 113 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_activeLayer.
Referenced by PCB_DRAW_PANEL_GAL::SetHighContrastLayer().
|
inlineoverridevirtual |
Set the background color.
Implements KIGFX::RENDER_SETTINGS.
Definition at line 150 of file pcb_painter.h.
References LAYER_PCB_BACKGROUND, and KIGFX::RENDER_SETTINGS::m_layerColors.
Referenced by LoadColors().
|
inline |
Switch the contrast mode setting (HIGH_CONTRAST_MODE:NORMAL, DIMMED or HIDDEN ) to control how the non active layers are shown.
Definition at line 163 of file pcb_painter.h.
References m_contrastModeDisplay.
Referenced by DIALOG_PAD_PROPERTIES::onChangePadMode().
|
inlineinherited |
Definition at line 201 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_defaultPenWidth.
Referenced by GENDRILL_WRITER_BASE::genDrillMapFile(), SCH_EDIT_FRAME::LoadProjectSettings(), DIALOG_PLOT_SCHEMATIC::plotOneSheetDXF(), PLEDITOR_PRINTOUT::PrintPage(), KIGFX::SCH_RENDER_SETTINGS::SCH_RENDER_SETTINGS(), SCH_EDIT_FRAME::ShowSchematicSetupDialog(), GERBER_PLOTTER::StartPlot(), StartPlotBoard(), SYMBOL_EDIT_FRAME::SVGPlotSymbol(), SYMBOL_VIEWER_FRAME::SYMBOL_VIEWER_FRAME(), and DIALOG_PAGES_SETTINGS::UpdateDrawingSheetExample().
|
inline |
Definition at line 175 of file pcb_painter.h.
References m_drawIndividualViaLayers.
Referenced by PCBNEW_PRINTOUT::setupPainter().
|
inlineinherited |
Turns on/off high contrast display mode.
Definition at line 185 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_hiContrastEnabled.
Referenced by DIALOG_PAD_PROPERTIES::onChangePadMode().
|
inlineinherited |
Definition at line 272 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_hiContrastFactor.
Referenced by PCB_BASE_FRAME::LoadSettings().
|
inlineinherited |
Turns on/off highlighting.
It may be done for the active layer or the specified net(s)..
aEnabled | tells if highlighting should be enabled. |
aNetcode | is optional and if specified, turns on highlighting only for the net with number given as the parameter. |
Definition at line 152 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_highlightEnabled, and KIGFX::RENDER_SETTINGS::m_highlightNetcodes.
Referenced by DIALOG_NET_INSPECTOR::buildNetsList(), PCB_EDIT_FRAME::ExecuteRemoteCommand(), PNS::TOOL_BASE::highlightNet(), APPEARANCE_CONTROLS::onNetclassContextMenu(), DIALOG_NET_INSPECTOR::onSelChanged(), DIALOG_NET_INSPECTOR::onSortingChanged(), GERBVIEW_SELECTION_TOOL::Reset(), EE_SELECTION_TOOL::Reset(), and PCB_SELECTION_TOOL::Reset().
|
inlineinherited |
Turns on highlighting and highlights multiple nets.
aHighlight | is a set of netcodes to highlight |
aEnabled | tells if highlighting should be enabled. |
Definition at line 172 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_highlightEnabled, and KIGFX::RENDER_SETTINGS::m_highlightNetcodes.
|
inlineinherited |
Definition at line 270 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_highlightFactor.
Referenced by PCB_BASE_FRAME::LoadSettings().
|
inlineinherited |
Definition at line 210 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_isPrinting.
Referenced by BOARD_PRINTOUT::DrawPage().
|
inlineinherited |
Change the color used to draw a layer.
aLayer | is the layer number. |
aColor | is the new color. |
Definition at line 248 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_layerColors, and KIGFX::RENDER_SETTINGS::update().
Referenced by SCH_EDIT_FRAME::DrawCurrentSheetToClipboard(), BOARD_PRINTOUT::DrawPage(), PLEDITOR_PRINTOUT::PrintPage(), DIALOG_PAD_PROPERTIES::redraw(), PCBNEW_PRINTOUT::setupPainter(), PCBNEW_PRINTOUT::setupViewLayers(), and DIALOG_PAGES_SETTINGS::UpdateDrawingSheetExample().
|
inlineinherited |
Set the specified layer as high-contrast.
aLayerId | is a layer number that should be displayed in a specific mode. |
aEnabled | is the new layer state ( true = active or false = not active). |
Definition at line 69 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_highContrastLayers.
Referenced by GERBVIEW_DRAW_PANEL_GAL::SetHighContrastLayer(), PCB_DRAW_PANEL_GAL::SetHighContrastLayer(), and EDA_DRAW_PANEL_GAL::SetHighContrastLayer().
|
inlineinherited |
Definition at line 204 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_minPenWidth.
Referenced by DIALOG_PLOT_SCHEMATIC::getPlotOptions().
|
inline |
Definition at line 178 of file pcb_painter.h.
References m_netColorMode.
|
inlineinherited |
Set line width used for drawing outlines.
aWidth | is the new width. |
Definition at line 265 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_outlineWidth.
|
inlineinherited |
Definition at line 276 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_printDC.
Referenced by SCH_EDIT_FRAME::DrawCurrentSheetToClipboard(), DIALOG_PIN_PROPERTIES::OnPaintShowPanel(), PLEDITOR_PRINTOUT::PrintPage(), SCH_PRINTOUT::PrintPage(), and DIALOG_PAGES_SETTINGS::UpdateDrawingSheetExample().
|
inline |
Definition at line 181 of file pcb_painter.h.
References m_ratsnestDisplayMode.
|
inlineinherited |
Definition at line 271 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_selectFactor.
Referenced by PCB_BASE_FRAME::LoadSettings().
|
inlineinherited |
Definition at line 207 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_showPageLimits.
Referenced by PL_DRAW_PANEL_GAL::DisplayDrawingSheet(), SCH_EDIT_FRAME::LoadSettings(), and PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataFromWindow().
|
inline |
Turn on/off sketch mode for given item layer.
aItemLayer | is the item layer that is changed. |
aEnabled | decides if it is drawn in sketch mode (true for sketched mode, false for filled mode). |
Definition at line 107 of file pcb_painter.h.
References m_sketchMode.
Referenced by DIALOG_PAD_PROPERTIES::onChangePadMode().
|
inline |
Turn on/off sketch mode for graphic items (DRAWSEGMENTs, texts).
aEnabled | decides if it is drawn in sketch mode (true for sketched mode, false for filled mode). |
Definition at line 128 of file pcb_painter.h.
References m_sketchGraphics.
Referenced by DIALOG_PAD_PROPERTIES::onChangePadMode().
|
inline |
Definition at line 190 of file pcb_painter.h.
References m_zoneDisplayMode.
|
protectedvirtualinherited |
Precalculates extra colors for layers (e.g.
highlighted, darkened and any needed version of base colors).
Definition at line 54 of file render_settings.cpp.
References KIGFX::COLOR4D::b, KIGFX::COLOR4D::Brightened(), KIGFX::COLOR4D::Darkened(), IsHoleLayer(), IsNetnameLayer(), LAYER_ID_COUNT, LAYER_PCB_BACKGROUND, KIGFX::RENDER_SETTINGS::m_hiContrastColor, KIGFX::RENDER_SETTINGS::m_hiContrastFactor, KIGFX::RENDER_SETTINGS::m_highlightFactor, KIGFX::RENDER_SETTINGS::m_layerColors, KIGFX::RENDER_SETTINGS::m_layerColorsDark, KIGFX::RENDER_SETTINGS::m_layerColorsHi, KIGFX::RENDER_SETTINGS::m_layerColorsSel, KIGFX::RENDER_SETTINGS::m_selectFactor, and KIGFX::COLOR4D::Mix().
Referenced by KIGFX::DS_RENDER_SETTINGS::DS_RENDER_SETTINGS(), KIGFX::GERBVIEW_RENDER_SETTINGS::GERBVIEW_RENDER_SETTINGS(), KIGFX::GERBVIEW_RENDER_SETTINGS::LoadColors(), LoadColors(), KIGFX::GERBVIEW_RENDER_SETTINGS::LoadDisplayOptions(), PCB_RENDER_SETTINGS(), KIGFX::GERBVIEW_RENDER_SETTINGS::SetLayerColor(), and KIGFX::RENDER_SETTINGS::SetLayerColor().
|
friend |
Flags to control clearance lines visibility.
Definition at line 67 of file pcb_painter.h.
|
protectedinherited |
Definition at line 285 of file render_settings.h.
Referenced by KIGFX::RENDER_SETTINGS::GetActiveLayer(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), and KIGFX::RENDER_SETTINGS::SetActiveLayer().
|
protectedinherited |
Definition at line 295 of file render_settings.h.
Referenced by KIGFX::DS_RENDER_SETTINGS::DS_RENDER_SETTINGS(), KIGFX::GERBVIEW_RENDER_SETTINGS::GERBVIEW_RENDER_SETTINGS(), KIGFX::DS_RENDER_SETTINGS::GetBackgroundColor(), GetColor(), KIGFX::DS_RENDER_SETTINGS::IsBackgroundDark(), KIGFX::DS_RENDER_SETTINGS::LoadColors(), KIGFX::SCH_RENDER_SETTINGS::LoadColors(), KIGFX::GERBVIEW_RENDER_SETTINGS::LoadDisplayOptions(), PCB_RENDER_SETTINGS(), and KIGFX::DS_RENDER_SETTINGS::SetBackgroundColor().
|
protected |
How to display nets and netclasses with color overrides.
Definition at line 216 of file pcb_painter.h.
Referenced by KIGFX::PCB_PAINTER::draw(), LoadDisplayOptions(), and PCB_RENDER_SETTINGS().
|
protected |
Definition at line 213 of file pcb_painter.h.
Referenced by GetColor(), GetContrastModeDisplay(), LoadDisplayOptions(), PCB_RENDER_SETTINGS(), and SetContrastModeDisplay().
|
protected |
Definition at line 207 of file pcb_painter.h.
Referenced by GetCurvedRatsnestLinesEnabled(), and LoadDisplayOptions().
|
protectedinherited |
Definition at line 309 of file render_settings.h.
Referenced by KIGFX::SCH_RENDER_SETTINGS::GetDanglineSymbolThickness(), KIGFX::RENDER_SETTINGS::GetDefaultPenWidth(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), and KIGFX::RENDER_SETTINGS::SetDefaultPenWidth().
|
protected |
Definition at line 210 of file pcb_painter.h.
Referenced by GetDrawIndividualViaLayers(), and SetDrawIndividualViaLayers().
|
protectedinherited |
Definition at line 307 of file render_settings.h.
Referenced by KIGFX::RENDER_SETTINGS::GetDrawingSheetLineWidth(), and KIGFX::RENDER_SETTINGS::RENDER_SETTINGS().
|
protected |
Definition at line 208 of file pcb_painter.h.
Referenced by GetGlobalRatsnestLinesEnabled(), and LoadDisplayOptions().
|
protectedinherited |
Definition at line 292 of file render_settings.h.
Referenced by KIGFX::GERBVIEW_RENDER_SETTINGS::GetColor(), and KIGFX::RENDER_SETTINGS::update().
|
protectedinherited |
Parameters for display modes.
Definition at line 298 of file render_settings.h.
Referenced by KIGFX::GERBVIEW_RENDER_SETTINGS::GetColor(), GetColor(), KIGFX::RENDER_SETTINGS::GetHighContrast(), KIGFX::GERBVIEW_RENDER_SETTINGS::LoadDisplayOptions(), LoadDisplayOptions(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), and KIGFX::RENDER_SETTINGS::SetHighContrast().
|
protectedinherited |
Definition at line 299 of file render_settings.h.
Referenced by GetColor(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), KIGFX::RENDER_SETTINGS::SetHighContrastFactor(), and KIGFX::RENDER_SETTINGS::update().
|
protected |
Definition at line 228 of file pcb_painter.h.
Referenced by GetHiddenNets().
|
protectedinherited |
Definition at line 286 of file render_settings.h.
Referenced by KIGFX::RENDER_SETTINGS::ClearHighContrastLayers(), KIGFX::GERBVIEW_RENDER_SETTINGS::GetColor(), GetColor(), KIGFX::RENDER_SETTINGS::GetHighContrastLayers(), KIGFX::RENDER_SETTINGS::GetLayerIsHighContrast(), KIGFX::RENDER_SETTINGS::GetPrimaryHighContrastLayer(), and KIGFX::RENDER_SETTINGS::SetLayerIsHighContrast().
|
protectedinherited |
Definition at line 301 of file render_settings.h.
Referenced by KIGFX::GERBVIEW_RENDER_SETTINGS::GetColor(), GetColor(), KIGFX::RENDER_SETTINGS::IsHighlightEnabled(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), and KIGFX::RENDER_SETTINGS::SetHighlight().
|
protectedinherited |
Definition at line 303 of file render_settings.h.
Referenced by GetColor(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), KIGFX::RENDER_SETTINGS::SetHighlightFactor(), and KIGFX::RENDER_SETTINGS::update().
|
protectedinherited |
Definition at line 302 of file render_settings.h.
Referenced by GetColor(), KIGFX::RENDER_SETTINGS::GetHighlightNetCodes(), and KIGFX::RENDER_SETTINGS::SetHighlight().
|
protectedinherited |
Definition at line 313 of file render_settings.h.
Referenced by GetColor(), KIGFX::RENDER_SETTINGS::IsPrinting(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), and KIGFX::RENDER_SETTINGS::SetIsPrinting().
|
protectedinherited |
Definition at line 288 of file render_settings.h.
Referenced by KIGFX::SCH_RENDER_SETTINGS::GetBackgroundColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::GetBackgroundColor(), GetBackgroundColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::GetColor(), KIGFX::SCH_RENDER_SETTINGS::GetColor(), GetColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::GetCursorColor(), KIGFX::SCH_RENDER_SETTINGS::GetCursorColor(), GetCursorColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::GetGridColor(), KIGFX::SCH_RENDER_SETTINGS::GetGridColor(), GetGridColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::GetLayerColor(), KIGFX::RENDER_SETTINGS::GetLayerColor(), KIGFX::SCH_RENDER_SETTINGS::IsBackgroundDark(), IsBackgroundDark(), KIGFX::GERBVIEW_RENDER_SETTINGS::LoadColors(), KIGFX::DS_RENDER_SETTINGS::LoadColors(), KIGFX::SCH_RENDER_SETTINGS::LoadColors(), LoadColors(), KIGFX::SCH_RENDER_SETTINGS::SetBackgroundColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::SetBackgroundColor(), SetBackgroundColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::SetLayerColor(), KIGFX::RENDER_SETTINGS::SetLayerColor(), and KIGFX::RENDER_SETTINGS::update().
|
protectedinherited |
Definition at line 293 of file render_settings.h.
Referenced by KIGFX::GERBVIEW_RENDER_SETTINGS::GetColor(), GetColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::LoadColors(), and KIGFX::RENDER_SETTINGS::update().
|
protectedinherited |
Definition at line 289 of file render_settings.h.
Referenced by KIGFX::GERBVIEW_RENDER_SETTINGS::GetColor(), GetColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::LoadColors(), and KIGFX::RENDER_SETTINGS::update().
|
protectedinherited |
Definition at line 290 of file render_settings.h.
Referenced by KIGFX::GERBVIEW_RENDER_SETTINGS::GetColor(), GetColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::LoadColors(), and KIGFX::RENDER_SETTINGS::update().
|
protectedinherited |
Definition at line 310 of file render_settings.h.
Referenced by KIGFX::RENDER_SETTINGS::GetMinPenWidth(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), KIGFX::SCH_RENDER_SETTINGS::SCH_RENDER_SETTINGS(), and KIGFX::RENDER_SETTINGS::SetMinPenWidth().
|
protected |
Overrides for specific net colors, stored as netcodes for the ratsnest to access easily.
Definition at line 222 of file pcb_painter.h.
Referenced by GetColor(), and GetNetclassColorMap().
|
protected |
Overrides for specific netclass colors.
Definition at line 219 of file pcb_painter.h.
Referenced by GetColor(), GetNetColorMode(), LoadDisplayOptions(), PCB_RENDER_SETTINGS(), and SetNetColorMode().
|
protected |
Set of net codes that should not have their ratsnest displayed.
Definition at line 225 of file pcb_painter.h.
Referenced by GetColor(), and GetNetColorMap().
|
protected |
Definition at line 201 of file pcb_painter.h.
Referenced by KIGFX::PCB_PAINTER::draw(), LoadDisplayOptions(), and PCB_RENDER_SETTINGS().
|
protected |
Definition at line 202 of file pcb_painter.h.
Referenced by KIGFX::PCB_PAINTER::draw(), LoadDisplayOptions(), and PCB_RENDER_SETTINGS().
|
protected |
Definition at line 203 of file pcb_painter.h.
Referenced by KIGFX::PCB_PAINTER::draw(), LoadDisplayOptions(), and PCB_RENDER_SETTINGS().
|
protectedinherited |
Definition at line 306 of file render_settings.h.
Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::GERBVIEW_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::GERBVIEW_PAINTER::drawApertureMacro(), KIGFX::GERBVIEW_PAINTER::drawFlashedShape(), KIGFX::GERBVIEW_PAINTER::drawPolygon(), KIGFX::GERBVIEW_PAINTER::getLineThickness(), KIGFX::PCB_PAINTER::getLineThickness(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), and KIGFX::RENDER_SETTINGS::SetOutlineWidth().
|
protected |
Definition at line 200 of file pcb_painter.h.
Referenced by KIGFX::PCB_PAINTER::draw(), LoadDisplayOptions(), and PCB_RENDER_SETTINGS().
|
protected |
Opacity override for SMD pads and PTHs.
Definition at line 233 of file pcb_painter.h.
Referenced by GetColor(), LoadDisplayOptions(), and PCB_RENDER_SETTINGS().
|
protectedinherited |
Definition at line 315 of file render_settings.h.
Referenced by KIGFX::RENDER_SETTINGS::GetPrintDC(), and KIGFX::RENDER_SETTINGS::SetPrintDC().
|
protected |
Definition at line 214 of file pcb_painter.h.
Referenced by GetRatsnestDisplayMode(), LoadDisplayOptions(), PCB_RENDER_SETTINGS(), and SetRatsnestDisplayMode().
|
protectedinherited |
Definition at line 305 of file render_settings.h.
Referenced by GetColor(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), KIGFX::RENDER_SETTINGS::SetSelectFactor(), and KIGFX::RENDER_SETTINGS::update().
|
protectedinherited |
Definition at line 312 of file render_settings.h.
Referenced by KIGFX::RENDER_SETTINGS::GetShowPageLimits(), KIGFX::GERBVIEW_RENDER_SETTINGS::LoadDisplayOptions(), LoadDisplayOptions(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), and KIGFX::RENDER_SETTINGS::SetShowPageLimits().
|
protected |
Definition at line 197 of file pcb_painter.h.
Referenced by KIGFX::PCB_PAINTER::draw(), LoadDisplayOptions(), PCB_RENDER_SETTINGS(), and SetSketchModeGraphicItems().
|
protected |
Definition at line 196 of file pcb_painter.h.
Referenced by KIGFX::PCB_PAINTER::draw(), GetSketchMode(), LoadDisplayOptions(), PCB_RENDER_SETTINGS(), and SetSketchMode().
|
protected |
Definition at line 198 of file pcb_painter.h.
Referenced by KIGFX::PCB_PAINTER::draw(), LoadDisplayOptions(), and PCB_RENDER_SETTINGS().
|
protected |
Opacity override for all tracks.
Definition at line 231 of file pcb_painter.h.
Referenced by GetColor(), LoadDisplayOptions(), and PCB_RENDER_SETTINGS().
|
protected |
Opacity override for all types of via.
Definition at line 232 of file pcb_painter.h.
Referenced by GetColor(), LoadDisplayOptions(), and PCB_RENDER_SETTINGS().
|
protected |
Definition at line 212 of file pcb_painter.h.
Referenced by KIGFX::PCB_PAINTER::draw(), LoadDisplayOptions(), PCB_RENDER_SETTINGS(), and SetZoneDisplayMode().
|
protected |
Opacity override for filled zones.
Definition at line 234 of file pcb_painter.h.
Referenced by GetColor(), LoadDisplayOptions(), and PCB_RENDER_SETTINGS().
|
protected |
Definition at line 205 of file pcb_painter.h.
Referenced by KIGFX::PCB_PAINTER::draw(), EnableZoneOutlines(), and PCB_RENDER_SETTINGS().
|
staticprotected |
< Maximum font size for netnames (and other dynamically shown strings)
Definition at line 194 of file pcb_painter.h.
Referenced by KIGFX::PCB_PAINTER::draw().