Support to enable color from PLOT_CONTROLLER into plotters that start in B/W
This commit is contained in:
parent
a20c89288f
commit
c597e75b73
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue