Horizon
|
#include <pns_component_dragger.h>
Public Member Functions | |
COMPONENT_DRAGGER (ROUTER *aRouter) | |
bool | Start (const VECTOR2I &aP, ITEM_SET &aPrimitives) override |
Function Start() | |
bool | Drag (const VECTOR2I &aP) override |
Function Drag() | |
bool | FixRoute () override |
Function FixRoute() | |
NODE * | CurrentNode () const override |
Function CurrentNode() | |
const std::vector< int > | CurrentNets () const override |
Function CurrentNets() | |
virtual int | CurrentLayer () const override |
Function CurrentLayer() | |
const ITEM_SET | Traces () override |
Function Traces() | |
![]() | |
DRAG_ALGO (ROUTER *aRouter) | |
virtual void | SetWorld (NODE *aWorld) |
Function SetWorld() | |
virtual void | SetMode (int aDragMode) |
![]() | |
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 | |
![]() | |
NODE * | m_world |
![]() | |
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 |