KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PNS_PCBNEW_DEBUG_DECORATOR Class Reference
Inheritance diagram for PNS_PCBNEW_DEBUG_DECORATOR:
PNS::DEBUG_DECORATOR

Public Member Functions

 PNS_PCBNEW_DEBUG_DECORATOR (PNS::ROUTER_IFACE *aIface)
 
 ~PNS_PCBNEW_DEBUG_DECORATOR ()
 
void SetView (KIGFX::VIEW *aView)
 
void AddPoint (const VECTOR2I &aP, const KIGFX::COLOR4D &aColor, int aSize, const wxString &aName=wxT(""), const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override
 
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
 
void AddShape (const BOX2I &aBox, const KIGFX::COLOR4D &aColor, int aOverrideWidth=0, const wxString &aName=wxT(""), const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override
 
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
 
void Clear () override
 
virtual void Message (const wxString &msg, const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO()) override
 
void SetDebugEnabled (bool aEnabled)
 
bool IsDebugEnabled () const
 
virtual void SetIteration (int iter)
 
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())
 
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

double nextDepth ()
 

Private Attributes

PNS::ROUTER_IFACEm_iface
 
KIGFX::VIEWm_view
 
KIGFX::VIEW_GROUPm_items
 
double m_depth
 
bool m_debugEnabled
 

Detailed Description

Definition at line 942 of file pns_kicad_iface.cpp.

Constructor & Destructor Documentation

◆ PNS_PCBNEW_DEBUG_DECORATOR()

PNS_PCBNEW_DEBUG_DECORATOR::PNS_PCBNEW_DEBUG_DECORATOR ( PNS::ROUTER_IFACE aIface)
inline

Definition at line 945 of file pns_kicad_iface.cpp.

◆ ~PNS_PCBNEW_DEBUG_DECORATOR()

PNS_PCBNEW_DEBUG_DECORATOR::~PNS_PCBNEW_DEBUG_DECORATOR ( )
inline

Definition at line 953 of file pns_kicad_iface.cpp.

References Clear(), and m_items.

Member Function Documentation

◆ AddItem()

void PNS_PCBNEW_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() 
)
inlineoverridevirtual

◆ AddPoint()

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

◆ AddShape() [1/3]

void PNS_PCBNEW_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() 
)
inlineoverridevirtual

◆ 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_PCBNEW_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() 
)
inlineoverridevirtual

◆ BeginGroup()

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

Reimplemented in PNS_TEST_DEBUG_DECORATOR.

Definition at line 72 of file pns_debug_decorator.h.

◆ Clear()

void PNS_PCBNEW_DEBUG_DECORATOR::Clear ( )
inlineoverridevirtual

◆ EndGroup()

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

Reimplemented in PNS_TEST_DEBUG_DECORATOR.

Definition at line 75 of file pns_debug_decorator.h.

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

virtual void PNS_PCBNEW_DEBUG_DECORATOR::Message ( const wxString &  msg,
const SRC_LOCATION_INFO aSrcLoc = SRC_LOCATION_INFO() 
)
inlineoverridevirtual

Reimplemented from PNS::DEBUG_DECORATOR.

Definition at line 1060 of file pns_kicad_iface.cpp.

◆ NewStage()

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

Reimplemented in PNS_TEST_DEBUG_DECORATOR.

Definition at line 69 of file pns_debug_decorator.h.

◆ nextDepth()

double PNS_PCBNEW_DEBUG_DECORATOR::nextDepth ( )
inlineprivate

Definition at line 1067 of file pns_kicad_iface.cpp.

References KIGFX::VIEW::GetGAL(), KIGFX::GAL::GetMinDepth(), m_depth, and m_view.

Referenced by AddItem(), and AddShape().

◆ SetDebugEnabled()

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

◆ SetIteration()

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

Reimplemented in PNS_TEST_DEBUG_DECORATOR.

Definition at line 64 of file pns_debug_decorator.h.

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

◆ SetView()

void PNS_PCBNEW_DEBUG_DECORATOR::SetView ( KIGFX::VIEW aView)
inline

Member Data Documentation

◆ m_debugEnabled

bool PNS::DEBUG_DECORATOR::m_debugEnabled
privateinherited

◆ m_depth

double PNS_PCBNEW_DEBUG_DECORATOR::m_depth
private

Definition at line 1083 of file pns_kicad_iface.cpp.

Referenced by Clear(), nextDepth(), and SetView().

◆ m_iface

PNS::ROUTER_IFACE* PNS_PCBNEW_DEBUG_DECORATOR::m_iface
private

Definition at line 1079 of file pns_kicad_iface.cpp.

Referenced by AddItem(), and AddShape().

◆ m_items

KIGFX::VIEW_GROUP* PNS_PCBNEW_DEBUG_DECORATOR::m_items
private

Definition at line 1081 of file pns_kicad_iface.cpp.

Referenced by AddItem(), AddShape(), Clear(), SetView(), and ~PNS_PCBNEW_DEBUG_DECORATOR().

◆ m_view

KIGFX::VIEW* PNS_PCBNEW_DEBUG_DECORATOR::m_view
private

Definition at line 1080 of file pns_kicad_iface.cpp.

Referenced by AddItem(), AddShape(), Clear(), nextDepth(), and SetView().


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