KiCad PCB EDA Suite
|
Automatic routing routines. More...
Go to the source code of this file.
Classes | |
struct | CWORK |
Functions | |
void | InitWork () |
int | SetWork (int r1, int c1, int n_c, int r2, int c2, RATSNEST_ITEM *pt_ch, int pri) |
void | GetWork (int *r1, int *c1, int *n_c, int *r2, int *c2, RATSNEST_ITEM **pt_ch) |
bool | sort_by_cost (const CWORK &ref, const CWORK &item) |
void | SortWork () |
Variables | |
static std::vector< CWORK > | WorkList |
static unsigned | Current = 0 |
Automatic routing routines.
Definition in file work.cpp.
void GetWork | ( | int * | r1, |
int * | c1, | ||
int * | n_c, | ||
int * | r2, | ||
int * | c2, | ||
RATSNEST_ITEM ** | pt_ch | ||
) |
void InitWork | ( | ) |
Definition at line 68 of file work.cpp.
References Current, and WorkList.
Referenced by PCB_EDIT_FRAME::Autoroute(), and Build_Work().
int SetWork | ( | int | r1, |
int | c1, | ||
int | n_c, | ||
int | r2, | ||
int | c2, | ||
RATSNEST_ITEM * | pt_ch, | ||
int | pri | ||
) |
Definition at line 81 of file work.cpp.
References CWORK::CalculateCost(), MATRIX_ROUTING_HEAD::GetApxDist(), CWORK::m_ApxDist, CWORK::m_FromCol, CWORK::m_FromRow, CWORK::m_NetCode, CWORK::m_Priority, CWORK::m_Ratsnest, CWORK::m_ToCol, CWORK::m_ToRow, RoutingMatrix, and WorkList.
Referenced by Build_Work().
Definition at line 127 of file work.cpp.
References CWORK::m_Cost, and CWORK::m_Priority.
Referenced by SortWork().
void SortWork | ( | ) |
Definition at line 135 of file work.cpp.
References sort_by_cost(), and WorkList.
Referenced by Build_Work().
|
static |
Definition at line 64 of file work.cpp.
Referenced by GetWork(), and InitWork().
|
static |
Definition at line 63 of file work.cpp.
Referenced by GetWork(), InitWork(), SetWork(), and SortWork().