|
Horizon
|
#include <pns_dragger.h>
Public Member Functions | |
| DRAGGER (ROUTER *aRouter) | |
| void | SetWorld (NODE *aWorld) |
| Function SetWorld() More... | |
| bool | Start (const VECTOR2I &aP, ITEM *aStartItem) |
| Function Start() More... | |
| bool | Drag (const VECTOR2I &aP) |
| Function Drag() More... | |
| bool | FixRoute () |
| Function FixRoute() More... | |
| NODE * | CurrentNode () const |
| Function CurrentNode() More... | |
| const ITEM_SET | Traces () |
| Function Traces() More... | |
| virtual LOGGER * | Logger () override |
More... | |
| void | SetMode (int aDragMode) |
Public Member Functions inherited from PNS::ALGO_BASE | |
| ALGO_BASE (ROUTER *aRouter) | |
| ROUTER * | Router () const |
| |
| ROUTING_SETTINGS & | Settings () const |
| |
| void | SetDebugDecorator (DEBUG_DECORATOR *aDecorator) |
| Function SetDebugDecorator. More... | |
| DEBUG_DECORATOR * | Dbg () const |
Class DRAGGER.
Via, segment and corner dragging algorithm.
| NODE * PNS::DRAGGER::CurrentNode | ( | ) | const |
Function CurrentNode()
Returns the most recent world state, including all items changed due to dragging operation.
| bool PNS::DRAGGER::Drag | ( | const VECTOR2I & | aP | ) |
Function Drag()
Drags the current segment/corner/via to the point aP.
| bool PNS::DRAGGER::FixRoute | ( | ) |
Function FixRoute()
Checks if the result of current dragging operation is correct and eventually commits it to the world.
|
overridevirtual |
Returns the logger object, allowing to dump geometry to a file.
Reimplemented from PNS::ALGO_BASE.
| void PNS::DRAGGER::SetWorld | ( | NODE * | aWorld | ) |
Function SetWorld()
Sets the board to work on.
Function Start()
Starts routing a single track at point aP, taking item aStartItem as anchor (unless NULL). Returns true if a dragging operation has started.