diff --git a/pcbnew/pcbplot.cpp b/pcbnew/pcbplot.cpp index 17004e252c..38d3e86201 100644 --- a/pcbnew/pcbplot.cpp +++ b/pcbnew/pcbplot.cpp @@ -384,3 +384,19 @@ bool PLOT_CONTROLLER::PlotLayer( LAYER_NUM aLayer )/*{{{*/ return true; }/*}}}*/ +void PLOT_CONTROLLER::SetColorMode( bool aColorMode ) +{ + if( !m_plotter ) + return; + + m_plotter->SetColorMode( aColorMode ); +} + +bool PLOT_CONTROLLER::GetColorMode() +{ + if( !m_plotter ) + return false; + + return m_plotter->GetColorMode(); +} + diff --git a/pcbnew/plotcontroller.h b/pcbnew/plotcontroller.h index 89e0028d0b..1716866122 100644 --- a/pcbnew/plotcontroller.h +++ b/pcbnew/plotcontroller.h @@ -25,7 +25,11 @@ public: void ClosePlot(); bool OpenPlotfile( const wxString &aSuffix, PlotFormat aFormat, const wxString &aSheetDesc ); + bool PlotLayer( LAYER_NUM layer ); + + void SetColorMode( bool aColorMode ); + bool GetColorMode(); private: /// Option bank