2009-03-18 15:38:16 +00:00
|
|
|
/************/
|
|
|
|
/* pcbplot.h*/
|
|
|
|
/************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#ifndef PCBPLOT_H
|
|
|
|
#define PCBPLOT_H
|
|
|
|
|
|
|
|
|
2009-01-13 19:18:54 +00:00
|
|
|
/* Shared Config keys for plot and print */
|
|
|
|
#define OPTKEY_PLOT_LINEWIDTH_VALUE wxT( "PlotLineWidth" )
|
2009-03-18 15:38:16 +00:00
|
|
|
#define OPTKEY_LAYERBASE wxT( "PlotLayer_%d" )
|
|
|
|
#define OPTKEY_PRINT_X_FINESCALE_ADJ wxT( "PrintXFineScaleAdj" )
|
|
|
|
#define OPTKEY_PRINT_Y_FINESCALE_ADJ wxT( "PrintYFineScaleAdj" )
|
|
|
|
#define OPTKEY_PRINT_SCALE wxT( "PrintScale" )
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/* Constantes de conversion d'unites */
|
|
|
|
/* coeff de conversion dim en 0.1 mil -> dim en unite PS: (unite PS = pouce) */
|
|
|
|
#define SCALE_PS .0001
|
|
|
|
/* coeff de conversion dim en 0,1 mil -> dim en unite HPGL: */
|
|
|
|
#define SCALE_HPGL 0.102041
|
|
|
|
|
2009-06-28 16:50:42 +00:00
|
|
|
/* Plot Options : */
|
|
|
|
struct PCB_Plot_Options {
|
|
|
|
bool Exclude_Edges_Pcb;
|
|
|
|
int PlotLine_Width;
|
|
|
|
bool Plot_Frame_Ref; // True to plot/print frame references
|
|
|
|
bool DrawViaOnMaskLayer; // True if vias are drawn on Mask layer (ie protected by mask)
|
|
|
|
GRTraceMode Trace_Mode;
|
|
|
|
bool Plot_Set_MIROIR;
|
|
|
|
int HPGL_Pen_Num;
|
|
|
|
int HPGL_Pen_Speed;
|
|
|
|
int HPGL_Pen_Diam;
|
|
|
|
int HPGL_Pen_Recouvrement;
|
|
|
|
int PlotPSColorOpt; // True for color Postscript output
|
|
|
|
bool Plot_PS_Negative; // True to create a negative board ps plot
|
|
|
|
|
|
|
|
/* Autorisation de trace des divers items en serigraphie */
|
|
|
|
bool Sel_Texte_Reference;
|
|
|
|
bool Sel_Texte_Valeur;
|
|
|
|
bool Sel_Texte_Divers;
|
|
|
|
bool Sel_Texte_Invisible;
|
|
|
|
bool PlotPadsOnSilkLayer;
|
|
|
|
bool Plot_Pads_All_Layers; /* Plot pads meme n'appartenant pas a la
|
2009-04-05 20:49:15 +00:00
|
|
|
couche ( utile pour serigraphie) */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-06-28 16:50:42 +00:00
|
|
|
/* id for plot format (see enum PlotFormat in plot_common.h) */
|
|
|
|
int PlotFormat;
|
|
|
|
int PlotOrient;
|
|
|
|
int PlotScaleOpt;
|
|
|
|
enum DrillShapeOptT {
|
|
|
|
NO_DRILL_SHAPE = 0,
|
|
|
|
SMALL_DRILL_SHAPE = 1,
|
|
|
|
FULL_DRILL_SHAPE = 2
|
|
|
|
};
|
|
|
|
DrillShapeOptT DrillShapeOpt;
|
|
|
|
double Scale;
|
|
|
|
double ScaleAdjX;
|
|
|
|
double ScaleAdjY;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern PCB_Plot_Options g_pcb_plot_options;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-03-18 15:38:16 +00:00
|
|
|
/*************************************/
|
|
|
|
/* Constantes utiles en trace GERBER */
|
|
|
|
/*************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/* PLOT_RTN.CC */
|
2009-06-28 16:50:42 +00:00
|
|
|
void PlotTextePcb(Plotter *plotter, TEXTE_PCB* pt_texte, int masque_layer,
|
|
|
|
GRTraceMode trace_mode);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-03-18 15:38:16 +00:00
|
|
|
/* Trace 1 Texte type PCB , c.a.d autre que les textes sur modules,
|
|
|
|
* prepare les parametres de trace de texte */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-06-28 16:50:42 +00:00
|
|
|
void PlotDrawSegment(Plotter *plotter, DRAWSEGMENT* PtSegm, int masque_layer,
|
|
|
|
GRTraceMode trace_mode);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-06-28 16:50:42 +00:00
|
|
|
void PlotCotation(Plotter *plotter, COTATION* Cotation, int masque_layer ,
|
|
|
|
GRTraceMode trace_mode);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-06-28 16:50:42 +00:00
|
|
|
void PlotMirePcb(Plotter *plotter, MIREPCB* PtMire, int masque_layer ,
|
|
|
|
GRTraceMode trace_mode);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-06-28 16:50:42 +00:00
|
|
|
void Plot_1_EdgeModule(Plotter *plotter, EDGE_MODULE* PtEdge ,
|
|
|
|
GRTraceMode trace_mode);
|
2009-03-18 15:38:16 +00:00
|
|
|
|
2009-06-28 16:50:42 +00:00
|
|
|
void PlotFilledAreas(Plotter *plotter, ZONE_CONTAINER* aZone,
|
|
|
|
GRTraceMode trace_mode);
|
2008-10-07 12:10:24 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
/* PLOTGERB.CPP */
|
2009-06-28 16:50:42 +00:00
|
|
|
void SelectD_CODE_For_LineDraw(Plotter *plotter, int aSize );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-08-24 10:10:42 +00:00
|
|
|
|
2009-03-18 15:38:16 +00:00
|
|
|
#endif /* #define PCBPLOT_H */
|