KiCad PCB EDA Suite
KIGFX::WS_RENDER_SETTINGS Class Reference

Class 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 ()
 
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)
 
const COLOR4DGetGridColor () override
 Function GetGridColor Returns current grid color settings. More...
 
const COLOR4DGetCursorColor () override
 Function GetCursorColor Returns current cursor color settings. More...
 
virtual void ImportLegacyColors (const COLORS_DESIGN_SETTINGS *aSettings)
 Function ImportLegacyColors Loads a list of color settings for layers. 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...
 
int GetHighlightNetCode () const
 Function GetHighlightNetCode Returns netcode of currently highlighted net. More...
 
void SetHighlight (bool aEnabled, int aNetcode=-1, bool aHighlightItems=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
 Function GetHighContrast Returns information about high contrast display mode. More...
 
float GetWorksheetLineWidth () const
 
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...
 

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]
 

Colors for all layers (normal)

More...
 
COLOR4D m_layerColorsHi [LAYER_ID_COUNT]
 

Colors for all layers (highlighted)

More...
 
COLOR4D m_layerColorsSel [LAYER_ID_COUNT]
 

Colors for all layers (selected)

More...
 
COLOR4D m_layerColorsDark [LAYER_ID_COUNT]
 

Colors for all layers (darkened)

More...
 
COLOR4D m_hiContrastColor [LAYER_ID_COUNT]
 
bool m_hiContrastEnabled
 Parameters for display modes. More...
 
float m_hiContrastFactor
 Factor used for computing high contrast color. More...
 
bool m_highlightEnabled
 Highlight display mode on/off. More...
 
int m_highlightNetcode
 Net number that is displayed in highlight -1 means that there is no specific net, and whole active layer is highlighted. More...
 
bool m_highlightItems
 Highlight items with their HIGHLIGHT flags set. More...
 
float m_highlightFactor
 Factor used for computing highlight color. More...
 
float m_selectFactor
 Specifies how color of selected items is changed. More...
 
float m_layerOpacity
 Determines opacity of all layers. More...
 
float m_outlineWidth
 Line width used when drawing outlines. More...
 
float m_worksheetLineWidth
 Line width used when drawing worksheet. More...
 
bool m_showPageLimits
 
COLOR4D m_backgroundColor
 The background color. More...
 

Private Attributes

COLOR4D m_normalColor
 
COLOR4D m_selectedColor
 
COLOR4D m_brightenedColor
 
COLOR4D m_gridColor
 
COLOR4D m_cursorColor
 

Friends

class WS_PAINTER
 

Detailed Description

Class WS_RENDER_SETTINGS Stores page-layout-specific render settings.

Definition at line 46 of file ws_painter.h.

Constructor & Destructor Documentation

◆ WS_RENDER_SETTINGS()

WS_RENDER_SETTINGS::WS_RENDER_SETTINGS ( )

Definition at line 44 of file ws_painter.cpp.

