KiCad PCB EDA Suite
|
#include <pns_test_debug_decorator.h>
Public Member Functions | |
PNS_TEST_DEBUG_DECORATOR (REPORTER *aReporter) | |
virtual | ~PNS_TEST_DEBUG_DECORATOR () |
virtual void | SetIteration (int iter) override |
virtual void | Message (const wxString &msg, const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override |
virtual void | NewStage (const wxString &name, int iter, const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override |
virtual void | BeginGroup (const wxString &name, int aLevel=0, const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override |
virtual void | EndGroup (const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override |
virtual void | AddPoint (const VECTOR2I &aP, const KIGFX::COLOR4D &aColor, int aSize, const wxString &aName=wxT(""), const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override |
virtual void | AddItem (const PNS::ITEM *aItem, const KIGFX::COLOR4D &aColor, int aOverrideWidth=0, const wxString &aName=wxT(""), const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override |
virtual void | AddShape (const SHAPE *aShape, const KIGFX::COLOR4D &aColor, int aOverrideWidth=0, const wxString &aName=wxT(""), const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override |
virtual void | Clear () override |
int | GetStageCount () const |
PNS_DEBUG_STAGE * | GetStage (int index) |
BOX2I | GetStageExtents (int stage) const |
void | SetCurrentStageStatus (bool stat) |
void | SetDebugEnabled (bool aEnabled) |
bool | IsDebugEnabled () const |
virtual void | AddShape (const BOX2I &aBox, const KIGFX::COLOR4D &aColor, int aOverrideWidth=0, const wxString &aName=wxT(""), const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) |
void | AddShape (const SEG &aSeg, const KIGFX::COLOR4D &aColor, int aOverrideWidth=0, const wxString &aName=wxT(""), const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) |
Private Member Functions | |
void | addEntry (PNS_DEBUG_SHAPE *ent) |
PNS_DEBUG_STAGE * | currentStage () |
Private Attributes | |
bool | m_grouping |
PNS_DEBUG_SHAPE * | m_activeEntry |
int | m_iter |
std::vector< PNS_DEBUG_STAGE * > | m_stages |
REPORTER * | m_reporter |
bool | m_debugEnabled |
Definition at line 72 of file pns_test_debug_decorator.h.
PNS_TEST_DEBUG_DECORATOR::PNS_TEST_DEBUG_DECORATOR | ( | REPORTER * | aReporter | ) |
Definition at line 115 of file pns_test_debug_decorator.cpp.
References m_activeEntry, m_grouping, m_iter, and PNS::DEBUG_DECORATOR::SetDebugEnabled().
|
virtual |
Definition at line 125 of file pns_test_debug_decorator.cpp.
References m_stages.
|
private |
Definition at line 172 of file pns_test_debug_decorator.cpp.
References PNS_DEBUG_SHAPE::AddChild(), currentStage(), and m_activeEntry.
Referenced by AddItem(), AddPoint(), AddShape(), and Message().
|
overridevirtual |
Reimplemented from PNS::DEBUG_DECORATOR.
Definition at line 205 of file pns_test_debug_decorator.cpp.
References addEntry(), SHAPE::Clone(), PNS_DEBUG_SHAPE::m_color, PNS_DEBUG_SHAPE::m_iter, m_iter, PNS_DEBUG_SHAPE::m_name, PNS_DEBUG_SHAPE::m_shapes, PNS_DEBUG_SHAPE::m_srcLoc, PNS_DEBUG_SHAPE::m_width, and PNS::ITEM::Shape().
Referenced by PNS_LOG_PLAYER::ReplayLog().
|
overridevirtual |
Reimplemented from PNS::DEBUG_DECORATOR.
Definition at line 179 of file pns_test_debug_decorator.cpp.
References addEntry(), SHAPE_LINE_CHAIN::Append(), PNS_DEBUG_SHAPE::m_color, PNS_DEBUG_SHAPE::m_hasLabels, PNS_DEBUG_SHAPE::m_iter, m_iter, PNS_DEBUG_SHAPE::m_name, PNS_DEBUG_SHAPE::m_shapes, PNS_DEBUG_SHAPE::m_srcLoc, PNS_DEBUG_SHAPE::m_width, VECTOR2< T >::x, and VECTOR2< T >::y.
|
inlinevirtualinherited |
Reimplemented in PNS_PCBNEW_DEBUG_DECORATOR.
Definition at line 91 of file pns_debug_decorator.h.
References PNS::DEBUG_DECORATOR::AddShape().
|
inlineinherited |
Definition at line 99 of file pns_debug_decorator.h.
References SEG::A, PNS::DEBUG_DECORATOR::AddShape(), SHAPE_LINE_CHAIN::Append(), and SEG::B.
|
overridevirtual |
Reimplemented from PNS::DEBUG_DECORATOR.
Definition at line 223 of file pns_test_debug_decorator.cpp.
References addEntry(), SHAPE::Clone(), PNS_DEBUG_SHAPE::m_color, PNS_DEBUG_SHAPE::m_iter, m_iter, PNS_DEBUG_SHAPE::m_name, PNS_DEBUG_SHAPE::m_shapes, PNS_DEBUG_SHAPE::m_srcLoc, and PNS_DEBUG_SHAPE::m_width.
|
overridevirtual |
Reimplemented from PNS::DEBUG_DECORATOR.
Definition at line 142 of file pns_test_debug_decorator.cpp.
References PNS_DEBUG_SHAPE::AddChild(), currentStage(), m_activeEntry, m_grouping, PNS_DEBUG_SHAPE::m_iter, m_iter, PNS_DEBUG_SHAPE::m_level, PNS_DEBUG_SHAPE::m_name, and name.
Referenced by PNS_LOG_PLAYER::ReplayLog().
|
inlineoverridevirtual |
Reimplemented from PNS::DEBUG_DECORATOR.
Definition at line 100 of file pns_test_debug_decorator.h.
Referenced by PNS_LOG_PLAYER::createRouter().
|
private |
Definition at line 133 of file pns_test_debug_decorator.cpp.
References m_stages.
Referenced by addEntry(), and BeginGroup().
|
overridevirtual |
Reimplemented from PNS::DEBUG_DECORATOR.
Definition at line 160 of file pns_test_debug_decorator.cpp.
References m_activeEntry, m_grouping, and PNS_DEBUG_SHAPE::m_parent.
Referenced by PNS_LOG_PLAYER::ReplayLog().
|
inline |
Definition at line 104 of file pns_test_debug_decorator.h.
References m_stages.
Referenced by PNS_LOG_VIEWER_FRAME::getCurrentStage().
|
inline |
Definition at line 102 of file pns_test_debug_decorator.h.
References m_stages.
Referenced by PNS_LOG_VIEWER_FRAME::getCurrentStage(), and PNS_LOG_PLAYER::ReplayLog().
BOX2I PNS_TEST_DEBUG_DECORATOR::GetStageExtents | ( | int | stage | ) | const |
Definition at line 280 of file pns_test_debug_decorator.cpp.
References SHAPE::BBox(), m_stages, and BOX2< Vec >::Merge().
|
inlineinherited |
Definition at line 62 of file pns_debug_decorator.h.
References PNS::DEBUG_DECORATOR::m_debugEnabled.
|
overridevirtual |
Reimplemented from PNS::DEBUG_DECORATOR.
Definition at line 241 of file pns_test_debug_decorator.cpp.
References addEntry(), PNS_DEBUG_SHAPE::m_msg, m_reporter, PNS_DEBUG_SHAPE::m_srcLoc, and REPORTER::Report().
Referenced by PNS_LOG_PLAYER::ReplayLog().
|
overridevirtual |
Reimplemented from PNS::DEBUG_DECORATOR.
Definition at line 260 of file pns_test_debug_decorator.cpp.
References m_activeEntry, PNS_DEBUG_STAGE::m_iter, PNS_DEBUG_STAGE::m_name, m_stages, and name.
Referenced by PNS_LOG_PLAYER::ReplayLog().
void PNS_TEST_DEBUG_DECORATOR::SetCurrentStageStatus | ( | bool | stat | ) |
Definition at line 271 of file pns_test_debug_decorator.cpp.
References m_stages.
Referenced by PNS_LOG_PLAYER::ReplayLog().
|
inlineinherited |
Definition at line 61 of file pns_debug_decorator.h.
References PNS::DEBUG_DECORATOR::m_debugEnabled.
Referenced by PNS_TEST_DEBUG_DECORATOR(), and PNS_KICAD_IFACE::SetView().
|
inlineoverridevirtual |
Reimplemented from PNS::DEBUG_DECORATOR.
Definition at line 78 of file pns_test_debug_decorator.h.
References m_iter.
|
private |
Definition at line 115 of file pns_test_debug_decorator.h.
Referenced by addEntry(), BeginGroup(), EndGroup(), NewStage(), and PNS_TEST_DEBUG_DECORATOR().
|
privateinherited |
Definition at line 114 of file pns_debug_decorator.h.
Referenced by PNS::DEBUG_DECORATOR::IsDebugEnabled(), and PNS::DEBUG_DECORATOR::SetDebugEnabled().
|
private |
Definition at line 114 of file pns_test_debug_decorator.h.
Referenced by BeginGroup(), EndGroup(), and PNS_TEST_DEBUG_DECORATOR().
|
private |
Definition at line 116 of file pns_test_debug_decorator.h.
Referenced by AddItem(), AddPoint(), AddShape(), BeginGroup(), PNS_TEST_DEBUG_DECORATOR(), and SetIteration().
|
private |
Definition at line 119 of file pns_test_debug_decorator.h.
Referenced by Message().
|
private |
Definition at line 117 of file pns_test_debug_decorator.h.
Referenced by currentStage(), GetStage(), GetStageCount(), GetStageExtents(), NewStage(), SetCurrentStageStatus(), and ~PNS_TEST_DEBUG_DECORATOR().