pcb 4.1.1
An interactive printed circuit board layout editor.

find.h

Go to the documentation of this file.
00001 
00031 #ifndef PCB_FIND_H
00032 #define PCB_FIND_H
00033 
00034 #include <stdio.h>              /* needed to define 'FILE *' */
00035 #include "global.h"
00036 
00037 /* ---------------------------------------------------------------------------
00038  * some local defines
00039  */
00040 #define LOOKUP_FIRST    \
00041         (PIN_TYPE | PAD_TYPE)
00042 #define LOOKUP_MORE     \
00043         (VIA_TYPE | LINE_TYPE | RATLINE_TYPE | POLYGON_TYPE | ARC_TYPE)
00044 #define SILK_TYPE       \
00045         (LINE_TYPE | ARC_TYPE | POLYGON_TYPE)
00046 
00047 bool LineLineIntersect (LineType *, LineType *);
00048 bool LineArcIntersect (LineType *, ArcType *);
00049 bool PinLineIntersect (PinType *, LineType *);
00050 bool LinePadIntersect (LineType *, PadType *);
00051 bool ArcPadIntersect (ArcType *, PadType *);
00052 void LookupElementConnections (ElementType *, FILE *);
00053 void LookupConnectionsToAllElements (FILE *);
00054 void LookupConnection (Coord, Coord, bool, Coord, int, bool AndRats);
00055 void LookupUnusedPins (FILE *);
00056 bool ClearFlagOnLinesAndPolygons (bool, int flag);
00057 bool ClearFlagOnPinsViasAndPads (bool, int flag);
00058 bool ClearFlagOnAllObjects (bool, int flag);
00059 void InitConnectionLookup (void);
00060 void FreeConnectionLookupMemory (void);
00061 void RatFindHook (int, void *, void *, void *, bool, int flag, bool);
00062 int DRCAll (void);
00063 void LookupConnectionByPin (int , void *);
00064 
00065 #endif