2011-09-24 18:33:28 +00:00
|
|
|
/**
|
|
|
|
* @file pcbcommon.h
|
|
|
|
*/
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2012-02-02 17:45:37 +00:00
|
|
|
#ifndef PCBCOMMON_H_
|
|
|
|
#define PCBCOMMON_H_
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2011-09-23 13:57:12 +00:00
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <dlist.h>
|
|
|
|
#include <layers_id_colors_and_visibility.h> // LAYER_COUNT and NB_COPPER_LAYERS definitions.
|
2011-09-23 13:57:12 +00:00
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2012-02-02 17:45:37 +00:00
|
|
|
#define MIN_DRAW_WIDTH 1 ///< Minimum trace drawing width.
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2011-09-23 13:57:12 +00:00
|
|
|
|
|
|
|
class D_PAD;
|
|
|
|
class TRACK;
|
|
|
|
class BOARD;
|
2009-04-05 20:49:15 +00:00
|
|
|
class DISPLAY_OPTIONS;
|
|
|
|
|
2011-09-23 13:57:12 +00:00
|
|
|
|
2011-12-06 08:35:13 +00:00
|
|
|
/**
|
|
|
|
* Function GetLayerMask
|
|
|
|
* @return a one bit layer mask from a layer number
|
|
|
|
* @param aLayerNumber = the layer number to convert (0 .. LAYER_COUNT-1)
|
|
|
|
*/
|
|
|
|
int GetLayerMask( int aLayerNumber );
|
2011-09-24 18:33:28 +00:00
|
|
|
|
2012-02-02 17:45:37 +00:00
|
|
|
/// Look up Table for conversion copper layer count -> general copper layer mask:
|
2009-04-05 20:49:15 +00:00
|
|
|
extern int g_TabAllCopperLayerMask[NB_COPPER_LAYERS];
|
|
|
|
|
|
|
|
extern DISPLAY_OPTIONS DisplayOpt;
|
|
|
|
|
|
|
|
extern int g_CurrentVersionPCB;
|
|
|
|
|
2011-09-26 20:32:56 +00:00
|
|
|
extern int g_RotationAngle;
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2011-09-24 18:33:28 +00:00
|
|
|
/// List of segments of the trace currently being drawn.
|
2009-04-05 20:49:15 +00:00
|
|
|
extern DLIST<TRACK> g_CurrentTrackList;
|
|
|
|
|
2011-09-24 18:33:28 +00:00
|
|
|
#define g_CurrentTrackSegment g_CurrentTrackList.GetLast() ///< most recently created segment
|
|
|
|
|
|
|
|
#define g_FirstTrackSegment g_CurrentTrackList.GetFirst() ///< first segment created
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2011-09-24 18:33:28 +00:00
|
|
|
|
2012-02-02 17:45:37 +00:00
|
|
|
#endif // PCBCOMMON_H_
|