45 {
46  m_backgroundColor = COLOR4D( 1.0, 1.0, 1.0, 1.0 );
49  m_brightenedColor = COLOR4D( 0.0, 1.0, 0.0, 0.9 );
50 
51  update();
52 }
COLOR4D Brightened(double aFactor) const
Function Brightened Returns a color that is brighter by a given factor, without modifying object.
Definition: color4d.h:199
virtual void update()
Function update Precalculates extra colors for layers (e.g.
Definition: painter.cpp:53
Definition: colors.h:60
COLOR4D m_backgroundColor
The background color.
Definition: painter.h:297
Class COLOR4D is the color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:39

References KIGFX::COLOR4D::Brightened(), KIGFX::RENDER_SETTINGS::m_backgroundColor, m_brightenedColor, m_normalColor, 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 98 of file painter.h.

99  {
100  m_activeLayers.clear();
101  }
std::set< unsigned int > m_activeLayers
Stores active layers number.
Definition: painter.h:262

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 89 of file painter.h.

90  {
91  return m_activeLayers;
92  }
std::set< unsigned int > m_activeLayers
Stores active layers number.
Definition: painter.h:262

References KIGFX::RENDER_SETTINGS::m_activeLayers.

Referenced by 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 62 of file ws_painter.h.

62 { return m_backgroundColor; }
COLOR4D m_backgroundColor
The background color.
Definition: painter.h:297

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 55 of file ws_painter.cpp.

56 {
57  const EDA_ITEM* item = dynamic_cast<const EDA_ITEM*>( aItem );
58 
59  if( item )
60  {
61  // Selection disambiguation
62  if( item->IsBrightened() )
63  return m_brightenedColor;
64 
65  if( item->IsSelected() )
66  return m_selectedColor;
67  }
68 
69  return m_normalColor;
70 }
bool IsSelected() const
Definition: base_struct.h:233
bool IsBrightened() const
Definition: base_struct.h:236
Class EDA_ITEM is a base class for most all the KiCad significant classes, used in schematics and boa...
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 75 of file ws_painter.h.

76  {
78  return m_cursorColor;
79  }
bool IsBackgroundDark() const override
Definition: ws_painter.h:56
Definition: colors.h:49
Definition: colors.h:45

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

◆ GetGridColor()

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

Function GetGridColor Returns current grid color settings.

Implements KIGFX::RENDER_SETTINGS.

Definition at line 69 of file ws_painter.h.

70  {
72  return m_gridColor;
73  }
bool IsBackgroundDark() const override
Definition: ws_painter.h:56

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

◆ GetHighContrast()

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

Function GetHighContrast Returns information about high contrast display mode.

Returns
True if the high contrast mode is on, false otherwise.

Definition at line 163 of file painter.h.

164  {
165  return m_hiContrastEnabled;
166  }
bool m_hiContrastEnabled
Parameters for display modes.
Definition: painter.h:280

References KIGFX::RENDER_SETTINGS::m_hiContrastEnabled.

Referenced by SELECTION_TOOL::Selectable().

◆ GetHighlightNetCode()

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

Function GetHighlightNetCode Returns netcode of currently highlighted net.

Returns
Netcode of currently highlighted net.

Definition at line 128 of file painter.h.

129  {
130  return m_highlightNetcode;
131  }
int m_highlightNetcode
Net number that is displayed in highlight -1 means that there is no specific net, and whole active la...
Definition: painter.h:284

References KIGFX::RENDER_SETTINGS::m_highlightNetcode.

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

◆ GetLayerColor()

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

◆ GetShowPageLimits()

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

Definition at line 183 of file painter.h.

184  {
185  return m_showPageLimits;
186  }

References KIGFX::RENDER_SETTINGS::m_showPageLimits.

◆ GetWorksheetLineWidth()

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

Definition at line 178 of file painter.h.

179  {
180  return m_worksheetLineWidth;
181  }
float m_worksheetLineWidth
Line width used when drawing worksheet.
Definition: painter.h:293

References KIGFX::RENDER_SETTINGS::m_worksheetLineWidth.

◆ ImportLegacyColors()

virtual void KIGFX::RENDER_SETTINGS::ImportLegacyColors ( const COLORS_DESIGN_SETTINGS aSettings)
inlinevirtualinherited

Function ImportLegacyColors Loads a list of color settings for layers.

Parameters
aSettingsis a list of color settings.

Reimplemented in KIGFX::PCB_RENDER_SETTINGS, KIGFX::SCH_RENDER_SETTINGS, and KIGFX::GERBVIEW_RENDER_SETTINGS.

Definition at line 67 of file painter.h.

67 { }

Referenced by PCBNEW_CONTROL::LayerAlphaDec(), PCBNEW_CONTROL::LayerAlphaInc(), PCB_LAYER_WIDGET::OnLayerColorChange(), GERBER_LAYER_WIDGET::OnLayerColorChange(), PCB_LAYER_WIDGET::OnRenderColorChange(), and GERBER_LAYER_WIDGET::OnRenderColorChange().

◆ 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 108 of file painter.h.

109  {
110  return ( m_activeLayers.count( aLayerId ) > 0 );
111  }
std::set< unsigned int > m_activeLayers
Stores active layers number.
Definition: painter.h:262

References KIGFX::RENDER_SETTINGS::m_activeLayers.

◆ IsBackgroundDark()

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

Reimplemented from KIGFX::RENDER_SETTINGS.

Definition at line 56 of file ws_painter.h.

57  {
58  auto luma = m_backgroundColor.GetBrightness();
59  return luma < 0.5;
60  }
double GetBrightness() const
Function GetBrightness Returns the brightness value of the color ranged from 0.0 to 1....
Definition: color4d.h:269
COLOR4D m_backgroundColor
The background color.
Definition: painter.h:297

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 118 of file painter.h.

119  {
120  return m_highlightEnabled;
121  }
bool m_highlightEnabled
Highlight display mode on/off.
Definition: painter.h:283

References KIGFX::RENDER_SETTINGS::m_highlightEnabled.

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

◆ 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 76 of file painter.h.

77  {
78  if( aEnabled )
79  m_activeLayers.insert( aLayerId );
80  else
81  m_activeLayers.erase( aLayerId );
82  }
std::set< unsigned int > m_activeLayers
Stores active layers number.
Definition: painter.h:262

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 63 of file ws_painter.h.

63 { m_backgroundColor = aColor; }
COLOR4D m_backgroundColor
The background color.
Definition: painter.h:297

References KIGFX::RENDER_SETTINGS::m_backgroundColor.

◆ SetBrightenedColor()

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

Definition at line 67 of file ws_painter.h.

67 { m_brightenedColor = aColor; }

References m_brightenedColor.

Referenced by KIGFX::WS_PROXY_VIEW_ITEM::ViewDraw().

◆ SetHighContrast()

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

Function SetHighContrast Turns on/off high contrast display mode.

Parameters
aEnableddetermines if high contrast display mode should be enabled or not.

Definition at line 153 of file painter.h.

154  {
155  m_hiContrastEnabled = aEnabled;
156  }
bool m_hiContrastEnabled
Parameters for display modes.
Definition: painter.h:280

References KIGFX::RENDER_SETTINGS::m_hiContrastEnabled.

◆ SetHighlight()

void KIGFX::RENDER_SETTINGS::SetHighlight ( bool  aEnabled,
int  aNetcode = -1,
bool  aHighlightItems = 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 141 of file painter.h.

142  {
143  m_highlightEnabled = aEnabled;
144  m_highlightNetcode = aEnabled ? aNetcode : -1;
145  m_highlightItems = aEnabled ? aHighlightItems : false;
146  }
bool m_highlightItems
Highlight items with their HIGHLIGHT flags set.
Definition: painter.h:287
bool m_highlightEnabled
Highlight display mode on/off.
Definition: painter.h:283
int m_highlightNetcode
Net number that is displayed in highlight -1 means that there is no specific net, and whole active la...
Definition: painter.h:284

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

Referenced by PCB_EDIT_FRAME::ExecuteRemoteCommand(), DIALOG_SELECT_NET_FROM_LIST::HighlightNet(), PNS::TOOL_BASE::highlightNet(), 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 232 of file painter.h.

233  {
234  m_layerColors[aLayer] = aColor;
235 
236  update(); // recompute other shades of the color
237  }
COLOR4D m_layerColors[LAYER_ID_COUNT]
Colors for all layers (normal)
Definition: painter.h:265
virtual void update()
Function update Precalculates extra colors for layers (e.g.
Definition: painter.cpp:53

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

Referenced by BOARD_PRINTOUT::DrawPage(), and DIALOG_PAD_PROPERTIES::redraw().

◆ SetNormalColor()

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

Definition at line 65 of file ws_painter.h.

65 { m_normalColor = aColor; }

References m_normalColor.

Referenced by KIGFX::WS_PROXY_VIEW_ITEM::ViewDraw().

◆ SetOutlineWidth()

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

Set line width used for drawing outlines.

Parameters
aWidthis the new width.

Definition at line 249 of file painter.h.

250  {
251  m_outlineWidth = aWidth;
252  }
float m_outlineWidth
Line width used when drawing outlines.
Definition: painter.h:292

References KIGFX::RENDER_SETTINGS::m_outlineWidth.

◆ SetSelectedColor()

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

Definition at line 66 of file ws_painter.h.

66 { m_selectedColor = aColor; }

References m_selectedColor.

Referenced by KIGFX::WS_PROXY_VIEW_ITEM::ViewDraw().

◆ 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 53 of file painter.cpp.

54 {
55  // Calculate darkened/highlighted variants of layer colors
56  for( int i = 0; i < LAYER_ID_COUNT; i++ )
57  {
63  }
64 }
COLOR4D m_layerColorsHi[LAYER_ID_COUNT]
Colors for all layers (highlighted)
Definition: painter.h:268
COLOR4D m_layerColors[LAYER_ID_COUNT]
Colors for all layers (normal)
Definition: painter.h:265
float m_highlightFactor
Factor used for computing highlight color.
Definition: painter.h:288
COLOR4D Darkened(double aFactor) const
Function Darkened Returns a color that is darker by a given factor, without modifying object.
Definition: color4d.h:215
COLOR4D m_hiContrastColor[LAYER_ID_COUNT]
Definition: painter.h:277
COLOR4D Brightened(double aFactor) const
Function Brightened Returns a color that is brighter by a given factor, without modifying object.
Definition: color4d.h:199
COLOR4D m_layerColorsDark[LAYER_ID_COUNT]
Colors for all layers (darkened)
Definition: painter.h:274
#define LAYER_ID_COUNT
Must update this if you add any enums after GerbView!
float m_hiContrastFactor
Factor used for computing high contrast color.
Definition: painter.h:281
size_t i
Definition: json11.cpp:597
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:231
float m_selectFactor
Specifies how color of selected items is changed.
Definition: painter.h:290
COLOR4D m_layerColorsSel[LAYER_ID_COUNT]
Colors for all layers (selected)
Definition: painter.h:271

References KIGFX::COLOR4D::Brightened(), KIGFX::COLOR4D::Darkened(), i, 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::ImportLegacyColors(), KIGFX::PCB_RENDER_SETTINGS::ImportLegacyColors(), 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 49 of file ws_painter.h.

Member Data Documentation

◆ m_activeLayers

std::set<unsigned int> KIGFX::RENDER_SETTINGS::m_activeLayers
protectedinherited

◆ m_backgroundColor

◆ m_brightenedColor

COLOR4D KIGFX::WS_RENDER_SETTINGS::m_brightenedColor
private

Definition at line 84 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 87 of file ws_painter.h.

Referenced by GetCursorColor().

◆ m_gridColor

COLOR4D KIGFX::WS_RENDER_SETTINGS::m_gridColor
private

Definition at line 86 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

Factor used for computing high contrast color.

Definition at line 281 of file painter.h.

Referenced by KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), and KIGFX::RENDER_SETTINGS::update().

◆ m_highlightEnabled

bool KIGFX::RENDER_SETTINGS::m_highlightEnabled
protectedinherited

◆ m_highlightFactor

float KIGFX::RENDER_SETTINGS::m_highlightFactor
protectedinherited

Factor used for computing highlight color.

Definition at line 288 of file painter.h.

Referenced by KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), and KIGFX::RENDER_SETTINGS::update().

◆ m_highlightItems

bool KIGFX::RENDER_SETTINGS::m_highlightItems
protectedinherited

Highlight items with their HIGHLIGHT flags set.

Definition at line 287 of file painter.h.

Referenced by KIGFX::PCB_RENDER_SETTINGS::GetColor(), and KIGFX::RENDER_SETTINGS::SetHighlight().

◆ m_highlightNetcode

int KIGFX::RENDER_SETTINGS::m_highlightNetcode
protectedinherited

Net number that is displayed in highlight -1 means that there is no specific net, and whole active layer is highlighted.

Definition at line 284 of file painter.h.

Referenced by KIGFX::PCB_RENDER_SETTINGS::GetColor(), KIGFX::RENDER_SETTINGS::GetHighlightNetCode(), KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), and KIGFX::RENDER_SETTINGS::SetHighlight().

