Horizon
Loading...
Searching...
No Matches
PNS::WALKAROUND Class Reference
Inheritance diagram for PNS::WALKAROUND:
PNS::ALGO_BASE

Classes

struct  RESULT

Public Types

enum  WALKAROUND_STATUS { IN_PROGRESS = 0 , ALMOST_DONE , DONE , STUCK }

Public Member Functions

 WALKAROUND (NODE *aWorld, ROUTER *aRouter)
void SetWorld (NODE *aNode)
void SetIterationLimit (const int aIterLimit)
void SetSolidsOnly (bool aSolidsOnly)
void SetItemMask (int aMask)
void SetSingleDirection (bool aForceSingleDirection)
void SetSingleDirection2 (bool aForceSingleDirection)
void SetApproachCursor (bool aEnabled, const VECTOR2I &aPos)
void SetForceWinding (bool aEnabled, bool aCw)
void RestrictToSet (bool aEnabled, const std::set< ITEM * > &aSet)
WALKAROUND_STATUS Route (const LINE &aInitialPath, LINE &aWalkPath, bool aOptimize=true)
const RESULT Route (const LINE &aInitialPath)
Public Member Functions inherited from PNS::ALGO_BASE
 ALGO_BASE (ROUTER *aRouter)
virtual ~ALGO_BASE ()
 Return the instance of our router.
ROUTERRouter () const
 Return current router settings.
ROUTING_SETTINGSSettings () const
 Return the logger object, allowing to dump geometry to a file.
virtual LOGGERLogger ()
void SetLogger (LOGGER *aLogger)
void SetDebugDecorator (DEBUG_DECORATOR *aDecorator)
 Assign a debug decorator allowing this algo to draw extra graphics for visual debugging.
DEBUG_DECORATORDbg () const
const BOX2I & VisibleViewArea () const

Additional Inherited Members

Protected Attributes inherited from PNS::ALGO_BASE
DEBUG_DECORATORm_debugDecorator
ROUTERm_router
LOGGERm_logger

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