Remove useless includes
This commit is contained in:
parent
b4910658b5
commit
04aeec1223
|
@ -129,10 +129,6 @@ typedef long time_t;
|
|||
// KiCad plugin handling
|
||||
%include "kicadplugins.i"
|
||||
|
||||
// map CPolyLine and classes used in CPolyLine:
|
||||
#include <../polygon/PolyLine.h>
|
||||
%include <../polygon/PolyLine.h>
|
||||
|
||||
#include <geometry/shape.h>
|
||||
%include <geometry/shape.h>
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
#include <zone_settings.h>
|
||||
#include <pcb_plot_params.h>
|
||||
#include <board_item_container.h>
|
||||
#include <eda_rect.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#define CLASS_DRAWSEGMENT_H_
|
||||
|
||||
#include <class_board_item.h>
|
||||
#include <PolyLine.h>
|
||||
#include <math_for_graphics.h>
|
||||
#include <trigo.h>
|
||||
#include <common.h>
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
#include <lib_id.h>
|
||||
|
||||
#include <class_text_mod.h>
|
||||
#include <PolyLine.h>
|
||||
#include "zones.h"
|
||||
|
||||
#include <core/iterators.h>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
*/
|
||||
|
||||
#include <fctsys.h>
|
||||
#include <PolyLine.h>
|
||||
#include <trigo.h>
|
||||
#include <macros.h>
|
||||
#include <msgpanel.h>
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include <class_board_item.h>
|
||||
#include <board_connected_item.h>
|
||||
#include <pad_shapes.h>
|
||||
#include <PolyLine.h>
|
||||
#include <geometry/shape_poly_set.h>
|
||||
#include <config_params.h> // PARAM_CFG_ARRAY
|
||||
#include "zones.h"
|
||||
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
|
||||
#include <eda_text.h>
|
||||
#include <class_board_item.h>
|
||||
#include <PolyLine.h>
|
||||
|
||||
|
||||
class LINE_READER;
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include <class_board_item.h>
|
||||
#include <board_connected_item.h>
|
||||
#include <layers_id_colors_and_visibility.h>
|
||||
#include <PolyLine.h>
|
||||
#include <geometry/shape_poly_set.h>
|
||||
#include <zone_settings.h>
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
*/
|
||||
|
||||
#include <fctsys.h>
|
||||
#include <PolyLine.h>
|
||||
#include <trigo.h>
|
||||
|
||||
#include <pcbnew.h>
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
|
||||
#include <cmath>
|
||||
#include <vector>
|
||||
#include <PolyLine.h>
|
||||
|
||||
#include "polygon_test_point_inside.h"
|
||||
|
||||
/* this algo uses the the Jordan curve theorem to find if a point is inside or outside a polygon:
|
||||
* It run a semi-infinite line horizontally (increasing x, fixed y)
|
||||
|
@ -49,7 +50,7 @@
|
|||
|
||||
#define OUTSIDE false
|
||||
#define INSIDE true
|
||||
|
||||
#if 0
|
||||
bool TestPointInsidePolygon( const CPOLYGONS_LIST& aPolysList,
|
||||
int aIdxstart,
|
||||
int aIdxend,
|
||||
|
@ -115,7 +116,7 @@ bool TestPointInsidePolygon( const CPOLYGONS_LIST& aPolysList,
|
|||
|
||||
return count & 1 ? INSIDE : OUTSIDE;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/* Function TestPointInsidePolygon (overlaid)
|
||||
* same as previous, but use wxPoint and aCount corners
|
||||
|
|
|
@ -29,7 +29,12 @@ class wxPoint
|
|||
public:
|
||||
int x, y;
|
||||
};
|
||||
#else
|
||||
#include <wx/gdicmn.h> // for wxPoint definition
|
||||
#endif
|
||||
|
||||
|
||||
#if 0
|
||||
class CPOLYGONS_LIST;
|
||||
|
||||
/**
|
||||
|
@ -54,6 +59,7 @@ bool TestPointInsidePolygon( const CPOLYGONS_LIST& aPolysList,
|
|||
* @param aRefPoint: the point coordinate to test
|
||||
* @return true if the point is inside, false for outside
|
||||
*/
|
||||
#endif
|
||||
bool TestPointInsidePolygon( const wxPoint* aPolysList,
|
||||
int aCount,
|
||||
const wxPoint &aRefPoint );
|
||||
|
|
Loading…
Reference in New Issue