Loading pcbnew/class_drawsegment.cpp +22 −0 Original line number Original line Diff line number Diff line Loading @@ -249,3 +249,25 @@ bool DRAWSEGMENT::HitTest( EDA_Rect& refArea ) return true; return true; return false; return false; } } #if defined(DEBUG) /** * Function Show * is used to output the object tree, currently for debugging only. * @param nestLevel An aid to prettier tree indenting, and is the level * of nesting of this object within the overall tree. * @param os The ostream& to output to. */ void DRAWSEGMENT::Show( int nestLevel, std::ostream& os ) { NestedSpace( nestLevel, os ) << '<' << GetClass().Lower().mb_str() << " layer=\"" << GetLayer() << '"' << " width=\"" << m_Width << '"' << "<start" << m_Start << "/>" << "<end" << m_End << "/>"; os << "</" << GetClass().Lower().mb_str() << ">\n"; } #endif pcbnew/class_drawsegment.h +6 −0 Original line number Original line Diff line number Diff line Loading @@ -85,6 +85,12 @@ public: { { return wxT( "DRAWSEGMENT" ); return wxT( "DRAWSEGMENT" ); } } #if defined(DEBUG) void Show( int nestLevel, std::ostream& os ); #endif }; }; Loading Loading
pcbnew/class_drawsegment.cpp +22 −0 Original line number Original line Diff line number Diff line Loading @@ -249,3 +249,25 @@ bool DRAWSEGMENT::HitTest( EDA_Rect& refArea ) return true; return true; return false; return false; } } #if defined(DEBUG) /** * Function Show * is used to output the object tree, currently for debugging only. * @param nestLevel An aid to prettier tree indenting, and is the level * of nesting of this object within the overall tree. * @param os The ostream& to output to. */ void DRAWSEGMENT::Show( int nestLevel, std::ostream& os ) { NestedSpace( nestLevel, os ) << '<' << GetClass().Lower().mb_str() << " layer=\"" << GetLayer() << '"' << " width=\"" << m_Width << '"' << "<start" << m_Start << "/>" << "<end" << m_End << "/>"; os << "</" << GetClass().Lower().mb_str() << ">\n"; } #endif
pcbnew/class_drawsegment.h +6 −0 Original line number Original line Diff line number Diff line Loading @@ -85,6 +85,12 @@ public: { { return wxT( "DRAWSEGMENT" ); return wxT( "DRAWSEGMENT" ); } } #if defined(DEBUG) void Show( int nestLevel, std::ostream& os ); #endif }; }; Loading