![]() |
KiCad PCB EDA Suite
|
Store GerbView specific render settings. More...
#include <gerbview_painter.h>
Public Member Functions | |
GERBVIEW_RENDER_SETTINGS () | |
void | LoadColors (const COLOR_SETTINGS *aSettings) override |
void | LoadDisplayOptions (const GBR_DISPLAY_OPTIONS &aOptions) |
Load settings related to display options. More... | |
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... | |
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... | |
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... | |
bool | IsSpotFill () const |
bool | IsLineFill () const |
bool | IsPolygonFill () const |
bool | IsShowNegativeItems () const |
bool | IsShowCodes () const |
bool | IsDiffMode () const |
void | ClearHighlightSelections () |
Clear all highlight selections (dcode, net, component, attribute selection) More... | |
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) |
virtual bool | IsBackgroundDark () const |
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) |
Public Attributes | |
wxString | m_componentHighlightString |
If set to anything but an empty string, will highlight items with matching component. More... | |
wxString | m_netHighlightString |
If set to anything but an empty string, will highlight items with matching net. More... | |
wxString | m_attributeHighlightString |
If set to anything but an empty string, will highlight items with matching attribute. More... | |
int | m_dcodeHighlightValue |
If set to anything but >0 (in fact 10 the min dcode value), will highlight items with matching dcode. More... | |
Protected Member Functions | |
virtual void | update () |
Precalculates extra colors for layers (e.g. More... | |
Protected Attributes | |
bool | m_spotFill |
Flag determining if spots should be drawn with fill. More... | |
bool | m_lineFill |
Flag determining if lines should be drawn with fill. More... | |
bool | m_polygonFill |
Flag determining if polygons should be drawn with fill. More... | |
bool | m_showNegativeItems |
Flag determining if negative items should be drawn with a "ghost" color. More... | |
bool | m_showCodes |
Flag determining if D-Codes should be drawn. More... | |
bool | m_diffMode |
Flag determining if layers should be rendered in "diff" mode. More... | |
PCB_LAYER_ID | m_activeLayer |
std::set< unsigned int > | m_highContrastLayers |
COLOR4D | m_layerColors [LAYER_ID_COUNT] |
COLOR4D | m_layerColorsHi [LAYER_ID_COUNT] |
COLOR4D | m_layerColorsSel [LAYER_ID_COUNT] |
COLOR4D | m_hiContrastColor [LAYER_ID_COUNT] |
COLOR4D | m_layerColorsDark [LAYER_ID_COUNT] |
COLOR4D | m_backgroundColor |
bool | m_hiContrastEnabled |
Parameters for display modes. More... | |
float | m_hiContrastFactor |
bool | m_highlightEnabled |
std::set< int > | m_highlightNetcodes |
float | m_highlightFactor |
float | m_selectFactor |
float | m_outlineWidth |
float | m_drawingSheetLineWidth |
int | m_defaultPenWidth |
int | m_minPenWidth |
bool | m_showPageLimits |
bool | m_isPrinting |
wxDC * | m_printDC |
Static Protected Attributes | |
static const double | MAX_FONT_SIZE = Millimeter2iu( 10.0 ) |
Maximum font size for D-Codes and other strings. More... | |
Friends | |
class | GERBVIEW_PAINTER |
Store GerbView specific render settings.
Definition at line 46 of file gerbview_painter.h.
GERBVIEW_RENDER_SETTINGS::GERBVIEW_RENDER_SETTINGS | ( | ) |
Definition at line 35 of file gerbview_painter.cpp.
References KIGFX::COLOR4D::BLACK, m_attributeHighlightString, KIGFX::RENDER_SETTINGS::m_backgroundColor, m_componentHighlightString, m_dcodeHighlightValue, m_diffMode, m_lineFill, m_netHighlightString, m_polygonFill, m_showCodes, m_showNegativeItems, m_spotFill, 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().
void GERBVIEW_RENDER_SETTINGS::ClearHighlightSelections | ( | ) |
Clear all highlight selections (dcode, net, component, attribute selection)
Definition at line 104 of file gerbview_painter.cpp.
References m_attributeHighlightString, m_componentHighlightString, m_dcodeHighlightValue, and m_netHighlightString.
Referenced by GERBVIEW_CONTROL::ClearAllLayers().
|
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 88 of file gerbview_painter.h.
References LAYER_GERBVIEW_BACKGROUND, and KIGFX::RENDER_SETTINGS::m_layerColors.
|
overridevirtual |
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 113 of file gerbview_painter.cpp.
References GERBER_DRAW_ITEM_T, GERBER_DRAW_ITEM::GetDcodeDescr(), GERBER_DRAW_ITEM::GetLayerPolarity(), GERBER_DRAW_ITEM::GetNetAttributes(), IsDCodeLayer(), EDA_ITEM::IsSelected(), LAYER_DCODES, LAYER_NEGATIVE_OBJECTS, D_CODE::m_AperFunction, m_attributeHighlightString, GBR_NETLIST_METADATA::m_Cmpref, m_componentHighlightString, m_dcodeHighlightValue, KIGFX::RENDER_SETTINGS::m_hiContrastColor, KIGFX::RENDER_SETTINGS::m_hiContrastEnabled, KIGFX::RENDER_SETTINGS::m_highContrastLayers, KIGFX::RENDER_SETTINGS::m_highlightEnabled, KIGFX::RENDER_SETTINGS::m_layerColors, KIGFX::RENDER_SETTINGS::m_layerColorsDark, KIGFX::RENDER_SETTINGS::m_layerColorsHi, KIGFX::RENDER_SETTINGS::m_layerColorsSel, m_netHighlightString, GBR_NETLIST_METADATA::m_Netname, D_CODE::m_Num_Dcode, m_showNegativeItems, and EDA_ITEM::Type().
Referenced by KIGFX::GERBVIEW_PAINTER::draw().
|
inlineoverridevirtual |
Return current cursor color settings.
Implements KIGFX::RENDER_SETTINGS.
Definition at line 100 of file gerbview_painter.h.
References LAYER_CURSOR, and KIGFX::RENDER_SETTINGS::m_layerColors.
|
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().
|
inlineinherited |
Definition at line 198 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_drawingSheetLineWidth.
Referenced by DS_PROXY_VIEW_ITEM::buildDrawList().
|
inlineoverridevirtual |
Return current grid color settings.
Implements KIGFX::RENDER_SETTINGS.
Definition at line 98 of file gerbview_painter.h.
References LAYER_GERBVIEW_GRID, and KIGFX::RENDER_SETTINGS::m_layerColors.
|
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().
|
inline |
Return the color used to draw a layer.
aLayer | is the layer number. |
Definition at line 70 of file gerbview_painter.h.
References KIGFX::RENDER_SETTINGS::m_layerColors.
|
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().
|
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 KIGFX::PCB_RENDER_SETTINGS::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().
|
inlineinherited |
Definition at line 206 of file render_settings.h.
References KIGFX::RENDER_SETTINGS::m_showPageLimits.
Referenced by DS_PROXY_VIEW_ITEM::ViewDraw().
|
inlinevirtualinherited |
Reimplemented in KIGFX::PCB_RENDER_SETTINGS, KIGFX::SCH_RENDER_SETTINGS, and KIGFX::DS_RENDER_SETTINGS.
Definition at line 255 of file render_settings.h.
Referenced by KIGFX::PREVIEW::DRAW_CONTEXT::getSpecialAngleColour(), and KIGFX::PREVIEW::SELECTION_AREA::ViewDraw().
|
inline |
Definition at line 127 of file gerbview_painter.h.
References m_diffMode.
|
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().
|
inline |
Definition at line 107 of file gerbview_painter.h.
References m_lineFill.
|
inline |
Definition at line 112 of file gerbview_painter.h.
References m_polygonFill.
|
inlineinherited |
|
inline |
Definition at line 122 of file gerbview_painter.h.
References m_showCodes.
|
inline |
Definition at line 117 of file gerbview_painter.h.
References m_showNegativeItems.
Referenced by KIGFX::GERBVIEW_PAINTER::draw().
|
inline |
Definition at line 102 of file gerbview_painter.h.
References m_spotFill.
|
overridevirtual |
Reimplemented from KIGFX::RENDER_SETTINGS.
Definition at line 55 of file gerbview_painter.cpp.
References KIGFX::COLOR4D::Brightened(), KIGFX::COLOR4D::Darkened(), GAL_LAYER_ID_END, GAL_LAYER_ID_START, GERBER_DRAWLAYERS_COUNT, GERBVIEW_LAYER_ID_END, GERBVIEW_LAYER_ID_START, COLOR_SETTINGS::GetColor(), LAYER_DCODES, KIGFX::RENDER_SETTINGS::m_layerColors, KIGFX::RENDER_SETTINGS::m_layerColorsDark, KIGFX::RENDER_SETTINGS::m_layerColorsHi, KIGFX::RENDER_SETTINGS::m_layerColorsSel, COLOR_SETTINGS::m_Palette, KIGFX::COLOR4D::UNSPECIFIED, and KIGFX::RENDER_SETTINGS::update().
Referenced by GERBVIEW_FRAME::applyDisplaySettingsToGAL().
void GERBVIEW_RENDER_SETTINGS::LoadDisplayOptions | ( | const GBR_DISPLAY_OPTIONS & | aOptions | ) |
Load settings related to display options.
aOptions | are settings that you want to use for displaying items. |
Definition at line 88 of file gerbview_painter.cpp.
References KIGFX::RENDER_SETTINGS::m_backgroundColor, GBR_DISPLAY_OPTIONS::m_BgDrawColor, GBR_DISPLAY_OPTIONS::m_DiffMode, m_diffMode, GBR_DISPLAY_OPTIONS::m_DisplayDCodes, GBR_DISPLAY_OPTIONS::m_DisplayFlashedItemsFill, GBR_DISPLAY_OPTIONS::m_DisplayLinesFill, GBR_DISPLAY_OPTIONS::m_DisplayNegativeObjects, GBR_DISPLAY_OPTIONS::m_DisplayPageLimits, GBR_DISPLAY_OPTIONS::m_DisplayPolygonsFill, KIGFX::RENDER_SETTINGS::m_hiContrastEnabled, GBR_DISPLAY_OPTIONS::m_HighContrastMode, m_lineFill, m_polygonFill, m_showCodes, m_showNegativeItems, KIGFX::RENDER_SETTINGS::m_showPageLimits, m_spotFill, and KIGFX::RENDER_SETTINGS::update().
Referenced by GERBVIEW_FRAME::applyDisplaySettingsToGAL().
|
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 93 of file gerbview_painter.h.
References LAYER_GERBVIEW_BACKGROUND, and KIGFX::RENDER_SETTINGS::m_layerColors.
|
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().
|
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().
|
inline |
Change the color used to draw a layer.
aLayer | is the layer number. |
aColor | is the new color. |
Definition at line 81 of file gerbview_painter.h.
References KIGFX::RENDER_SETTINGS::m_layerColors, and KIGFX::RENDER_SETTINGS::update().
|
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().
|
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().
|
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().
|
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(), GERBVIEW_RENDER_SETTINGS(), LoadColors(), KIGFX::PCB_RENDER_SETTINGS::LoadColors(), LoadDisplayOptions(), KIGFX::PCB_RENDER_SETTINGS::PCB_RENDER_SETTINGS(), SetLayerColor(), and KIGFX::RENDER_SETTINGS::SetLayerColor().
|
friend |
Definition at line 49 of file gerbview_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().
wxString KIGFX::GERBVIEW_RENDER_SETTINGS::m_attributeHighlightString |
If set to anything but an empty string, will highlight items with matching attribute.
Definition at line 142 of file gerbview_painter.h.
Referenced by ClearHighlightSelections(), GERBVIEW_RENDER_SETTINGS(), and GetColor().
|
protectedinherited |
Definition at line 295 of file render_settings.h.
Referenced by KIGFX::DS_RENDER_SETTINGS::DS_RENDER_SETTINGS(), GERBVIEW_RENDER_SETTINGS(), KIGFX::DS_RENDER_SETTINGS::GetBackgroundColor(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), KIGFX::DS_RENDER_SETTINGS::IsBackgroundDark(), KIGFX::DS_RENDER_SETTINGS::LoadColors(), KIGFX::SCH_RENDER_SETTINGS::LoadColors(), LoadDisplayOptions(), KIGFX::PCB_RENDER_SETTINGS::PCB_RENDER_SETTINGS(), and KIGFX::DS_RENDER_SETTINGS::SetBackgroundColor().
wxString KIGFX::GERBVIEW_RENDER_SETTINGS::m_componentHighlightString |
If set to anything but an empty string, will highlight items with matching component.
Definition at line 136 of file gerbview_painter.h.
Referenced by ClearHighlightSelections(), GERBVIEW_RENDER_SETTINGS(), and GetColor().
int KIGFX::GERBVIEW_RENDER_SETTINGS::m_dcodeHighlightValue |
If set to anything but >0 (in fact 10 the min dcode value), will highlight items with matching dcode.
Definition at line 146 of file gerbview_painter.h.
Referenced by ClearHighlightSelections(), GERBVIEW_RENDER_SETTINGS(), and GetColor().
|
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 |
Flag determining if layers should be rendered in "diff" mode.
Definition at line 165 of file gerbview_painter.h.
Referenced by GERBVIEW_RENDER_SETTINGS(), IsDiffMode(), and LoadDisplayOptions().
|
protectedinherited |
Definition at line 307 of file render_settings.h.
Referenced by KIGFX::RENDER_SETTINGS::GetDrawingSheetLineWidth(), and KIGFX::RENDER_SETTINGS::RENDER_SETTINGS().
|
protectedinherited |
Definition at line 292 of file render_settings.h.
Referenced by GetColor(), and KIGFX::RENDER_SETTINGS::update().
|
protectedinherited |
Parameters for display modes.
Definition at line 298 of file render_settings.h.
Referenced by GetColor(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), KIGFX::RENDER_SETTINGS::GetHighContrast(), LoadDisplayOptions(), KIGFX::PCB_RENDER_SETTINGS::LoadDisplayOptions(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), and KIGFX::RENDER_SETTINGS::SetHighContrast().
|
protectedinherited |
Definition at line 299 of file render_settings.h.
Referenced by KIGFX::PCB_RENDER_SETTINGS::GetColor(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), KIGFX::RENDER_SETTINGS::SetHighContrastFactor(), and KIGFX::RENDER_SETTINGS::update().
|
protectedinherited |
Definition at line 286 of file render_settings.h.
Referenced by KIGFX::RENDER_SETTINGS::ClearHighContrastLayers(), GetColor(), KIGFX::PCB_RENDER_SETTINGS::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 GetColor(), KIGFX::PCB_RENDER_SETTINGS::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 KIGFX::PCB_RENDER_SETTINGS::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 KIGFX::PCB_RENDER_SETTINGS::GetColor(), KIGFX::RENDER_SETTINGS::GetHighlightNetCodes(), and KIGFX::RENDER_SETTINGS::SetHighlight().
|
protectedinherited |
Definition at line 313 of file render_settings.h.
Referenced by KIGFX::PCB_RENDER_SETTINGS::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(), GetBackgroundColor(), KIGFX::PCB_RENDER_SETTINGS::GetBackgroundColor(), GetColor(), KIGFX::SCH_RENDER_SETTINGS::GetColor(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), GetCursorColor(), KIGFX::SCH_RENDER_SETTINGS::GetCursorColor(), KIGFX::PCB_RENDER_SETTINGS::GetCursorColor(), GetGridColor(), KIGFX::SCH_RENDER_SETTINGS::GetGridColor(), KIGFX::PCB_RENDER_SETTINGS::GetGridColor(), GetLayerColor(), KIGFX::RENDER_SETTINGS::GetLayerColor(), KIGFX::SCH_RENDER_SETTINGS::IsBackgroundDark(), KIGFX::PCB_RENDER_SETTINGS::IsBackgroundDark(), LoadColors(), KIGFX::DS_RENDER_SETTINGS::LoadColors(), KIGFX::SCH_RENDER_SETTINGS::LoadColors(), KIGFX::PCB_RENDER_SETTINGS::LoadColors(), KIGFX::SCH_RENDER_SETTINGS::SetBackgroundColor(), SetBackgroundColor(), KIGFX::PCB_RENDER_SETTINGS::SetBackgroundColor(), SetLayerColor(), KIGFX::RENDER_SETTINGS::SetLayerColor(), and KIGFX::RENDER_SETTINGS::update().
|
protectedinherited |
Definition at line 293 of file render_settings.h.
Referenced by GetColor(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), LoadColors(), and KIGFX::RENDER_SETTINGS::update().
|
protectedinherited |
Definition at line 289 of file render_settings.h.
Referenced by GetColor(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), LoadColors(), and KIGFX::RENDER_SETTINGS::update().
|
protectedinherited |
Definition at line 290 of file render_settings.h.
Referenced by GetColor(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), LoadColors(), and KIGFX::RENDER_SETTINGS::update().
|
protected |
Flag determining if lines should be drawn with fill.
Definition at line 153 of file gerbview_painter.h.
Referenced by KIGFX::GERBVIEW_PAINTER::draw(), GERBVIEW_RENDER_SETTINGS(), IsLineFill(), and LoadDisplayOptions().
|
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().
wxString KIGFX::GERBVIEW_RENDER_SETTINGS::m_netHighlightString |
If set to anything but an empty string, will highlight items with matching net.
Definition at line 139 of file gerbview_painter.h.
Referenced by ClearHighlightSelections(), GERBVIEW_RENDER_SETTINGS(), and GetColor().
|
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 |
Flag determining if polygons should be drawn with fill.
Definition at line 156 of file gerbview_painter.h.
Referenced by KIGFX::GERBVIEW_PAINTER::draw(), KIGFX::GERBVIEW_PAINTER::drawApertureMacro(), KIGFX::GERBVIEW_PAINTER::drawPolygon(), GERBVIEW_RENDER_SETTINGS(), IsPolygonFill(), and LoadDisplayOptions().
|
protectedinherited |
Definition at line 315 of file render_settings.h.
Referenced by KIGFX::RENDER_SETTINGS::GetPrintDC(), and KIGFX::RENDER_SETTINGS::SetPrintDC().
|
protectedinherited |
Definition at line 305 of file render_settings.h.
Referenced by KIGFX::PCB_RENDER_SETTINGS::GetColor(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), KIGFX::RENDER_SETTINGS::SetSelectFactor(), and KIGFX::RENDER_SETTINGS::update().
|
protected |
Flag determining if D-Codes should be drawn.
Definition at line 162 of file gerbview_painter.h.
Referenced by GERBVIEW_RENDER_SETTINGS(), IsShowCodes(), and LoadDisplayOptions().
|
protected |
Flag determining if negative items should be drawn with a "ghost" color.
Definition at line 159 of file gerbview_painter.h.
Referenced by GERBVIEW_RENDER_SETTINGS(), GetColor(), IsShowNegativeItems(), and LoadDisplayOptions().
|
protectedinherited |
Definition at line 312 of file render_settings.h.
Referenced by KIGFX::RENDER_SETTINGS::GetShowPageLimits(), LoadDisplayOptions(), KIGFX::PCB_RENDER_SETTINGS::LoadDisplayOptions(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), and KIGFX::RENDER_SETTINGS::SetShowPageLimits().
|
protected |
Flag determining if spots should be drawn with fill.
Definition at line 150 of file gerbview_painter.h.
Referenced by KIGFX::GERBVIEW_PAINTER::draw(), GERBVIEW_RENDER_SETTINGS(), IsSpotFill(), and LoadDisplayOptions().
|
staticprotected |
Maximum font size for D-Codes and other strings.
Definition at line 168 of file gerbview_painter.h.