From b0357ce9a7d9b528d0969e7effe84130dceca88d Mon Sep 17 00:00:00 2001 From: "tomasz.wlostowski@cern.ch" Date: Mon, 9 Sep 2013 17:08:52 +0200 Subject: [PATCH] PCB_PAINTER: added public GetLayerColor() method --- pcbnew/pcb_painter.cpp | 4 ++++ pcbnew/pcb_painter.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/pcbnew/pcb_painter.cpp b/pcbnew/pcb_painter.cpp index 36ab6588ee..5e62b91060 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -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 ) { diff --git a/pcbnew/pcb_painter.h b/pcbnew/pcb_painter.h index 952a042f39..a51324500f 100644 --- a/pcbnew/pcb_painter.h +++ b/pcbnew/pcb_painter.h @@ -85,6 +85,8 @@ public: */ void LoadDisplayOptions( const DISPLAY_OPTIONS& aOptions ); + const COLOR4D& GetLayerColor ( int aLayer ) const; + protected: /// @copydoc RENDER_SETTINGS::Update() void update();