PCB_PAINTER: added public GetLayerColor() method
This commit is contained in:
parent
b0694e0333
commit
b0357ce9a7
|
@ -193,6 +193,10 @@ const COLOR4D& PCB_PAINTER::GetColor( const VIEW_ITEM* aItem, int aLayer )
|
||||||
return m_pcbSettings->m_layerColors[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 )
|
bool PCB_PAINTER::Draw( const VIEW_ITEM* aItem, int aLayer )
|
||||||
{
|
{
|
||||||
|
|
|
@ -85,6 +85,8 @@ public:
|
||||||
*/
|
*/
|
||||||
void LoadDisplayOptions( const DISPLAY_OPTIONS& aOptions );
|
void LoadDisplayOptions( const DISPLAY_OPTIONS& aOptions );
|
||||||
|
|
||||||
|
const COLOR4D& GetLayerColor ( int aLayer ) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// @copydoc RENDER_SETTINGS::Update()
|
/// @copydoc RENDER_SETTINGS::Update()
|
||||||
void update();
|
void update();
|
||||||
|
|
Loading…
Reference in New Issue