30 m_highlightNetcodes(),
31 m_drawBoundingBoxes( false ),
32 m_dashLengthRatio( 12 ),
33 m_gapLengthRatio( 3 ),
77 return std::max( ( 1.0 -
correction ), 0.2 ) * aLineWidth;
107 factor = std::min( 1.0, factor );
COLOR4D Darkened(double aFactor) const
Return a color that is darker by a given factor, without modifying object.
COLOR4D Brightened(double aFactor) const
Return a color that is brighter by a given factor, without modifying object.
COLOR4D Mix(const COLOR4D &aColor, double aFactor) const
Return a color that is mixed with the input by a factor.
COLOR4D m_hiContrastColor[LAYER_ID_COUNT]
double GetGapLength(int aLineWidth) const
virtual ~RENDER_SETTINGS()
COLOR4D m_layerColorsDark[LAYER_ID_COUNT]
COLOR4D m_layerColorsSel[LAYER_ID_COUNT]
double GetDotLength(int aLineWidth) const
float m_drawingSheetLineWidth
COLOR4D m_layerColorsHi[LAYER_ID_COUNT]
virtual void update()
Precalculates extra colors for layers (e.g.
PCB_LAYER_ID m_activeLayer
COLOR4D m_layerColors[LAYER_ID_COUNT]
double GetDashLength(int aLineWidth) const
bool m_hiContrastEnabled
Parameters for display modes.
#define LAYER_ID_COUNT
Must update this if you add any enums after GerbView!
@ LAYER_PCB_BACKGROUND
PCB background color.
bool IsNetnameLayer(int aLayer)
Test whether a layer is a netname layer.
The Cairo implementation of the graphics abstraction layer.
constexpr double correction