Default STEP export to board only
[geda-pcb/pcjc2/v2.git] / src / find.h
blobe88788a6853bea890f589fae1df6a3911b39243a
1 /*!
2 * \file src/find.h
4 * \brief Prototypes for connection search routines.
6 * <h1><b>Copyright.</b></h1>\n
8 * PCB, interactive printed circuit board design
10 * Copyright (C) 1994,1995,1996 Thomas Nau
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 * Contact addresses for paper mail and Email:
27 * Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
28 * Thomas.Nau@rz.uni-ulm.de
31 #ifndef PCB_FIND_H
32 #define PCB_FIND_H
34 #include <stdio.h> /* needed to define 'FILE *' */
35 #include "global.h"
37 /* ---------------------------------------------------------------------------
38 * some local defines
40 #define LOOKUP_FIRST \
41 (PIN_TYPE | PAD_TYPE)
42 #define LOOKUP_MORE \
43 (VIA_TYPE | LINE_TYPE | RATLINE_TYPE | POLYGON_TYPE | ARC_TYPE)
44 #define SILK_TYPE \
45 (LINE_TYPE | ARC_TYPE | POLYGON_TYPE)
47 bool LineLineIntersect (LineType *, LineType *);
48 bool LineArcIntersect (LineType *, ArcType *);
49 bool PinLineIntersect (PinType *, LineType *);
50 bool LinePadIntersect (LineType *, PadType *);
51 bool ArcPadIntersect (ArcType *, PadType *);
52 void LookupElementConnections (ElementType *, FILE *);
53 void LookupConnectionsToAllElements (FILE *);
54 void LookupConnection (Coord, Coord, bool, Coord, int, bool AndRats, bool store_undo);
55 void LookupConnectionByObject (int, void *, void *, void *, bool, int, bool AndRats, bool store_undo);
56 void LookupConnectionByPin (int , void *);
57 void LookupUnusedPins (FILE *);
58 bool ClearFlagOnLinesAndPolygons (bool, int flag, bool store_undo);
59 bool ClearFlagOnPinsViasAndPads (bool, int flag, bool store_undo);
60 bool ClearFlagOnAllObjects (bool, int flag, bool store_undo);
61 void InitConnectionLookup (void);
62 void FreeConnectionLookupMemory (void);
63 void RatFindHook (int, void *, void *, void *, bool, int flag, bool);
64 int DRCAll (void);
65 void UpdateLineNetnames (void);
67 #endif