Loading pcbnew/class_board.h +2 −0 Original line number Diff line number Diff line Loading @@ -871,6 +871,7 @@ public: m_NetInfo.AppendNet( aNewNet ); } #ifndef SWIG /** * Function BeginNets * @return iterator to the first element of the NETINFO_ITEMs list Loading @@ -888,6 +889,7 @@ public: { return m_NetInfo.end(); } #endif /** * Function GetNetCount Loading pcbnew/class_netinfo.h +8 −7 Original line number Diff line number Diff line Loading @@ -145,6 +145,7 @@ public: */ int Translate( int aNetCode ) const; #ifndef SWIG ///> Wrapper class, so you can iterate through NETINFO_ITEM*s, not ///> std::pair<int/wxString, NETINFO_ITEM*> class iterator Loading Loading @@ -212,6 +213,7 @@ public: { return iterator( m_netMapping.end(), this ); } #endif /** * Function GetSize Loading Loading @@ -329,6 +331,7 @@ public: typedef boost::unordered_map<const wxString, NETINFO_ITEM*, WXSTRING_HASH> NETNAMES_MAP; typedef boost::unordered_map<const int, NETINFO_ITEM*> NETCODES_MAP; #ifndef SWIG ///> Wrapper class, so you can iterate through NETINFO_ITEM*s, not ///> std::pair<int/wxString, NETINFO_ITEM*> class iterator Loading Loading @@ -388,6 +391,7 @@ public: { return iterator( m_netNames.end() ); } #endif private: /** Loading Loading @@ -438,25 +442,22 @@ class NETINFO_ITEM friend class NETINFO_LIST; private: const int m_NetCode; ///< A number equivalent to the net name. int m_NetCode; ///< A number equivalent to the net name. ///< Used for fast comparisons in ratsnest and DRC computations. const wxString m_Netname; ///< Full net name like /mysheet/mysubsheet/vout ///< used by Eeschema wxString m_Netname; ///< Full net name like /mysheet/mysubsheet/vout used by Eeschema const wxString m_ShortNetname; // short net name, like vout from // /mysheet/mysubsheet/vout wxString m_ShortNetname; ///< short net name, like vout from /mysheet/mysubsheet/vout wxString m_NetClassName; // Net Class name. if void this is equivalent // to "default" (the first // item of the net classes list NETCLASS* m_NetClass; BOARD_ITEM* m_parent; ///< The parent board item object the net belongs to. public: std::vector <D_PAD*> m_PadInNetList; // List of pads connected to this net std::vector<D_PAD*> m_PadInNetList; ///< List of pads connected to this net unsigned m_RatsnestStartIdx; /* Starting point of ratsnests of this * net (included) in a general buffer of Loading pcbnew/ratsnest_data.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -356,8 +356,8 @@ bool RN_POLY::HitTest( const RN_NODE_PTR& aNode ) const x2 = xOld; y2 = yOld; } if( ( xNew < xt ) == ( xt <= xOld ) /* edge "open" at left end */ && ( yt - y1 ) * ( x2 - x1 ) < ( y2 - y1 ) * ( xt - x1 ) ) if( ( xNew < xt ) == ( xt <= xOld ) && /* edge "open" at left end */ (double)( yt - y1 ) * (double)( x2 - x1 ) < (double)( y2 - y1 ) * (double)( xt - x1 ) ) { inside = !inside; } Loading Loading
pcbnew/class_board.h +2 −0 Original line number Diff line number Diff line Loading @@ -871,6 +871,7 @@ public: m_NetInfo.AppendNet( aNewNet ); } #ifndef SWIG /** * Function BeginNets * @return iterator to the first element of the NETINFO_ITEMs list Loading @@ -888,6 +889,7 @@ public: { return m_NetInfo.end(); } #endif /** * Function GetNetCount Loading
pcbnew/class_netinfo.h +8 −7 Original line number Diff line number Diff line Loading @@ -145,6 +145,7 @@ public: */ int Translate( int aNetCode ) const; #ifndef SWIG ///> Wrapper class, so you can iterate through NETINFO_ITEM*s, not ///> std::pair<int/wxString, NETINFO_ITEM*> class iterator Loading Loading @@ -212,6 +213,7 @@ public: { return iterator( m_netMapping.end(), this ); } #endif /** * Function GetSize Loading Loading @@ -329,6 +331,7 @@ public: typedef boost::unordered_map<const wxString, NETINFO_ITEM*, WXSTRING_HASH> NETNAMES_MAP; typedef boost::unordered_map<const int, NETINFO_ITEM*> NETCODES_MAP; #ifndef SWIG ///> Wrapper class, so you can iterate through NETINFO_ITEM*s, not ///> std::pair<int/wxString, NETINFO_ITEM*> class iterator Loading Loading @@ -388,6 +391,7 @@ public: { return iterator( m_netNames.end() ); } #endif private: /** Loading Loading @@ -438,25 +442,22 @@ class NETINFO_ITEM friend class NETINFO_LIST; private: const int m_NetCode; ///< A number equivalent to the net name. int m_NetCode; ///< A number equivalent to the net name. ///< Used for fast comparisons in ratsnest and DRC computations. const wxString m_Netname; ///< Full net name like /mysheet/mysubsheet/vout ///< used by Eeschema wxString m_Netname; ///< Full net name like /mysheet/mysubsheet/vout used by Eeschema const wxString m_ShortNetname; // short net name, like vout from // /mysheet/mysubsheet/vout wxString m_ShortNetname; ///< short net name, like vout from /mysheet/mysubsheet/vout wxString m_NetClassName; // Net Class name. if void this is equivalent // to "default" (the first // item of the net classes list NETCLASS* m_NetClass; BOARD_ITEM* m_parent; ///< The parent board item object the net belongs to. public: std::vector <D_PAD*> m_PadInNetList; // List of pads connected to this net std::vector<D_PAD*> m_PadInNetList; ///< List of pads connected to this net unsigned m_RatsnestStartIdx; /* Starting point of ratsnests of this * net (included) in a general buffer of Loading
pcbnew/ratsnest_data.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -356,8 +356,8 @@ bool RN_POLY::HitTest( const RN_NODE_PTR& aNode ) const x2 = xOld; y2 = yOld; } if( ( xNew < xt ) == ( xt <= xOld ) /* edge "open" at left end */ && ( yt - y1 ) * ( x2 - x1 ) < ( y2 - y1 ) * ( xt - x1 ) ) if( ( xNew < xt ) == ( xt <= xOld ) && /* edge "open" at left end */ (double)( yt - y1 ) * (double)( x2 - x1 ) < (double)( y2 - y1 ) * (double)( xt - x1 ) ) { inside = !inside; } Loading