24 #ifndef RENDER_SETTINGS_H 25 #define RENDER_SETTINGS_H 152 inline void SetHighlight(
bool aEnabled,
int aNetcode = -1,
bool aMulti =
false )
172 inline void SetHighlight( std::set<int>& aHighlight,
bool aEnabled =
true )
const std::set< unsigned int > GetHighContrastLayers() const
Returns the set of currently high-contrast layers.
virtual const COLOR4D & GetGridColor()=0
Return current grid color settings.
The Cairo implementation of the graphics abstraction layer.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
virtual const COLOR4D & GetCursorColor()=0
Return current cursor color settings.
COLOR4D m_layerColorsHi[LAYER_ID_COUNT]
COLOR4D m_layerColors[LAYER_ID_COUNT]
virtual const COLOR4D & GetBackgroundColor()=0
Return current background color settings.
const COLOR4D & GetLayerColor(int aLayer) const
Return the color used to draw a layer.
void SetHighlight(std::set< int > &aHighlight, bool aEnabled=true)
Turns on highlighting and highlights multiple nets.
bool GetShowPageLimits() const
float m_drawingSheetLineWidth
bool IsHighlightEnabled() const
Return current highlight setting.
An abstract base class for deriving all objects that can be added to a VIEW.
float GetDrawingSheetLineWidth() const
void SetOutlineWidth(float aWidth)
Set line width used for drawing outlines.
virtual bool IsBackgroundDark() const
std::set< unsigned int > m_highContrastLayers
COLOR4D m_hiContrastColor[LAYER_ID_COUNT]
void SetHighContrastFactor(float aFactor)
COLOR4D m_layerColorsDark[LAYER_ID_COUNT]
bool m_hiContrastEnabled
Parameters for display modes.
virtual void update()
Precalculates extra colors for layers (e.g.
void SetMinPenWidth(int aWidth)
void SetHighContrast(bool aEnabled)
Turns on/off high contrast display mode.
void SetLayerColor(int aLayer, const COLOR4D &aColor)
Change the color used to draw a layer.
bool GetLayerIsHighContrast(int aLayerId) const
Return information whether the queried layer is marked as high-contrast.
void SetLayerIsHighContrast(int aLayerId, bool aEnabled=true)
Set the specified layer as high-contrast.
wxDC * GetPrintDC() const
PCB_LAYER_ID m_activeLayer
virtual COLOR4D GetColor(const VIEW_ITEM *aItem, int aLayer) const =0
Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer using curr...
bool GetHighContrast() const
COLOR4D m_backgroundColor
virtual void SetBackgroundColor(const COLOR4D &aColor)=0
Set the background color.
void SetHighlight(bool aEnabled, int aNetcode=-1, bool aMulti=false)
Turns on/off highlighting.
PCB_LAYER_ID
A quick note on layer IDs:
void SetIsPrinting(bool isPrinting)
void SetSelectFactor(float aFactor)
void SetHighlightFactor(float aFactor)
PCB_LAYER_ID GetActiveLayer() const
void ClearHighContrastLayers()
Clear the list of active layers.
int GetDefaultPenWidth() const
Color settings are a bit different than most of the settings objects in that there can be more than o...
int GetMinPenWidth() const
const std::set< int > & GetHighlightNetCodes() const
Return the netcode of currently highlighted net.
PCB_LAYER_ID GetPrimaryHighContrastLayer() const
Return the board layer which is in high-contrast mode.
virtual ~RENDER_SETTINGS()
void SetDefaultPenWidth(int aWidth)
virtual void LoadColors(const COLOR_SETTINGS *aSettings)
void SetActiveLayer(PCB_LAYER_ID aLayer)
std::set< int > m_highlightNetcodes
void SetPrintDC(wxDC *aDC)
#define LAYER_ID_COUNT
Must update this if you add any enums after GerbView!
COLOR4D m_layerColorsSel[LAYER_ID_COUNT]
void SetShowPageLimits(bool aDraw)
A color representation with 4 components: red, green, blue, alpha.