22#ifndef __PNS_DEBUG_DECORATOR_H
23#define __PNS_DEBUG_DECORATOR_H
66 virtual void Message(
const wxString& msg,
78 const wxString& aName = wxT(
"" ),
82 int aOverrideWidth = 0,
83 const wxString& aName = wxT(
"" ),
87 int aOverrideWidth = 0,
88 const wxString& aName = wxT(
"" ),
92 const wxString& aName = wxT(
"" ),
96 AddShape( &r, aColor, aOverrideWidth, aName, aSrcLoc );
100 int aOverrideWidth = 0,
101 const wxString& aName = wxT(
"" ),
107 AddShape( &lc, aColor, aOverrideWidth, aName, aSrcLoc );
124#define PNS_SILENCE_DEBUG 0
126#define PNS_DBG( dbg, method, ... ) \
127 if( dbg && dbg->IsDebugEnabled() && (!PNS_SILENCE_DEBUG) ) \
128 dbg->method( __VA_ARGS__, PNS::DEBUG_DECORATOR::SRC_LOCATION_INFO( __FILE__, __FUNCTION__, \
131#define PNS_DBGN( dbg, method ) \
132 if( dbg && dbg->IsDebugEnabled() && (!PNS_SILENCE_DEBUG) ) \
133 dbg->method( PNS::DEBUG_DECORATOR::SRC_LOCATION_INFO( __FILE__, __FUNCTION__, __LINE__ ) );
A color representation with 4 components: red, green, blue, alpha.
virtual void BeginGroup(const wxString &name, int aLevel=0, const SRC_LOCATION_INFO &aSrcLoc=SRC_LOCATION_INFO())
virtual ~DEBUG_DECORATOR()
virtual void NewStage(const wxString &name, int iter, 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())
void SetDebugEnabled(bool aEnabled)
virtual void SetIteration(int iter)
virtual void EndGroup(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 Message(const wxString &msg, 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())
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())
Base class for PNS router board items.
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
void Append(int aX, int aY, bool aAllowDuplication=false)
Append a new point at the end of the line chain.
An abstract shape on 2D plane.
Push and Shove diff pair dimensions (gap) settings dialog.
SRC_LOCATION_INFO(const std::string &aFileName="", const std::string &aFuncName="", int aLine=0)