|
Horizon
|
#include <pns_component_dragger.h>
Public Member Functions | |
| COMPONENT_DRAGGER (ROUTER *aRouter) | |
| bool | Start (const VECTOR2I &aP, ITEM_SET &aPrimitives) override |
| Function Start() More... | |
| bool | Drag (const VECTOR2I &aP) override |
| Function Drag() More... | |
| bool | FixRoute () override |
| Function FixRoute() More... | |
| NODE * | CurrentNode () const override |
| Function CurrentNode() More... | |
| const std::vector< int > | CurrentNets () const override |
| Function CurrentNets() More... | |
| virtual int | CurrentLayer () const override |
| Function CurrentLayer() More... | |
| const ITEM_SET | Traces () override |
| Function Traces() More... | |
Public Member Functions inherited from PNS::DRAG_ALGO | |
| DRAG_ALGO (ROUTER *aRouter) | |
| virtual void | SetWorld (NODE *aWorld) |
| Function SetWorld() More... | |
| virtual bool | Start (const VECTOR2I &aP, ITEM_SET &aPrimitives)=0 |
| Function Start() More... | |
| virtual bool | Drag (const VECTOR2I &aP)=0 |
| Function Drag() More... | |
| virtual bool | FixRoute ()=0 |
| Function FixRoute() More... | |
| virtual NODE * | CurrentNode () const =0 |
| Function CurrentNode() More... | |
| virtual const std::vector< int > | CurrentNets () const =0 |
| Function CurrentNets() More... | |
| virtual int | CurrentLayer () const =0 |
| Function CurrentLayer() More... | |
| virtual const ITEM_SET | Traces ()=0 |
| Function Traces() More... | |
| virtual void | SetMode (int aDragMode) |
Public Member Functions inherited from PNS::ALGO_BASE | |
| ALGO_BASE (ROUTER *aRouter) | |
| virtual | ~ALGO_BASE () |
| Return the instance of our router. | |
| ROUTER * | Router () const |
| Return current router settings. | |
| ROUTING_SETTINGS & | Settings () const |
| Return the logger object, allowing to dump geometry to a file. | |
| virtual LOGGER * | Logger () |
| void | SetLogger (LOGGER *aLogger) |
| void | SetDebugDecorator (DEBUG_DECORATOR *aDecorator) |
| Assign a debug decorator allowing this algo to draw extra graphics for visual debugging. | |
| DEBUG_DECORATOR * | Dbg () const |
| const BOX2I & | VisibleViewArea () const |
Additional Inherited Members | |
Protected Attributes inherited from PNS::DRAG_ALGO | |
| NODE * | m_world |
Protected Attributes inherited from PNS::ALGO_BASE | |
| DEBUG_DECORATOR * | m_debugDecorator |
| ROUTER * | m_router |
| LOGGER * | m_logger |
Implements component dragging algorithm.
|
inlineoverridevirtual |
Function CurrentLayer()
Returns the layer of currently dragged item(s). Currently unused for component dragging.
Implements PNS::DRAG_ALGO.
|
inlineoverridevirtual |
Function CurrentNets()
Returns the net code(s) of currently dragged item(s). Currently unused for component dragging.
Implements PNS::DRAG_ALGO.
|
overridevirtual |
Function CurrentNode()
Returns the most recent world state, including all items changed due to dragging operation.
Implements PNS::DRAG_ALGO.
|
overridevirtual |
Function Drag()
Drags the current segment/corner/via to the point aP.
Implements PNS::DRAG_ALGO.
|
overridevirtual |
Function FixRoute()
Checks if the result of current dragging operation is correct and eventually commits it to the world.
Implements PNS::DRAG_ALGO.
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.
Implements PNS::DRAG_ALGO.
|
overridevirtual |