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 952 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

◆ ~PNS_PCBNEW_DEBUG_DECORATOR()

PNS_PCBNEW_DEBUG_DECORATOR::~PNS_PCBNEW_DEBUG_DECORATOR ( )
inline

Definition at line 963 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::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

Definition at line 99 of file pns_debug_decorator.h.

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

◆ AddShape() [2/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() [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.

References name.

◆ Clear()

void PNS_PCBNEW_DEBUG_DECORATOR::Clear ( )
inlineoverridevirtual

Reimplemented from PNS::DEBUG_DECORATOR.

Definition at line 1058 of file pns_kicad_iface.cpp.

References m_depth, m_items, and m_view.

Referenced by SetView(), and ~PNS_PCBNEW_DEBUG_DECORATOR().

◆ 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 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 1070 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.

References name.

◆ nextDepth()

double PNS_PCBNEW_DEBUG_DECORATOR::nextDepth ( )
inlineprivate

Definition at line 1077 of file pns_kicad_iface.cpp.

References m_depth, and m_view.

Referenced by AddItem(), and AddShape().

◆ SetDebugEnabled()

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

Definition at line 61 of file pns_debug_decorator.h.

References m_debugEnabled.

Referenced by PNS_TEST_DEBUG_DECORATOR::PNS_TEST_DEBUG_DECORATOR().

◆ 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

Definition at line 969 of file pns_kicad_iface.cpp.

References Clear(), LAYER_SELECT_OVERLAY, m_depth, m_items, and m_view.

Member Data Documentation

◆ m_debugEnabled

bool PNS::DEBUG_DECORATOR::m_debugEnabled
privateinherited

Definition at line 114 of file pns_debug_decorator.h.

Referenced by DEBUG_DECORATOR(), IsDebugEnabled(), and SetDebugEnabled().

◆ m_depth

double PNS_PCBNEW_DEBUG_DECORATOR::m_depth
private

Definition at line 1093 of file pns_kicad_iface.cpp.

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

◆ m_iface

PNS::ROUTER_IFACE* PNS_PCBNEW_DEBUG_DECORATOR::m_iface
private

Definition at line 1089 of file pns_kicad_iface.cpp.

Referenced by AddItem(), AddShape(), and PNS_PCBNEW_DEBUG_DECORATOR().

◆ m_items

KIGFX::VIEW_GROUP* PNS_PCBNEW_DEBUG_DECORATOR::m_items
private

◆ m_view

KIGFX::VIEW* PNS_PCBNEW_DEBUG_DECORATOR::m_view
private

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