KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PNS_TEST_DEBUG_DECORATOR Class Reference

#include <pns_test_debug_decorator.h>

Inheritance diagram for PNS_TEST_DEBUG_DECORATOR:
PNS::DEBUG_DECORATOR

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_STAGEGetStage (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_STAGEcurrentStage ()
 

Private Attributes

bool m_grouping
 
PNS_DEBUG_SHAPEm_activeEntry
 
int m_iter
 
std::vector< PNS_DEBUG_STAGE * > m_stages
 
REPORTERm_reporter
 
bool m_debugEnabled
 

Detailed Description

Definition at line 72 of file pns_test_debug_decorator.h.

Constructor & Destructor Documentation

◆ PNS_TEST_DEBUG_DECORATOR()

PNS_TEST_DEBUG_DECORATOR::PNS_TEST_DEBUG_DECORATOR ( REPORTER aReporter)

◆ ~PNS_TEST_DEBUG_DECORATOR()

PNS_TEST_DEBUG_DECORATOR::~PNS_TEST_DEBUG_DECORATOR ( )
virtual

Definition at line 125 of file pns_test_debug_decorator.cpp.

References m_stages.

Member Function Documentation

◆ addEntry()

void PNS_TEST_DEBUG_DECORATOR::addEntry ( PNS_DEBUG_SHAPE ent)
private

◆ AddItem()

void PNS_TEST_DEBUG_DECORATOR::AddItem ( const PNS::ITEM aItem,
const KIGFX::COLOR4D aColor,
int  aOverrideWidth = 0,
const wxString &  aName = wxT( "" ),
const SRC_LOCATION_INFO aSrcLoc = SRC_LOCATION_INFO() 
)
overridevirtual

◆ AddPoint()

void PNS_TEST_DEBUG_DECORATOR::AddPoint ( const VECTOR2I aP,
const KIGFX::COLOR4D aColor,
int  aSize,
const wxString &  aName = wxT( "" ),
const SRC_LOCATION_INFO aSrcLoc = SRC_LOCATION_INFO() 
)
overridevirtual

◆ AddShape() [1/3]

virtual void PNS::DEBUG_DECORATOR::AddShape ( const BOX2I aBox,
const KIGFX::COLOR4D aColor,
int  aOverrideWidth = 0,
const wxString &  aName = wxT( "" ),
const SRC_LOCATION_INFO aSrcLoc = SRC_LOCATION_INFO() 
)
inlinevirtualinherited

Reimplemented in PNS_PCBNEW_DEBUG_DECORATOR.

Definition at line 91 of file pns_debug_decorator.h.

References PNS::DEBUG_DECORATOR::AddShape().

◆ AddShape() [2/3]

void PNS::DEBUG_DECORATOR::AddShape ( const SEG aSeg,
const KIGFX::COLOR4D aColor,
int  aOverrideWidth = 0,
const wxString &  aName = wxT( "" ),
const SRC_LOCATION_INFO aSrcLoc = SRC_LOCATION_INFO() 
)
inlineinherited

◆ AddShape() [3/3]

void PNS_TEST_DEBUG_DECORATOR::AddShape ( const SHAPE aShape,
const KIGFX::COLOR4D aColor,
int  aOverrideWidth = 0,
const wxString &  aName = wxT( "" ),
const SRC_LOCATION_INFO aSrcLoc = SRC_LOCATION_INFO() 
)
overridevirtual

◆ BeginGroup()

void PNS_TEST_DEBUG_DECORATOR::BeginGroup ( const wxString &  name,
int  aLevel = 0,
const SRC_LOCATION_INFO aSrcLoc = SRC_LOCATION_INFO() 
)
overridevirtual

◆ Clear()

virtual void PNS_TEST_DEBUG_DECORATOR::Clear ( )
inlineoverridevirtual

Reimplemented from PNS::DEBUG_DECORATOR.

Definition at line 100 of file pns_test_debug_decorator.h.

Referenced by PNS_LOG_PLAYER::createRouter().

◆ currentStage()

PNS_DEBUG_STAGE * PNS_TEST_DEBUG_DECORATOR::currentStage ( )
private

Definition at line 133 of file pns_test_debug_decorator.cpp.

References m_stages.

Referenced by addEntry(), and BeginGroup().

◆ EndGroup()

void PNS_TEST_DEBUG_DECORATOR::EndGroup ( const SRC_LOCATION_INFO aSrcLoc = SRC_LOCATION_INFO())
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().

◆ GetStage()

PNS_DEBUG_STAGE * PNS_TEST_DEBUG_DECORATOR::GetStage ( int  index)
inline

Definition at line 104 of file pns_test_debug_decorator.h.

References m_stages.

Referenced by PNS_LOG_VIEWER_FRAME::getCurrentStage().

◆ GetStageCount()

int PNS_TEST_DEBUG_DECORATOR::GetStageCount ( ) const
inline

◆ GetStageExtents()

BOX2I PNS_TEST_DEBUG_DECORATOR::GetStageExtents ( int  stage) const

Definition at line 283 of file pns_test_debug_decorator.cpp.

References SHAPE::BBox(), m_stages, and BOX2< Vec >::Merge().

◆ IsDebugEnabled()

bool PNS::DEBUG_DECORATOR::IsDebugEnabled ( ) const
inlineinherited

Definition at line 62 of file pns_debug_decorator.h.

References PNS::DEBUG_DECORATOR::m_debugEnabled.

◆ Message()

void PNS_TEST_DEBUG_DECORATOR::Message ( const wxString &  msg,
const SRC_LOCATION_INFO aSrcLoc = SRC_LOCATION_INFO() 
)
overridevirtual

◆ NewStage()

void PNS_TEST_DEBUG_DECORATOR::NewStage ( const wxString &  name,
int  iter,
const SRC_LOCATION_INFO aSrcLoc = SRC_LOCATION_INFO() 
)
overridevirtual

◆ SetCurrentStageStatus()

void PNS_TEST_DEBUG_DECORATOR::SetCurrentStageStatus ( bool  stat)

Definition at line 274 of file pns_test_debug_decorator.cpp.

References m_stages.

Referenced by PNS_LOG_PLAYER::ReplayLog().

◆ SetDebugEnabled()

void PNS::DEBUG_DECORATOR::SetDebugEnabled ( bool  aEnabled)
inlineinherited

◆ SetIteration()

virtual void PNS_TEST_DEBUG_DECORATOR::SetIteration ( int  iter)
inlineoverridevirtual

Reimplemented from PNS::DEBUG_DECORATOR.

Definition at line 78 of file pns_test_debug_decorator.h.

References m_iter.

Member Data Documentation

◆ m_activeEntry

PNS_DEBUG_SHAPE* PNS_TEST_DEBUG_DECORATOR::m_activeEntry
private

◆ m_debugEnabled

bool PNS::DEBUG_DECORATOR::m_debugEnabled
privateinherited

◆ m_grouping

bool PNS_TEST_DEBUG_DECORATOR::m_grouping
private

Definition at line 114 of file pns_test_debug_decorator.h.

Referenced by BeginGroup(), EndGroup(), and PNS_TEST_DEBUG_DECORATOR().

◆ m_iter

int PNS_TEST_DEBUG_DECORATOR::m_iter
private

◆ m_reporter

REPORTER* PNS_TEST_DEBUG_DECORATOR::m_reporter
private

Definition at line 119 of file pns_test_debug_decorator.h.

Referenced by Message().

◆ m_stages

std::vector<PNS_DEBUG_STAGE*> PNS_TEST_DEBUG_DECORATOR::m_stages
private

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