Support to enable color from PLOT_CONTROLLER into plotters that start in B/W

This commit is contained in:
Miguel Angel Ajo 2013-04-18 23:21:26 +02:00
parent a20c89288f
commit c597e75b73
2 changed files with 20 additions and 0 deletions

View File

@ -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();
}

View File

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