◆ m_layerColors

◆ m_layerColorsDark

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

Colors for all layers (darkened)

Colora used for high contrast display mode

Definition at line 274 of file painter.h.

Referenced by KIGFX::GERBVIEW_RENDER_SETTINGS::GetColor(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::ImportLegacyColors(), and KIGFX::RENDER_SETTINGS::update().

◆ m_layerColorsHi

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

◆ m_layerColorsSel

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

◆ m_layerOpacity

float KIGFX::RENDER_SETTINGS::m_layerOpacity
protectedinherited

Determines opacity of all layers.

Definition at line 291 of file painter.h.

Referenced by KIGFX::RENDER_SETTINGS::RENDER_SETTINGS().

◆ m_normalColor

COLOR4D KIGFX::WS_RENDER_SETTINGS::m_normalColor
private

Definition at line 82 of file ws_painter.h.

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

◆ m_outlineWidth

◆ m_selectedColor

COLOR4D KIGFX::WS_RENDER_SETTINGS::m_selectedColor
private

Definition at line 83 of file ws_painter.h.

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

◆ m_selectFactor

float KIGFX::RENDER_SETTINGS::m_selectFactor
protectedinherited

Specifies how color of selected items is changed.

Definition at line 290 of file painter.h.

Referenced by KIGFX::RENDER_SETTINGS::RENDER_SETTINGS(), and KIGFX::RENDER_SETTINGS::update().

◆ m_showPageLimits

◆ m_worksheetLineWidth

float KIGFX::RENDER_SETTINGS::m_worksheetLineWidth
protectedinherited

Line width used when drawing worksheet.

Definition at line 293 of file painter.h.

Referenced by KIGFX::RENDER_SETTINGS::GetWorksheetLineWidth(), and KIGFX::RENDER_SETTINGS::RENDER_SETTINGS().


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