Commit e073bdc0 authored by charras's avatar charras
Browse files

Pcbnew: cleaned code in ratsnet calculations (work in progress). The new code is also faster.

parent 8d604456
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -50,8 +50,7 @@
 * Gavin Bell
 */
#include <math.h>
#include "fctsys.h"         // used only to define GLfloat
#include "3d_viewer.h"      // used only to define GLfloat
#include "wx/glcanvas.h"     // used only to define GLfloat
#include "trackball.h"

/*
+12 −0
Original line number Diff line number Diff line
@@ -4,6 +4,18 @@ KiCad ChangeLog 2009
Please add newer entries at the top, list the date and your name with
email address.

2009-may-24 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
================================================================================
++Pcbnew:
    clean code in ratsnet calculations (work in progress)
    The old code was very difficukt to understand, and was sometime very ugly.
    Mainly, the list of nets (RATSNEST_ITEM class, formerly EQUIPOT class)
    are now handled in a std::vector, and not a linked list.
    This is better, because nets identifiers for pads and tracks are a number called netcode.
    now, this is the index of the given net in this list, and the code to find a net given by its netcode
    is very fast.


2009-may-12 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
================================================================================
++All:
+1 −0
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ set(PCB_COMMON_SRCS
    ../pcbnew/class_drc_item.cpp
    ../pcbnew/class_edge_mod.cpp
    ../pcbnew/class_equipot.cpp
    ../pcbnew/class_netinfolist.cpp
    ../pcbnew/class_marker.cpp
    ../pcbnew/class_mire.cpp
    ../pcbnew/class_module.cpp
+0 −1
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@ enum KICAD_T {
    TYPE_PCB,

    // Items in pcb
    TYPE_EQUIPOT,
    TYPE_MODULE,
    TYPE_PAD,
    TYPE_DRAWSEGMENT,
+2 −2
Original line number Diff line number Diff line
@@ -123,9 +123,9 @@
#define EXTERNAL_LAYERS         0x00008001

/* Forward declaration */
class EQUIPOT;
class NETINFO_ITEM;
class MARKER;
class CHEVELU;
class RATSNEST_ITEM;

//class Ki_PageDescr;
//class DrawBlockStruct;
Loading