2012-08-29 16:59:50 +00:00
|
|
|
/**
|
|
|
|
* @file pcbnew/pcbplot.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PLOTCONTROLLER_H_
|
|
|
|
#define PLOTCONTROLLER_H_
|
|
|
|
|
|
|
|
#include <pcb_plot_params.h>
|
|
|
|
#include <layers_id_colors_and_visibility.h>
|
|
|
|
|
|
|
|
class PLOTTER;
|
|
|
|
class BOARD;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Batch plotter state object. Keeps the plot options and handles multiple
|
|
|
|
* plot requests
|
|
|
|
*/
|
|
|
|
class PLOT_CONTROLLER
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PLOT_CONTROLLER( BOARD *aBoard );
|
|
|
|
~PLOT_CONTROLLER();
|
|
|
|
PCB_PLOT_PARAMS *AccessPlotOpts() { return &m_plotOpts; }
|
|
|
|
bool IsPlotOpen() const { return m_plotter != NULL; }
|
|
|
|
void ClosePlot();
|
|
|
|
bool OpenPlotfile( const wxString &aSuffix, PlotFormat aFormat,
|
|
|
|
const wxString &aSheetDesc );
|
2013-03-31 13:27:46 +00:00
|
|
|
bool PlotLayer( LAYER_NUM layer );
|
2012-08-29 16:59:50 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
/// Option bank
|
|
|
|
PCB_PLOT_PARAMS m_plotOpts;
|
|
|
|
|
|
|
|
/// This is the plotter object; it starts NULL and become instantiated
|
|
|
|
// when a plotfile is requested
|
|
|
|
PLOTTER *m_plotter;
|
|
|
|
|
|
|
|
/// The board we're plotting
|
|
|
|
BOARD* m_board;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|