~pierre-parent-k/kicad/length-tunning

« back to all changes in this revision

Viewing changes to pcbnew/router/pns_utils.h

  • Committer: Pierre Parent
  • Date: 2014-07-06 10:32:13 UTC
  • mfrom: (4798.1.179 kicad)
  • Revision ID: pierre.parent@insa-rouen.fr-20140706103213-wjsdy0hc9q6wbz5v
Merge with lp:kicad 4977

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * KiRouter - a push-and-(sometimes-)shove PCB router
3
3
 *
4
 
 * Copyright (C) 2013  CERN
 
4
 * Copyright (C) 2013-2014  CERN
5
5
 * Author: Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
6
6
 *
7
7
 * This program is free software: you can redistribute it and/or modify it
15
15
 * General Public License for more details.
16
16
 *
17
17
 * You should have received a copy of the GNU General Public License along
18
 
 * with this program.  If not, see <http://www.gnu.or/licenses/>.
 
18
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
19
19
 */
20
20
 
21
21
#ifndef __PNS_UTILS_H
23
23
 
24
24
#include <math/vector2d.h>
25
25
#include <geometry/shape_line_chain.h>
 
26
#include <geometry/shape_segment.h>
 
27
#include <geometry/shape_rect.h>
 
28
 
 
29
#define HULL_MARGIN 10
26
30
 
27
31
/** Various utility functions */
28
32
 
29
33
const SHAPE_LINE_CHAIN OctagonalHull( const VECTOR2I& aP0, const VECTOR2I& aSize,
30
 
        int aClearance, int aChamfer );
 
34
                                      int aClearance, int aChamfer );
 
35
 
 
36
const SHAPE_LINE_CHAIN SegmentHull ( const SHAPE_SEGMENT& aSeg, int aClearance,
 
37
                                     int aWalkaroundThickness );
 
38
 
 
39
SHAPE_RECT ApproximateSegmentAsRect( const SHAPE_SEGMENT& aSeg );
31
40
 
32
41
#endif    // __PNS_UTILS_H