2008-03-22 05:55:06 +00:00
|
|
|
/************/
|
|
|
|
/* pcbplot.h*/
|
|
|
|
/************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#ifndef PCBPLOT_H
|
|
|
|
#define PCBPLOT_H
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef eda_global
|
|
|
|
#define eda_global extern
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
|
|
|
/* Options : */
|
2008-01-23 08:01:38 +00:00
|
|
|
eda_global bool g_Exclude_Edges_Pcb // True to exclude contents of Edges Pcb layer
|
2007-08-24 10:10:42 +00:00
|
|
|
#ifdef MAIN
|
2008-01-23 08:01:38 +00:00
|
|
|
= FALSE
|
2007-08-24 10:10:42 +00:00
|
|
|
#endif
|
|
|
|
;
|
2007-06-05 12:10:51 +00:00
|
|
|
eda_global bool Plot_Sheet_Ref;
|
|
|
|
eda_global bool g_DrawViaOnMaskLayer; // True if vias are drawn on Mask layer (ie protected by mask)
|
|
|
|
eda_global int Plot_Mode // = FILAIRE, FILL ou SKETCH
|
|
|
|
#ifdef MAIN
|
|
|
|
= FILLED
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
eda_global bool Plot_Set_MIROIR ;
|
|
|
|
eda_global bool Sel_Rotate_Window;
|
|
|
|
eda_global bool HPGL_Org_Centre; // TRUE si en HPGL, l'origine le centre de la feuille
|
|
|
|
eda_global int g_PlotPSColorOpt; // True for color Postscript output
|
|
|
|
eda_global bool g_Plot_PS_Negative; // True to create a negative board ps plot
|
|
|
|
|
|
|
|
|
|
|
|
/* Autorisation de trace des divers items en serigraphie */
|
|
|
|
eda_global bool Sel_Texte_Reference
|
|
|
|
#ifdef MAIN
|
|
|
|
= TRUE
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
eda_global bool Sel_Texte_Valeur
|
|
|
|
#ifdef MAIN
|
|
|
|
= TRUE
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
eda_global bool Sel_Texte_Divers
|
|
|
|
#ifdef MAIN
|
|
|
|
= TRUE
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
eda_global bool Sel_Texte_Invisible;
|
|
|
|
eda_global bool PlotPadsOnSilkLayer /* Plot pads sur couche serigraphie */
|
|
|
|
#ifdef MAIN
|
|
|
|
= TRUE
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
eda_global bool Plot_Pads_All_Layers; /* Plot pads meme n'appartenant pas a la
|
2008-03-22 05:55:06 +00:00
|
|
|
couche ( utile pour serigraphie) */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2008-03-22 05:55:06 +00:00
|
|
|
/* Variables utiles */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
eda_global FILE * dest;
|
|
|
|
|
|
|
|
/* Gestion des plumes en plot format HPGL */
|
|
|
|
eda_global int g_HPGL_Pen_Num /* num de plume a charger */
|
|
|
|
#ifdef MAIN
|
|
|
|
= 1
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
eda_global int g_HPGL_Pen_Speed /* vitesse en cm/s */
|
|
|
|
#ifdef MAIN
|
|
|
|
= 40
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
eda_global int g_HPGL_Pen_Diam; /* diametre en mils */
|
|
|
|
eda_global int g_HPGL_Pen_Recouvrement; /* recouvrement en mils ( pour remplissages */
|
|
|
|
|
|
|
|
/* Gestion des cadrages et echelles de trace */
|
|
|
|
eda_global float Scale_X, Scale_Y ; /* coeff d'agrandissement en X et Y demandes */
|
|
|
|
eda_global wxPoint g_PlotOffset; /* Offset de trace modifies par l'echelle */
|
|
|
|
|
|
|
|
eda_global int nb_plot_erreur ;
|
|
|
|
eda_global int nb_items; /* utilise pour decompter les objets traces */
|
|
|
|
eda_global int g_PlotLine_Width; /* Largeur du trait en mode filaire (utilise en serigraphie,
|
2008-03-22 05:55:06 +00:00
|
|
|
pour traces en mode sketch et filaire) */
|
2008-08-06 07:46:03 +00:00
|
|
|
|
|
|
|
eda_global int g_PlotFormat /* id for plot format (see enum PlotFormat in plot_common.h) */
|
|
|
|
#ifdef MAIN
|
|
|
|
= PLOT_FORMAT_GERBER
|
|
|
|
#endif
|
|
|
|
;
|
2007-06-05 12:10:51 +00:00
|
|
|
eda_global int g_PlotOrient; /* numero de code de l'orientation du trace ( voir
|
2008-03-22 05:55:06 +00:00
|
|
|
defines precedents):
|
|
|
|
0 = normal
|
|
|
|
PLOT_MIROIR = MIROIR
|
|
|
|
*/
|
2007-06-05 12:10:51 +00:00
|
|
|
eda_global int g_PlotScaleOpt // 0 = automatique, >=1 echelle specifiee
|
|
|
|
#ifdef MAIN
|
|
|
|
= 1
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
|
|
|
|
eda_global int g_DrillShapeOpt
|
|
|
|
#ifdef MAIN
|
|
|
|
= 1 // 0 = no drill mark, 1 = small mark, 2 = real drill
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
|
|
|
|
|
2008-03-22 05:55:06 +00:00
|
|
|
/*************************************/
|
|
|
|
/* Constantes utiles en trace GERBER */
|
|
|
|
/*************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/* codes de type de forme d'outils */
|
|
|
|
#define GERB_CIRCLE 1
|
|
|
|
#define GERB_RECT 2
|
|
|
|
#define GERB_LINE 3
|
|
|
|
#define GERB_OVALE 4
|
|
|
|
#define GERB_DONUT 5
|
|
|
|
|
|
|
|
/* PLOT_RTN.CC */
|
|
|
|
void PlotTextePcb( TEXTE_PCB * pt_texte,int format_plot,int masque_layer);
|
2008-03-22 05:55:06 +00:00
|
|
|
/* Trace 1 Texte type PCB , c.a.d autre que les textes sur modules,
|
2008-12-22 21:06:44 +00:00
|
|
|
prepare les parametres de trace de texte */
|
2007-06-05 12:10:51 +00:00
|
|
|
void PlotArc(int format_plot, wxPoint centre, int start_angle,int end_angle,
|
2008-03-22 05:55:06 +00:00
|
|
|
int rayon,int width);
|
2007-06-05 12:10:51 +00:00
|
|
|
void PlotCircle(int format_plot,int width, wxPoint centre, int rayon);
|
2008-11-22 20:50:30 +00:00
|
|
|
void PlotFilledPolygon(int format_plot, int nbpoints, int * coord);
|
|
|
|
void PlotPolygon(int format_plot, int nbpoints, int * coord, int width);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
void PlotDrawSegment( DRAWSEGMENT* PtSegm, int format_plot,int masque_layer );
|
|
|
|
|
|
|
|
void PlotCotation( COTATION * Cotation, int format_plot,int masque_layer );
|
|
|
|
|
|
|
|
void PlotMirePcb( MIREPCB* PtMire, int format_plot,int masque_layer );
|
|
|
|
|
|
|
|
void Plot_1_EdgeModule(int format_plot, EDGE_MODULE * PtEdge);
|
|
|
|
|
2008-10-07 12:10:24 +00:00
|
|
|
void PlotFilledAreas( ZONE_CONTAINER * aZone, int aFormat);
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
/* PLOTGERB.CPP */
|
2008-12-22 21:06:44 +00:00
|
|
|
void SelectD_CODE_For_LineDraw( int aSize );
|
2007-06-05 12:10:51 +00:00
|
|
|
void trace_1_contour_GERBER(wxPoint pos, wxSize size, wxSize delta,
|
2008-03-22 05:55:06 +00:00
|
|
|
int penwidth, int orient);
|
|
|
|
/* Trace 1 contour rectangulaire ou trapezoidal d'orientation quelconque
|
|
|
|
donne par son centre, ses dimensions,
|
|
|
|
ses variations, l'epaisseur du trait et son orientation orient */
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
/* PLOTHPGL.CC */
|
|
|
|
void trace_1_segment_HPGL(int pos_X0,int pos_Y0,int pos_X1,int pos_Y1,
|
2008-03-22 05:55:06 +00:00
|
|
|
int hauteur);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
void trace_1_pad_TRAPEZE_HPGL(wxPoint padpos, wxSize size,wxSize delta,
|
2008-03-22 05:55:06 +00:00
|
|
|
int orient,int modetrace);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
void trace_1_pastille_RONDE_HPGL(wxPoint padpos, int diametre,int modetrace) ;
|
|
|
|
void trace_1_pastille_OVALE_HPGL(wxPoint padpos, wxSize size, int orient, int modetrace);
|
|
|
|
void PlotRectangularPad_HPGL(wxPoint padpos, wxSize padsize, int orient,int modetrace);
|
|
|
|
|
|
|
|
/**************/
|
|
|
|
/* PLOTPS.CPP */
|
|
|
|
/**************/
|
|
|
|
void trace_1_pastille_OVALE_POST(wxPoint centre, wxSize size, int orient, int modetrace);
|
|
|
|
void trace_1_pastille_RONDE_POST(wxPoint centre, int diametre, int modetrace);
|
|
|
|
void trace_1_pad_rectangulaire_POST(wxPoint centre, wxSize size,int orient,
|
2008-03-22 05:55:06 +00:00
|
|
|
int modetrace);
|
2007-06-05 12:10:51 +00:00
|
|
|
void trace_1_contour_POST(wxPoint centre, wxSize size, wxSize delta,
|
2008-03-22 05:55:06 +00:00
|
|
|
int dim_trait, int orient);
|
2007-06-05 12:10:51 +00:00
|
|
|
void trace_1_pad_TRAPEZE_POST(wxPoint centre, wxSize size, wxSize delta,
|
2008-03-22 05:55:06 +00:00
|
|
|
int orient,int modetrace);
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* #define PCBPLOT_H */
|
2007-08-24 10:10:42 +00:00
|
|
|
|