KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PNS::DEBUG_DECORATOR Class Reference

#include <pns_debug_decorator.h>

Inheritance diagram for PNS::DEBUG_DECORATOR:
PNS_PCBNEW_DEBUG_DECORATOR PNS_TEST_DEBUG_DECORATOR

Classes

struct  SRC_LOCATION_INFO
 

Public Member Functions

 DEBUG_DECORATOR ()
 
virtual ~DEBUG_DECORATOR ()
 
void SetDebugEnabled (bool aEnabled)
 
bool IsDebugEnabled () const
 
virtual void SetIteration (int iter)
 
virtual void Message (const wxString &msg, const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO())
 
virtual void NewStage (const wxString &name, int iter, const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO())
 
virtual void BeginGroup (const wxString &name, int aLevel=0, const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO())
 
virtual void EndGroup (const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO())
 
virtual void AddPoint (const VECTOR2I &aP, const KIGFX::COLOR4D &aColor, int aSize, const wxString &aName=wxT(""), const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO())
 
virtual void AddItem (const ITEM *aItem, const KIGFX::COLOR4D &aColor, int aOverrideWidth=0, const wxString &aName=wxT(""), const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO())
 
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())
 
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())
 
virtual void Clear ()
 

Private Attributes

bool m_debugEnabled
 

Detailed Description

Definition at line 37 of file pns_debug_decorator.h.

Constructor & Destructor Documentation

◆ DEBUG_DECORATOR()

PNS::DEBUG_DECORATOR::DEBUG_DECORATOR ( )
inline

Definition at line 40 of file pns_debug_decorator.h.

◆ ~DEBUG_DECORATOR()

virtual PNS::DEBUG_DECORATOR::~DEBUG_DECORATOR ( )
inlinevirtual

Definition at line 59 of file pns_debug_decorator.h.

Member Function Documentation

◆ AddItem()

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

Reimplemented in PNS_PCBNEW_DEBUG_DECORATOR, and PNS_TEST_DEBUG_DECORATOR.

Definition at line 81 of file pns_debug_decorator.h.

◆ AddPoint()

virtual void PNS::DEBUG_DECORATOR::AddPoint ( const VECTOR2I aP,
const KIGFX::COLOR4D aColor,
int  aSize,
const wxString &  aName = wxT( "" ),
const SRC_LOCATION_INFO aSrcLoc = SRC_LOCATION_INFO() 
)
inlinevirtual

Reimplemented in PNS_PCBNEW_DEBUG_DECORATOR, and PNS_TEST_DEBUG_DECORATOR.

Definition at line 77 of file pns_debug_decorator.h.

◆ 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() 
)
inlinevirtual

Reimplemented in PNS_PCBNEW_DEBUG_DECORATOR.

Definition at line 91 of file pns_debug_decorator.h.

References 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() 
)
inline

Definition at line 99 of file pns_debug_decorator.h.

References SEG::A, AddShape(), SHAPE_LINE_CHAIN::Append(), and SEG::B.

◆ AddShape() [3/3]

virtual void PNS::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() 
)
inlinevirtual

Reimplemented in PNS_PCBNEW_DEBUG_DECORATOR, and PNS_TEST_DEBUG_DECORATOR.

Definition at line 86 of file pns_debug_decorator.h.

Referenced by AddShape().

◆ BeginGroup()

virtual void PNS::DEBUG_DECORATOR::BeginGroup ( const wxString &  name,
int  aLevel = 0,
const SRC_LOCATION_INFO aSrcLoc = SRC_LOCATION_INFO() 
)
inlinevirtual

Reimplemented in PNS_TEST_DEBUG_DECORATOR.

Definition at line 72 of file pns_debug_decorator.h.

◆ Clear()

virtual void PNS::DEBUG_DECORATOR::Clear ( )
inlinevirtual

Reimplemented in PNS_PCBNEW_DEBUG_DECORATOR, and PNS_TEST_DEBUG_DECORATOR.

Definition at line 110 of file pns_debug_decorator.h.

Referenced by PNS_KICAD_IFACE::EraseView().

◆ EndGroup()

virtual void PNS::DEBUG_DECORATOR::EndGroup ( const SRC_LOCATION_INFO aSrcLoc = SRC_LOCATION_INFO())
inlinevirtual

Reimplemented in PNS_TEST_DEBUG_DECORATOR.

Definition at line 75 of file pns_debug_decorator.h.

◆ IsDebugEnabled()

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

Definition at line 62 of file pns_debug_decorator.h.

References m_debugEnabled.

◆ Message()

virtual void PNS::DEBUG_DECORATOR::Message ( const wxString &  msg,
const SRC_LOCATION_INFO aSrcLoc = SRC_LOCATION_INFO() 
)
inlinevirtual

Reimplemented in PNS_TEST_DEBUG_DECORATOR.

Definition at line 66 of file pns_debug_decorator.h.

◆ NewStage()

virtual void PNS::DEBUG_DECORATOR::NewStage ( const wxString &  name,
int  iter,
const SRC_LOCATION_INFO aSrcLoc = SRC_LOCATION_INFO() 
)
inlinevirtual

Reimplemented in PNS_TEST_DEBUG_DECORATOR.

Definition at line 69 of file pns_debug_decorator.h.

◆ SetDebugEnabled()

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

◆ SetIteration()

virtual void PNS::DEBUG_DECORATOR::SetIteration ( int  iter)
inlinevirtual

Reimplemented in PNS_TEST_DEBUG_DECORATOR.

Definition at line 64 of file pns_debug_decorator.h.

Referenced by PNS::SHOVE::shoveIteration().

Member Data Documentation

◆ m_debugEnabled

bool PNS::DEBUG_DECORATOR::m_debugEnabled
private

Definition at line 114 of file pns_debug_decorator.h.

Referenced by IsDebugEnabled(), and SetDebugEnabled().


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