Move DIRECTION45 to common/geometry

This class is useful for generic geometric layout of 45-deg constrained
line chains, not only in the PNS router.
This commit is contained in:
John Beard 2017-03-22 20:35:07 +08:00 committed by Maciej Suminski
parent ea10a67d14
commit 1fd503bf58
5 changed files with 10 additions and 8 deletions

View File

@ -1,8 +1,9 @@
/*
* KiRouter - a push-and-(sometimes-)shove PCB router
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2013-2015 CERN
* Author: Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
* Copyright (C) 2017 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@ -18,8 +19,8 @@
* with this program. If not, see <http://www.gnu.or/licenses/>.
*/
#ifndef __DIRECTION_H
#define __DIRECTION_H
#ifndef DIRECTION45_H
#define DIRECTION45_H
#include <geometry/seg.h>
#include <geometry/shape_line_chain.h>
@ -354,4 +355,4 @@ private:
Directions m_dir;
};
#endif // __DIRECTION_H
#endif // DIRECTION45_H

View File

@ -24,12 +24,12 @@
#include <cmath>
#include <limits>
#include <geometry/direction45.h>
#include <geometry/shape.h>
#include <geometry/shape_rect.h>
#include <geometry/shape_circle.h>
#include <geometry/shape_segment.h>
#include "direction.h"
#include "pns_diff_pair.h"
#include "pns_router.h"

View File

@ -24,11 +24,11 @@
#include <math/vector2d.h>
#include <geometry/direction45.h>
#include <geometry/seg.h>
#include <geometry/shape.h>
#include <geometry/shape_line_chain.h>
#include "direction.h"
#include "pns_item.h"
#include "pns_via.h"

View File

@ -21,8 +21,9 @@
#include <tool/tool_settings.h>
#include <geometry/direction45.h>
#include "pns_routing_settings.h"
#include "direction.h"
namespace PNS {

View File

@ -40,7 +40,7 @@
#include <view/view.h>
#include <gal/graphics_abstraction_layer.h>
#include <tool/tool_manager.h>
#include <router/direction.h>
#include <geometry/direction45.h>
#include <ratsnest_data.h>
#include <board_commit.h>
#include <scoped_set_reset.h>