28 #include <wx/tokenzr.h> 58 #include <wx/treelist.h> 75 bool Load(
const std::string& logName,
const std::string boardName );
81 for(
auto item :
m_board->AllConnectedItems() )
83 if( item->m_Uuid == evt.
uuid )
161 if(parent->m_visible)
220 virtual void Message(
const wxString& msg,
221 const SRC_LOCATION_INFO& aSrcLoc = SRC_LOCATION_INFO() )
override;
222 virtual void NewStage(
const std::string&
name,
int iter,
223 const SRC_LOCATION_INFO& aSrcLoc = SRC_LOCATION_INFO() )
override;
225 const SRC_LOCATION_INFO& aSrcLoc = SRC_LOCATION_INFO() )
override;
226 virtual void EndGroup(
const SRC_LOCATION_INFO& aSrcLoc = SRC_LOCATION_INFO() )
override;
228 const std::string& aName,
229 const SRC_LOCATION_INFO& aSrcLoc = SRC_LOCATION_INFO() )
override;
231 int aWidth,
const std::string& aName,
232 const SRC_LOCATION_INFO& aSrcLoc = SRC_LOCATION_INFO() )
override;
234 const std::string& aName,
235 const SRC_LOCATION_INFO& aSrcLoc = SRC_LOCATION_INFO() )
override;
237 const std::string& aName,
238 const SRC_LOCATION_INFO& aSrcLoc = SRC_LOCATION_INFO() )
override;
275 std::unique_ptr<PNS_KICAD_IFACE_BASE>
m_iface;
bool Load(const std::string &logName, const std::string boardName)
Base class for PNS router board items.
Contain all persistent settings of the router, such as the mode, optimization effort,...
STAGE * GetStage(int index)
DEBUG_ENT(DEBUG_ENT *aParent=nullptr)
DEBUG_ENT * m_activeEntry
std::unique_ptr< PNS::ROUTING_SETTINGS > m_routerSettings
std::shared_ptr< BOARD > m_board
void addEntry(DEBUG_ENT *ent)
std::vector< SHAPE * > m_shapes
void SetBoard(std::shared_ptr< BOARD > brd)
std::vector< EVENT_ENTRY > & Events()
PNS_TEST_DEBUG_DECORATOR * GetDebugDecorator()
std::vector< STAGE * > m_stages
std::shared_ptr< BOARD > GetBoard() const
BOARD_CONNECTED_ITEM * ItemById(const EVENT_ENTRY &evt)
PNS::ROUTING_SETTINGS * GetRoutingSettings() const
A base class derived from BOARD_ITEM for items that can be connected and have a net,...
void SetDebugEnabled(bool aEnabled)
std::vector< EVENT_ENTRY > m_events
virtual void NewStage(const std::string &name, int iter, const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override
std::unique_ptr< PNS_KICAD_IFACE_BASE > m_iface
int GetStageCount() const
void AddChild(DEBUG_ENT *ent)
std::shared_ptr< BOARD > m_board
void SetMode(PNS::ROUTER_MODE mode)
PNS::LOGGER::EVENT_TYPE type
static const COLOR4D WHITE
virtual void AddBox(const BOX2I &aB, const KIGFX::COLOR4D &aColor, const std::string &aName, const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override
virtual ~PNS_TEST_DEBUG_DECORATOR()
BOX2I GetStageExtents(int stage) const
std::vector< DEBUG_ENT * > m_children
std::unique_ptr< PNS::ROUTER > m_router
virtual void AddSegment(const SEG &aS, const KIGFX::COLOR4D &aColor, const std::string &aName, const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override
PNS_TEST_DEBUG_DECORATOR m_debugDecorator
void IterateTree(std::function< bool(DEBUG_ENT *)> visitor, int depth=0)
PNS::DEBUG_DECORATOR::SRC_LOCATION_INFO m_srcLoc
virtual void Message(const wxString &msg, const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override
virtual void AddPoint(const VECTOR2I &aP, const KIGFX::COLOR4D &aColor, int aSize, const std::string &aName, const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override
virtual void BeginGroup(const std::string &name, const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
virtual void EndGroup(const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override
virtual void SetIteration(int iter) override
Pcbnew s-expression file format parser definition.
virtual void AddLine(const SHAPE_LINE_CHAIN &aLine, const KIGFX::COLOR4D &aColor, int aWidth, const std::string &aName, const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override
PNS_TEST_DEBUG_DECORATOR()
void ReplayLog(PNS_LOG_FILE *aLog, int aStartEventIndex=0, int aFrom=0, int aTo=-1)
A color representation with 4 components: red, green, blue, alpha.