PCB_PAINTER: added public GetLayerColor() method

parent b0694e03
......@@ -193,6 +193,10 @@ const COLOR4D& PCB_PAINTER::GetColor( const VIEW_ITEM* aItem, int aLayer )
return m_pcbSettings->m_layerColors[aLayer];
}
const COLOR4D& PCB_RENDER_SETTINGS::GetLayerColor( int aLayer ) const
{
return m_layerColors[aLayer];
}
bool PCB_PAINTER::Draw( const VIEW_ITEM* aItem, int aLayer )
{
......
......@@ -85,6 +85,8 @@ public:
*/
void LoadDisplayOptions( const DISPLAY_OPTIONS& aOptions );
const COLOR4D& GetLayerColor ( int aLayer ) const;
protected:
/// @copydoc RENDER_SETTINGS::Update()
void update();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment