KiCad PCB EDA Suite
KIGFX::WS_RENDER_SETTINGS Class Reference

WS_RENDER_SETTINGS Stores page-layout-specific render settings. More...

#include <ws_painter.h>

Inheritance diagram for KIGFX::WS_RENDER_SETTINGS:
KIGFX::RENDER_SETTINGS

Public Member Functions

 WS_RENDER_SETTINGS ()
 
void LoadColors (const COLOR_SETTINGS *aSettings) override
 
virtual const COLOR4DGetColor (const VIEW_ITEM *aItem, int aLayer) const override
 Function GetColor Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer using currently used render settings. More...
 
bool IsBackgroundDark () const override
 
const COLOR4DGetBackgroundColor () override
 Function GetBackgroundColor Returns current background color settings. More...
 
void SetBackgroundColor (const COLOR4D &aColor) override
 Sets the background color. More...
 
void SetNormalColor (const COLOR4D &aColor)
 
void SetSelectedColor (const COLOR4D &aColor)
 
void SetBrightenedColor (const COLOR4D &aColor)
 
void SetPageBorderColor (const COLOR4D &aColor)
 
const COLOR4DGetGridColor () override
 Function GetGridColor Returns current grid color settings. More...
 
const COLOR4DGetCursorColor () override
 Function GetCursorColor Returns current cursor color settings. More...
 
