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;
|
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();
|
void ClosePlot();
|
||||||
bool OpenPlotfile( const wxString &aSuffix, PlotFormat aFormat,
|
bool OpenPlotfile( const wxString &aSuffix, PlotFormat aFormat,
|
||||||
const wxString &aSheetDesc );
|
const wxString &aSheetDesc );
|
||||||
|
|
||||||
bool PlotLayer( LAYER_NUM layer );
|
bool PlotLayer( LAYER_NUM layer );
|
||||||
|
|
||||||
|
void SetColorMode( bool aColorMode );
|
||||||
|
bool GetColorMode();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/// Option bank
|
/// Option bank
|
||||||
|
|
Loading…
Reference in New Issue