PCB_PAINTER: added public GetLayerColor() method

This commit is contained in:
tomasz.wlostowski@cern.ch 2013-09-09 17:08:52 +02:00
parent b0694e0333
commit b0357ce9a7
2 changed files with 6 additions and 0 deletions

View File

@ -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 )
{

View File

@ -85,6 +85,8 @@ public:
*/
void LoadDisplayOptions( const DISPLAY_OPTIONS& aOptions );
const COLOR4D& GetLayerColor ( int aLayer ) const;
protected:
/// @copydoc RENDER_SETTINGS::Update()
void update();