void SetActiveLayer (int aLayerId, bool aEnabled=true)
 Function SetActiveLayer Sets the specified layer as active - it means that it can be drawn in a specific mode (eg. More...
 
const std::set< unsigned int > GetActiveLayers ()
 Function GetActiveLayers() Returns the set of currently active layers. More...
 
void ClearActiveLayers ()
 Function ClearActiveLayers Clears the list of active layers. More...
 
bool IsActiveLayer (int aLayerId) const
 Function IsActiveLayer Returns information whether the queried layer is marked as active. More...
 
bool IsHighlightEnabled () const
 Function IsHighlightEnabled Returns current highlight setting. More...
 
const std::set< int > & GetHighlightNetCodes () const
 Function GetHighlightNetCode Returns netcode of currently highlighted net. More...
 
void SetHighlight (bool aEnabled, int aNetcode=-1, bool aHighlightItems=false, bool aMulti=false)
 Function SetHighlight Turns on/off highlighting - it may be done for the active layer, the specified net, or items with their HIGHLIGHTED flags set. More...
 
void SetHighContrast (bool aEnabled)
 Function SetHighContrast Turns on/off high contrast display mode. More...
 
bool GetHighContrast () const
 
float GetWorksheetLineWidth () const
 
int GetDefaultPenWidth () const
 
void SetDefaultPenWidth (int aWidth)
 
bool GetShowPageLimits () const
 
void SetShowPageLimits (bool aDraw)
 
const COLOR4DGetLayerColor (int aLayer) const
 Function GetLayerColor Returns the color used to draw a layer. More...
 
void SetLayerColor (int aLayer, const COLOR4D &aColor)
 Function SetLayerColor Changes the color used to draw a layer. More...
 
void SetOutlineWidth (float aWidth)
 Set line width used for drawing outlines. More...
 
wxDC * GetPrintDC ()
 
void SetPrintDC (wxDC *aDC)
 

Protected Member Functions

virtual void update ()
 Function update Precalculates extra colors for layers (e.g. More...
 

Protected Attributes

std::set< unsigned int > m_activeLayers
 Stores active layers number. More...
 
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
 
bool m_highlightItems
 
float m_highlightFactor
 
float m_selectFactor
 
float m_outlineWidth
 
float m_worksheetLineWidth
 
int m_defaultPenWidth
 
bool m_showPageLimits
 
wxDC * m_printDC
 

Private Attributes

COLOR4D m_normalColor
 
COLOR4D m_selectedColor
 
COLOR4D m_brightenedColor
 
COLOR4D m_gridColor
 
COLOR4D m_cursorColor
 
COLOR4D m_pageBorderColor
 

Friends

class WS_PAINTER
 

Detailed Description

WS_RENDER_SETTINGS Stores page-layout-specific render settings.

Definition at line 47 of file ws_painter.h.

Constructor & Destructor Documentation

◆ WS_RENDER_SETTINGS()

WS_RENDER_SETTINGS::WS_RENDER_SETTINGS ( )

Definition at line 45 of file ws_painter.cpp.

46 {
47  m_backgroundColor = COLOR4D( 1.0, 1.0, 1.0, 1.0 );
50  m_brightenedColor = COLOR4D( 0.0, 1.0, 0.0, 0.9 );
51  m_pageBorderColor = COLOR4D( 0.4, 0.4, 0.4, 1.0 );
52 
53  update();
54 }
COLOR4D Brightened(double aFactor) const
Function Brightened Returns a color that is brighter by a given factor, without modifying object.
Definition: color4d.h:200
virtual void update()
Function update Precalculates extra colors for layers (e.g.
Definition: colors.h:60
COLOR4D is the color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:40

References KIGFX::COLOR4D::Brightened(), KIGFX::RENDER_SETTINGS::m_backgroundColor, m_brightenedColor, m_normalColor, m_pageBorderColor, m_selectedColor, RED, and KIGFX::RENDER_SETTINGS::update().

Member Function Documentation

◆ ClearActiveLayers()

void KIGFX::RENDER_SETTINGS::ClearActiveLayers ( )
inlineinherited

Function ClearActiveLayers Clears the list of active layers.

Definition at line 89 of file render_settings.h.

90  {
91  m_activeLayers.clear();
92  }
std::set< unsigned int > m_activeLayers
Stores active layers number.

References KIGFX::RENDER_SETTINGS::m_activeLayers.

Referenced by GERBVIEW_DRAW_PANEL_GAL::SetHighContrastLayer(), PCB_DRAW_PANEL_GAL::SetHighContrastLayer(), and EDA_DRAW_PANEL_GAL::SetHighContrastLayer().

◆ GetActiveLayers()

const std::set<unsigned int> KIGFX::RENDER_SETTINGS::GetActiveLayers ( )
inlineinherited

Function GetActiveLayers() Returns the set of currently active layers.

Returns
The set of currently active layers.

Definition at line 80 of file render_settings.h.

81  {
82  return m_activeLayers;
83  }
std::set< unsigned int > m_activeLayers
Stores active layers number.

References KIGFX::RENDER_SETTINGS::m_activeLayers.

Referenced by GRID_HELPER::computeAnchors(), PNS_KICAD_IFACE::IsItemVisible(), GRID_HELPER::queryVisible(), and SELECTION_TOOL::Selectable().

◆ GetBackgroundColor()

const COLOR4D& KIGFX::WS_RENDER_SETTINGS::GetBackgroundColor ( )
inlineoverridevirtual

Function GetBackgroundColor Returns current background color settings.

Implements KIGFX::RENDER_SETTINGS.

Definition at line 65 of file ws_painter.h.

65 { return m_backgroundColor; }

References KIGFX::RENDER_SETTINGS::m_backgroundColor.

◆ GetColor()

const COLOR4D & WS_RENDER_SETTINGS::GetColor ( const VIEW_ITEM aItem,
int  aLayer 
) const
overridevirtual

Function GetColor Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer using currently used render settings.

Parameters
aItemis the VIEW_ITEM.
aLayeris the layer.
Returns
The color.

Implements KIGFX::RENDER_SETTINGS.

Definition at line 70 of file ws_painter.cpp.

71 {
72  const EDA_ITEM* item = dynamic_cast<const EDA_ITEM*>( aItem );
73 
74  if( item )
75  {
76  // Selection disambiguation
77  if( item->IsBrightened() )
78  return m_brightenedColor;
79 
80  if( item->IsSelected() )
81  return m_selectedColor;
82  }
83 
84  return m_normalColor;
85 }
bool IsSelected() const
Definition: base_struct.h:207
bool IsBrightened() const
Definition: base_struct.h:210
EDA_ITEM is a base class for most all the KiCad significant classes, used in schematics and boards.
Definition: base_struct.h:163

References EDA_ITEM::IsBrightened(), EDA_ITEM::IsSelected(), m_brightenedColor, m_normalColor, and m_selectedColor.

◆ GetCursorColor()

const COLOR4D& KIGFX::WS_RENDER_SETTINGS::GetCursorColor ( )
inlineoverridevirtual

Function GetCursorColor Returns current cursor color settings.

Implements KIGFX::RENDER_SETTINGS.

Definition at line 79 of file ws_painter.h.

80  {
82  return m_cursorColor;
83  }
bool IsBackgroundDark() const override
Definition: ws_painter.h:59
Definition: colors.h:49
Definition: colors.h:45

References BLACK, IsBackgroundDark(), m_cursorColor, and WHITE.

◆ GetDefaultPenWidth()

int KIGFX::RENDER_SETTINGS::GetDefaultPenWidth ( ) const
inlineinherited

◆ GetGridColor()

const COLOR4D& KIGFX::WS_RENDER_SETTINGS::GetGridColor ( )
inlineoverridevirtual

Function GetGridColor Returns current grid color settings.

Implements KIGFX::RENDER_SETTINGS.

Definition at line 73 of file ws_painter.h.

74  {
76  return m_gridColor;
77  }
bool IsBackgroundDark() const override
Definition: ws_painter.h:59

References DARKGRAY, IsBackgroundDark(), LIGHTGRAY, and m_gridColor.

◆ GetHighContrast()

bool KIGFX::RENDER_SETTINGS::GetHighContrast ( ) const
inlineinherited

Definition at line 155 of file render_settings.h.

155 { return m_hiContrastEnabled; }
bool m_hiContrastEnabled
Parameters for display modes.

References KIGFX::RENDER_SETTINGS::m_hiContrastEnabled.

Referenced by PNS_KICAD_IFACE::IsItemVisible(), and SELECTION_TOOL::Selectable().

◆ GetHighlightNetCodes()

const std::set<int>& KIGFX::RENDER_SETTINGS::GetHighlightNetCodes ( ) const
inlineinherited

Function GetHighlightNetCode Returns netcode of currently highlighted net.

Returns
Netcode of currently highlighted net.

Definition at line 119 of file render_settings.h.

120  {
121  return m_highlightNetcodes;
122  }
std::set< int > m_highlightNetcodes

References KIGFX::RENDER_SETTINGS::m_highlightNetcodes.

Referenced by PNS::TOOL_BASE::highlightNet().

◆ GetLayerColor()

const COLOR4D& KIGFX::RENDER_SETTINGS::GetLayerColor ( int  aLayer) const
inlineinherited

Function GetLayerColor Returns the color used to draw a layer.

Parameters
aLayeris the layer number.

Definition at line 203 of file render_settings.h.

204  {
205  return m_layerColors[aLayer];
206  }
COLOR4D m_layerColors[LAYER_ID_COUNT]

References KIGFX::RENDER_SETTINGS::m_layerColors.

Referenced by DIALOG_LIB_EDIT_PIN::DIALOG_LIB_EDIT_PIN(), KIGFX::SCH_PAINTER::draw(), KIGFX::PREVIEW::DRAW_CONTEXT::DrawArcWithAngleHighlight(), KIGFX::PREVIEW::DRAW_CONTEXT::DrawCircle(), KIGFX::PREVIEW::DRAW_CONTEXT::DrawLine(), KIGFX::PREVIEW::DRAW_CONTEXT::DrawLineWithAngleHighlight(), KIGFX::SCH_PAINTER::getRenderColor(), LIB_RECTANGLE::Plot(), LIB_CIRCLE::Plot(), LIB_BEZIER::Plot(), LIB_TEXT::Plot(), LIB_ARC::Plot(), SCH_JUNCTION::Plot(), LIB_POLYLINE::Plot(), SCH_BUS_ENTRY_BASE::Plot(), SCH_NO_CONNECT::Plot(), SCH_BITMAP::Plot(), LIB_FIELD::Plot(), SCH_FIELD::Plot(), SCH_LINE::Plot(), SCH_TEXT::Plot(), LIB_PART::Plot(), SCH_SHEET::Plot(), LIB_PART::PlotLibFields(), DIALOG_PLOT_SCHEMATIC::PlotOneSheetDXF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPDF(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG(), LIB_PIN::PlotPinTexts(), LIB_PIN::PlotSymbol(), LIB_POLYLINE::print(), LIB_RECTANGLE::print(), LIB_TEXT::print(), LIB_ARC::print(), SCH_JUNCTION::Print(), LIB_FIELD::print(), SCH_NO_CONNECT::Print(), SCH_BUS_ENTRY_BASE::Print(), LIB_BEZIER::print(), LIB_CIRCLE::print(), SCH_LINE::Print(), SCH_FIELD::Print(), SCH_TEXT::Print(), SCH_GLOBALLABEL::Print(), SCH_HIERLABEL::Print(), LIB_PIN::PrintPinElectricalTypeName(), LIB_PIN::PrintPinSymbol(), LIB_PIN::PrintPinTexts(), WS_DRAW_ITEM_LINE::PrintWsItem(), WS_DRAW_ITEM_POLYPOLYGONS::PrintWsItem(), WS_DRAW_ITEM_RECT::PrintWsItem(), WS_DRAW_ITEM_TEXT::PrintWsItem(), and KIGFX::WS_PROXY_VIEW_ITEM::ViewDraw().

◆ GetPrintDC()

◆ GetShowPageLimits()

bool KIGFX::RENDER_SETTINGS::GetShowPageLimits ( ) const
inlineinherited

◆ GetWorksheetLineWidth()

float KIGFX::RENDER_SETTINGS::GetWorksheetLineWidth ( ) const
inlineinherited

◆ IsActiveLayer()

bool KIGFX::RENDER_SETTINGS::IsActiveLayer ( int  aLayerId) const
inlineinherited

Function IsActiveLayer Returns information whether the queried layer is marked as active.

Returns
True if the queried layer is marked as active.

Definition at line 99 of file render_settings.h.

100  {
101  return ( m_activeLayers.count( aLayerId ) > 0 );
102  }
std::set< unsigned int > m_activeLayers
Stores active layers number.

References KIGFX::RENDER_SETTINGS::m_activeLayers.

◆ IsBackgroundDark()

bool KIGFX::WS_RENDER_SETTINGS::IsBackgroundDark ( ) const
inlineoverridevirtual

Reimplemented from KIGFX::RENDER_SETTINGS.

Definition at line 59 of file ws_painter.h.

60  {
61  auto luma = m_backgroundColor.GetBrightness();
62  return luma < 0.5;
63  }
double GetBrightness() const
Function GetBrightness Returns the brightness value of the color ranged from 0.0 to 1....
Definition: color4d.h:270

References KIGFX::COLOR4D::GetBrightness(), and KIGFX::RENDER_SETTINGS::m_backgroundColor.

Referenced by GetCursorColor(), and GetGridColor().

◆ IsHighlightEnabled()

bool KIGFX::RENDER_SETTINGS::IsHighlightEnabled ( ) const
inlineinherited

Function IsHighlightEnabled Returns current highlight setting.

Returns
True if highlight is enabled, false otherwise.

Definition at line 109 of file render_settings.h.

110  {
111  return m_highlightEnabled;
112  }

References KIGFX::RENDER_SETTINGS::m_highlightEnabled.

Referenced by PNS::TOOL_BASE::highlightNet().

◆ LoadColors()

void WS_RENDER_SETTINGS::LoadColors ( const COLOR_SETTINGS aSettings)
overridevirtual

Reimplemented from KIGFX::RENDER_SETTINGS.

Definition at line 57 of file ws_painter.cpp.

58 {
59  for( int layer = SCH_LAYER_ID_START; layer < SCH_LAYER_ID_END; layer ++)
60  m_layerColors[ layer ] = aSettings->GetColor( layer );
61 
62  for( int layer = GAL_LAYER_ID_START; layer < GAL_LAYER_ID_END; layer ++)
63  m_layerColors[ layer ] = aSettings->GetColor( layer );
64 
67 }
COLOR4D m_layerColors[LAYER_ID_COUNT]
Add new GAL layers here.
COLOR4D GetColor(int aLayer) const

References GAL_LAYER_ID_END, GAL_LAYER_ID_START, COLOR_SETTINGS::GetColor(), LAYER_SCHEMATIC_BACKGROUND, LAYER_SCHEMATIC_GRID, KIGFX::RENDER_SETTINGS::m_backgroundColor, KIGFX::RENDER_SETTINGS::m_layerColors, m_pageBorderColor, SCH_LAYER_ID_END, and SCH_LAYER_ID_START.

◆ SetActiveLayer()

void KIGFX::RENDER_SETTINGS::SetActiveLayer ( int  aLayerId,
bool  aEnabled = true 
)
inlineinherited

Function SetActiveLayer Sets the specified layer as active - it means that it can be drawn in a specific mode (eg.

highlighted, so it differs from other layers).

Parameters
aLayerIdis a layer number that should be displayed in a specific mode.
aEnabledis the new layer state ( true = active or false = not active).

Definition at line 67 of file render_settings.h.

68  {
69  if( aEnabled )
70  m_activeLayers.insert( aLayerId );
71  else
72  m_activeLayers.erase( aLayerId );
73  }
std::set< unsigned int > m_activeLayers
Stores active layers number.

References KIGFX::RENDER_SETTINGS::m_activeLayers.

Referenced by GERBVIEW_DRAW_PANEL_GAL::SetHighContrastLayer(), PCB_DRAW_PANEL_GAL::SetHighContrastLayer(), and EDA_DRAW_PANEL_GAL::SetHighContrastLayer().

◆ SetBackgroundColor()

void KIGFX::WS_RENDER_SETTINGS::SetBackgroundColor ( const COLOR4D aColor)
inlineoverridevirtual

Sets the background color.

Implements KIGFX::RENDER_SETTINGS.

Definition at line 66 of file ws_painter.h.

66 { m_backgroundColor = aColor; }

References KIGFX::RENDER_SETTINGS::m_backgroundColor.

◆ SetBrightenedColor()

void KIGFX::WS_RENDER_SETTINGS::SetBrightenedColor ( const COLOR4D aColor)
inline

Definition at line 70 of file ws_painter.h.

70 { m_brightenedColor = aColor; }

References m_brightenedColor.

◆ SetDefaultPenWidth()

◆ SetHighContrast()

void KIGFX::RENDER_SETTINGS::SetHighContrast ( bool  aEnabled)
inlineinherited

Function SetHighContrast Turns on/off high contrast display mode.

Definition at line 154 of file render_settings.h.

154 { m_hiContrastEnabled = aEnabled; }
bool m_hiContrastEnabled
Parameters for display modes.

References KIGFX::RENDER_SETTINGS::m_hiContrastEnabled.

◆ SetHighlight()

void KIGFX::RENDER_SETTINGS::SetHighlight ( bool  aEnabled,
int  aNetcode = -1,
bool  aHighlightItems = false,
bool  aMulti = false 
)
inlineinherited

Function SetHighlight Turns on/off highlighting - it may be done for the active layer, the specified net, or items with their HIGHLIGHTED flags set.

Parameters
aEnabledtells if highlighting should be enabled.
aNetcodeis optional and if specified, turns on higlighting only for the net with number given as the parameter.

Definition at line 132 of file render_settings.h.

134  {
135  m_highlightEnabled = aEnabled;
136 
137  if( aEnabled )
138  {
139  if( !aMulti )
140  m_highlightNetcodes.clear();
141 
142  m_highlightNetcodes.insert( aNetcode );
143  }
144  else
145  m_highlightNetcodes.clear();
146 
147  m_highlightItems = aEnabled ? aHighlightItems : false;
148  }
std::set< int > m_highlightNetcodes

References KIGFX::RENDER_SETTINGS::m_highlightEnabled, KIGFX::RENDER_SETTINGS::m_highlightItems, and KIGFX::RENDER_SETTINGS::m_highlightNetcodes.

Referenced by PCB_EDIT_FRAME::ExecuteRemoteCommand(), PNS::TOOL_BASE::highlightNet(), DIALOG_SELECT_NET_FROM_LIST::highlightNetOnBoard(), GERBVIEW_SELECTION_TOOL::Reset(), EE_SELECTION_TOOL::Reset(), and SELECTION_TOOL::Reset().

◆ SetLayerColor()

void KIGFX::RENDER_SETTINGS::SetLayerColor ( int  aLayer,
const COLOR4D aColor 
)
inlineinherited

Function SetLayerColor Changes the color used to draw a layer.

Parameters
aLayeris the layer number.
aColoris the new color.

Definition at line 214 of file render_settings.h.

215  {
216  m_layerColors[aLayer] = aColor;
217 
218  update(); // recompute other shades of the color
219  }
COLOR4D m_layerColors[LAYER_ID_COUNT]
virtual void update()
Function update Precalculates extra colors for layers (e.g.

References KIGFX::RENDER_SETTINGS::m_layerColors, and KIGFX::RENDER_SETTINGS::update().

Referenced by PLEDITOR_PRINTOUT::PrintPage(), DIALOG_PAD_PROPERTIES::redraw(), PCBNEW_PRINTOUT::setupPainter(), and DIALOG_PAGES_SETTINGS::UpdatePageLayoutExample().

◆ SetNormalColor()

void KIGFX::WS_RENDER_SETTINGS::SetNormalColor ( const COLOR4D aColor)
inline

Definition at line 68 of file ws_painter.h.

68 { m_normalColor = aColor; }

References m_normalColor.

◆ SetOutlineWidth()

void KIGFX::RENDER_SETTINGS::SetOutlineWidth ( float  aWidth)
inlineinherited

Set line width used for drawing outlines.

Parameters
aWidthis the new width.

Definition at line 231 of file render_settings.h.

232  {
233  m_outlineWidth = aWidth;
234  }

References KIGFX::RENDER_SETTINGS::m_outlineWidth.

◆ SetPageBorderColor()

void KIGFX::WS_RENDER_SETTINGS::SetPageBorderColor ( const COLOR4D aColor)
inline

Definition at line 71 of file ws_painter.h.

71 { m_pageBorderColor = aColor; }

References m_pageBorderColor.

◆ SetPrintDC()

◆ SetSelectedColor()

void KIGFX::WS_RENDER_SETTINGS::SetSelectedColor ( const COLOR4D aColor)
inline

Definition at line 69 of file ws_painter.h.

69 { m_selectedColor = aColor; }

References m_selectedColor.

◆ SetShowPageLimits()

void KIGFX::RENDER_SETTINGS::SetShowPageLimits ( bool  aDraw)
inlineinherited

◆ update()

void RENDER_SETTINGS::update ( )
protectedvirtualinherited

Function update Precalculates extra colors for layers (e.g.

highlighted, darkened and any needed version of base colors).

Definition at line 52 of file render_settings.cpp.

53 {
54  // Calculate darkened/highlighted variants of layer colors
55  for( int i = 0; i < LAYER_ID_COUNT; i++ )
56  {
62  }
63 }
COLOR4D m_layerColorsHi[LAYER_ID_COUNT]
COLOR4D m_layerColors[LAYER_ID_COUNT]
COLOR4D Darkened(double aFactor) const
Function Darkened Returns a color that is darker by a given factor, without modifying object.
Definition: color4d.h:216
COLOR4D m_hiContrastColor[LAYER_ID_COUNT]
COLOR4D Brightened(double aFactor) const
Function Brightened Returns a color that is brighter by a given factor, without modifying object.
Definition: color4d.h:200
COLOR4D m_layerColorsDark[LAYER_ID_COUNT]
#define LAYER_ID_COUNT
Must update this if you add any enums after GerbView!
COLOR4D Mix(const COLOR4D &aColor, double aFactor) const
Function Mix Returns a color that is mixed with the input by a factor.
Definition: color4d.h:232
COLOR4D m_layerColorsSel[LAYER_ID_COUNT]

References KIGFX::COLOR4D::Brightened(), KIGFX::COLOR4D::Darkened(), 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::GERBVIEW_RENDER_SETTINGS::GERBVIEW_RENDER_SETTINGS(), KIGFX::GERBVIEW_RENDER_SETTINGS::LoadColors(), KIGFX::PCB_RENDER_SETTINGS::LoadColors(), KIGFX::GERBVIEW_RENDER_SETTINGS::LoadDisplayOptions(), KIGFX::PCB_RENDER_SETTINGS::PCB_RENDER_SETTINGS(), KIGFX::GERBVIEW_RENDER_SETTINGS::SetLayerColor(), KIGFX::RENDER_SETTINGS::SetLayerColor(), and WS_RENDER_SETTINGS().

Friends And Related Function Documentation

◆ WS_PAINTER

friend class WS_PAINTER
friend

Definition at line 50 of file ws_painter.h.

Member Data Documentation

◆ m_activeLayers

◆ m_backgroundColor

◆ m_brightenedColor

COLOR4D KIGFX::WS_RENDER_SETTINGS::m_brightenedColor
private

Definition at line 88 of file ws_painter.h.

Referenced by GetColor(), SetBrightenedColor(), and WS_RENDER_SETTINGS().

◆ m_cursorColor

COLOR4D KIGFX::WS_RENDER_SETTINGS::m_cursorColor
private

Definition at line 91 of file ws_painter.h.

Referenced by GetCursorColor().

◆ m_defaultPenWidth

int KIGFX::RENDER_SETTINGS::m_defaultPenWidth
protectedinherited

◆ m_gridColor

COLOR4D KIGFX::WS_RENDER_SETTINGS::m_gridColor
private

Definition at line 90 of file ws_painter.h.

Referenced by GetGridColor().

◆ m_hiContrastColor

COLOR4D KIGFX::RENDER_SETTINGS::m_hiContrastColor[LAYER_ID_COUNT]
protectedinherited

◆ m_hiContrastEnabled

◆ m_hiContrastFactor

float KIGFX::RENDER_SETTINGS::m_hiContrastFactor
protectedinherited

◆ m_highlightEnabled

◆ m_highlightFactor

float KIGFX::RENDER_SETTINGS::m_highlightFactor
protectedinherited

◆ m_highlightItems

bool KIGFX::RENDER_SETTINGS::m_highlightItems
protectedinherited

◆ m_highlightNetcodes

std::set<int> KIGFX::RENDER_SETTINGS::m_highlightNetcodes
protectedinherited

◆ m_layerColors

◆ m_layerColorsDark

◆ m_layerColorsHi

◆ m_layerColorsSel

◆ m_normalColor

COLOR4D KIGFX::WS_RENDER_SETTINGS::m_normalColor
private

Definition at line 86 of file ws_painter.h.

Referenced by GetColor(), SetNormalColor(), and WS_RENDER_SETTINGS().

◆ m_outlineWidth

◆ m_pageBorderColor

COLOR4D KIGFX::WS_RENDER_SETTINGS::m_pageBorderColor
private

Definition at line 92 of file ws_painter.h.

Referenced by LoadColors(), SetPageBorderColor(), and WS_RENDER_SETTINGS().

◆ m_printDC

wxDC* KIGFX::RENDER_SETTINGS::m_printDC
protectedinherited

◆ m_selectedColor

COLOR4D KIGFX::WS_RENDER_SETTINGS::m_selectedColor
private

Definition at line 87 of file ws_painter.h.

Referenced by GetColor(), SetSelectedColor(), and WS_RENDER_SETTINGS().

◆ m_selectFactor

float KIGFX::RENDER_SETTINGS::m_selectFactor
protectedinherited

◆ m_showPageLimits

◆ m_worksheetLineWidth

float KIGFX::RENDER_SETTINGS::m_worksheetLineWidth
protectedinherited

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