pcb 4.1.1
An interactive printed circuit board layout editor.
|
Prototypes for rats routines. More...
#include "global.h"
Go to the source code of this file.
Functions | |
LibraryMenuType * | netnode_to_netname (char *nodename) |
LibraryMenuType * | netname_to_netname (char *netname) |
RatType * | AddNet (void) |
This function is moved from the original netlist.c as part of the gui code separation for the Gtk port. | |
char * | ConnectionName (int, void *, void *) |
This function is moved from the original netlist.c as part of the gui code separation for the Gtk port. | |
bool | AddAllRats (bool, void(*)(register ConnectionType *, register ConnectionType *, register RouteStyleType *)) |
AddAllRats puts the rats nest into the layout from the loaded netlist. | |
bool | SeekPad (LibraryEntryType *, ConnectionType *, bool) |
Parse a netlist menu entry and locate the corresponding pad. | |
NetListType * | ProcNetlist (LibraryType *) |
Read the library-netlist build a true Netlist structure. | |
NetListListType | CollectSubnets (bool) |
Prototypes for rats routines.
PCB, interactive printed circuit board design
Copyright (C) 1994,1995,1996 Thomas Nau
Copyright (C) 1997, harry eaton
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 Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Contact addresses for paper mail and Email:
Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
Definition in file rats.h.
bool AddAllRats | ( | bool | SelectedOnly, |
void(*)(register ConnectionType *, register ConnectionType *, register RouteStyleType *) | funcp | ||
) |
AddAllRats puts the rats nest into the layout from the loaded netlist.
If SelectedOnly is true, it will only draw rats to selected pins and pads.
Definition at line 741 of file rats.c.
References _, connection(), CONNECTION_LOOP, PCBType::Data, Draw(), DrawShortestRats(), END_LOOP, FreeConnectionLookupMemory(), FreeNetListMemory(), GatherSubnets(), GetConnectionMemory(), GetNetMemory(), IncrementUndoSerialNumber(), InitConnectionLookup(), Message(), NET_LOOP, PCBType::NetlistLib, NetListType::NetN, PCB, ProcNetlist(), DataType::RatN, SettingType::RatWarn, Settings, NetType::Style, and TEST_FLAG.
Referenced by ActionAddRats(), ActionImport(), AutoPlaceSelected(), AutoRoute(), and toporouter().
RatType* AddNet | ( | void | ) |
This function is moved from the original netlist.c as part of the gui code separation for the Gtk port.
Definition at line 915 of file rats.c.
References _, CrosshairType::AttachedLine, BOTTOM_SIDE, ConnectionName(), CreateNewRat(), Crosshair, PCBType::Data, LibraryMenuType::flag, GetLayerGroupNumberBySide(), GetLibraryEntryMemory(), GetLibraryMenuMemory(), LibraryEntryType::ListEntry, Message(), LibraryMenuType::Name, NAMEONPCB_NAME, NetlistChanged(), PCBType::NetlistLib, netnode_to_netname(), NoFlags, PCB, AttachedLineType::Point1, AttachedLineType::Point2, ptr1, ptr2, ptr3, rat_used(), SettingType::RatThickness, SearchObjectByLocation(), Settings, TEST_FLAG, TOP_SIDE, PointType::X, and PointType::Y.
Referenced by NotifyMode().
NetListListType CollectSubnets | ( | bool | SelectedOnly | ) |
Definition at line 835 of file rats.c.
References _, connection(), CONNECTION_LOOP, END_LOOP, FreeConnectionLookupMemory(), GatherSubnets(), GetConnectionMemory(), GetNetListMemory(), GetNetMemory(), InitConnectionLookup(), Message(), NET_LOOP, PCBType::NetlistLib, PCB, ProcNetlist(), NetType::Style, and TEST_FLAG.
Referenced by CreateRouteData(), and import_clusters().
char* ConnectionName | ( | int | , |
void * | , | ||
void * | |||
) |
This function is moved from the original netlist.c as part of the gui code separation for the Gtk port.
Definition at line 1025 of file rats.c.
References NAMEONPCB_NAME, and UNKNOWN.
Referenced by AddNet(), describe_location(), and LookupConnection().
LibraryMenuType* netname_to_netname | ( | char * | netname | ) |
Definition at line 126 of file netlist.c.
References LibraryType::Menu, LibraryType::MenuN, LibraryMenuType::Name, PCBType::NetlistLib, and PCB.
Referenced by LesstifNetlistShow().
LibraryMenuType* netnode_to_netname | ( | char * | nodename | ) |
Definition at line 107 of file netlist.c.
References LibraryMenuType::Entry, LibraryMenuType::EntryN, LibraryEntryType::ListEntry, LibraryType::Menu, LibraryType::MenuN, PCBType::NetlistLib, and PCB.
Referenced by AddNet(), IPCD356_Netlist(), and LesstifNetlistShow().
NetListType* ProcNetlist | ( | LibraryType * | ) |
Read the library-netlist build a true Netlist structure.
Definition at line 226 of file rats.c.
References _, ALLPAD_LOOP, ALLPIN_LOOP, BOTTOM_SIDE, CLEAR_FLAG, connection(), PCBType::Data, END_LOOP, ENDALL_LOOP, ENTRY_LOOP, FreeNetListMemory(), GetConnectionMemory(), GetLayerGroupNumberBySide(), GetNetMemory(), ConnectionType::menu, MENU_LOOP, LibraryType::MenuN, Message(), RouteStyleType::Name, NAMEONPCB_NAME, NSTRCMP, Number, PCB, pin, ConnectionType::ptr1, ConnectionType::ptr2, SeekPad(), SET_FLAG, pin_st::Spare, NetType::Style, style, STYLE_LOOP, TEST_FLAG, TOP_SIDE, and ConnectionType::type.
Referenced by AddAllRats(), AutoPlaceSelected(), CollectSubnets(), and smartdisperse().
bool SeekPad | ( | LibraryEntryType * | entry, |
ConnectionType * | conn, | ||
bool | Same | ||
) |
Parse a netlist menu entry and locate the corresponding pad.
Definition at line 189 of file rats.c.
References _, FindPad(), LibraryEntryType::ListEntry, Message(), and ParseConnection().
Referenced by gsvit_create_netlist(), nbcb_select_common(), netlist_select_cb(), node_selection_changed_cb(), pin_name_to_xy(), ProcNetlist(), ReportNetLengthByName(), and toggle_pin_selected().