Horizon
Public Member Functions | List of all members
PNS::DRAGGER Class Reference

Class DRAGGER. More...

#include <pns_dragger.h>

Inheritance diagram for PNS::DRAGGER:
PNS::ALGO_BASE

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...
 
NODECurrentNode () const
 Function CurrentNode() More...
 
const ITEM_SET Traces ()
 Function Traces() More...
 
virtual LOGGERLogger () override
 

Returns the logger object, allowing to dump geometry to a file.

More...
 
void SetMode (int aDragMode)
 
 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...
 
NODECurrentNode () const
 Function CurrentNode() More...
 
const ITEM_SET Traces ()
 Function Traces() More...
 
virtual LOGGERLogger () override
 

Returns the logger object, allowing to dump geometry to a file.

More...
 
void SetMode (int aDragMode)
 
- Public Member Functions inherited from PNS::ALGO_BASE
 ALGO_BASE (ROUTER *aRouter)
 
ROUTERRouter () const
 

Returns the instance of our router


 
ROUTING_SETTINGSSettings () const
 

Returns current router settings


 
void SetDebugDecorator (DEBUG_DECORATOR *aDecorator)
 Function SetDebugDecorator. More...
 
DEBUG_DECORATORDbg () const
 
 ALGO_BASE (ROUTER *aRouter)
 
ROUTERRouter () const
 

Returns the instance of our router


 
ROUTING_SETTINGSSettings () const
 

Returns current router settings


 
void SetDebugDecorator (DEBUG_DECORATOR *aDecorator)
 Function SetDebugDecorator. More...
 
DEBUG_DECORATORDbg () const
 

Detailed Description

Class DRAGGER.

Via, segment and corner dragging algorithm.

Member Function Documentation

◆ CurrentNode() [1/2]

NODE * PNS::DRAGGER::CurrentNode ( ) const

Function CurrentNode()

Returns the most recent world state, including all items changed due to dragging operation.

◆ CurrentNode() [2/2]

NODE* PNS::DRAGGER::CurrentNode ( ) const

Function CurrentNode()

Returns the most recent world state, including all items changed due to dragging operation.

◆ Drag() [1/2]

bool PNS::DRAGGER::Drag ( const VECTOR2I aP)

Function Drag()

Drags the current segment/corner/via to the point aP.

Returns
true, if dragging finished with success.

◆ Drag() [2/2]

bool PNS::DRAGGER::Drag ( const VECTOR2I aP)

Function Drag()

Drags the current segment/corner/via to the point aP.

Returns
true, if dragging finished with success.

◆ FixRoute() [1/2]

bool PNS::DRAGGER::FixRoute ( )

Function FixRoute()

Checks if the result of current dragging operation is correct and eventually commits it to the world.

Returns
true, if dragging finished with success.

◆ FixRoute() [2/2]

bool PNS::DRAGGER::FixRoute ( )

Function FixRoute()

Checks if the result of current dragging operation is correct and eventually commits it to the world.

Returns
true, if dragging finished with success.

◆ Logger() [1/2]

LOGGER * PNS::DRAGGER::Logger ( )
overridevirtual

Returns the logger object, allowing to dump geometry to a file.

Reimplemented from PNS::ALGO_BASE.

◆ Logger() [2/2]

virtual LOGGER* PNS::DRAGGER::Logger ( )
overridevirtual

Returns the logger object, allowing to dump geometry to a file.

Reimplemented from PNS::ALGO_BASE.

◆ SetWorld() [1/2]

void PNS::DRAGGER::SetWorld ( NODE aWorld)

Function SetWorld()

Sets the board to work on.

◆ SetWorld() [2/2]

void PNS::DRAGGER::SetWorld ( NODE aWorld)

Function SetWorld()

Sets the board to work on.

◆ Start() [1/2]

bool PNS::DRAGGER::Start ( const VECTOR2I aP,
ITEM aStartItem 
)

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.

◆ Start() [2/2]

bool PNS::DRAGGER::Start ( const VECTOR2I aP,
ITEM aStartItem 
)

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.

◆ Traces() [1/2]

const ITEM_SET PNS::DRAGGER::Traces ( )

Function Traces()

Returns the set of dragged items.

◆ Traces() [2/2]

const ITEM_SET PNS::DRAGGER::Traces ( )

Function Traces()

Returns the set of dragged items.


The documentation for this class was generated from the following files: