src/undo.c: Converted plain comments into doxygen comments.
[geda-pcb/pcjc2.git] / src / mtspace.h
blobcbb9a9dff49c34389ef7a0a6772fdc1a25116f53
1 /*!
2 * \file src/mtspace.h
4 * \brief Prototypes for "empty space" routines (needed for via-space
5 * tracking in the auto-router.
7 * mtspace data structures are built on r-trees.
9 * This file, mtspace.h, was written and is
11 * Copyright (c) 2001 C. Scott Ananian.
13 * <hr>
15 * <h1><b>Copyright.</b></h1>\n
17 * PCB, interactive printed circuit board design
19 * Copyright (C) 1994,1995,1996 Thomas Nau
21 * Copyright (C) 1998,1999,2000,2001 harry eaton
23 * This program is free software; you can redistribute it and/or modify
24 * it under the terms of the GNU General Public License as published by
25 * the Free Software Foundation; either version 2 of the License, or
26 * (at your option) any later version.
28 * This program is distributed in the hope that it will be useful,
29 * but WITHOUT ANY WARRANTY; without even the implied warranty of
30 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 * GNU General Public License for more details.
33 * You should have received a copy of the GNU General Public License
34 * along with this program; if not, write to the Free Software
35 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
37 * Contact addresses for paper mail and Email:
39 * harry eaton, 6697 Buttonhole Ct, Columbia, MD 21044 USA
41 * haceaton@aplcomm.jhuapl.edu
45 #ifndef PCB_MTSPACE_H
46 #define PCB_MTSPACE_H
48 #include "global.h"
49 #include "vector.h" /* for vector_t in mtspace_query_rect prototype */
51 typedef struct mtspace mtspace_t;
52 typedef enum
53 { FIXED, ODD, EVEN } mtspace_type_t;
54 typedef struct vetting vetting_t;
56 mtspace_t *mtspace_create (void);
57 void mtspace_destroy (mtspace_t ** mtspacep);
59 /* -- mutation -- */
61 void mtspace_add (mtspace_t * mtspace,
62 const BoxType * box, mtspace_type_t which, Coord
63 keepaway);
64 void mtspace_remove (mtspace_t * mtspace,
65 const BoxType * box, mtspace_type_t which,
66 Coord keepaway);
69 vetting_t *mtspace_query_rect (mtspace_t * mtspace, const BoxType * region,
70 Coord radius, Coord keepaway,
71 vetting_t * work,
72 vector_t * free_space_vec,
73 vector_t * lo_conflict_space_vec,
74 vector_t * hi_conflict_space_vec,
75 bool is_odd, bool with_conflicts,
76 CheapPointType *desired);
78 void mtsFreeWork (vetting_t **);
79 int mtsBoxCount (vetting_t *);
81 #endif /* ! PCB_MTSPACE_H */