Commit 07877f90 authored by Lorenzo Marcantonio's avatar Lorenzo Marcantonio

Replaced the display line clipper with the way simpler (and faster) Cohen-Sutherland one.

A couple of trivial accessors made inline
parent f7c1372d
This diff is collapsed.
...@@ -50,12 +50,6 @@ BOARD_CONNECTED_ITEM::BOARD_CONNECTED_ITEM( const BOARD_CONNECTED_ITEM& aItem ) ...@@ -50,12 +50,6 @@ BOARD_CONNECTED_ITEM::BOARD_CONNECTED_ITEM( const BOARD_CONNECTED_ITEM& aItem )
} }
int BOARD_CONNECTED_ITEM::GetNetCode() const
{
return m_netinfo->GetNet();
}
void BOARD_CONNECTED_ITEM::SetNetCode( int aNetCode ) void BOARD_CONNECTED_ITEM::SetNetCode( int aNetCode )
{ {
BOARD* board = GetBoard(); BOARD* board = GetBoard();
...@@ -75,18 +69,6 @@ void BOARD_CONNECTED_ITEM::SetNetCode( int aNetCode ) ...@@ -75,18 +69,6 @@ void BOARD_CONNECTED_ITEM::SetNetCode( int aNetCode )
} }
const wxString& BOARD_CONNECTED_ITEM::GetNetname() const
{
return m_netinfo->GetNetname();
}
const wxString& BOARD_CONNECTED_ITEM::GetShortNetname() const
{
return m_netinfo->GetShortNetname();
}
int BOARD_CONNECTED_ITEM::GetClearance( BOARD_CONNECTED_ITEM* aItem ) const int BOARD_CONNECTED_ITEM::GetClearance( BOARD_CONNECTED_ITEM* aItem ) const
{ {
NETCLASSPTR myclass = GetNetClass(); NETCLASSPTR myclass = GetNetClass();
......
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
#define BOARD_CONNECTED_ITEM_H #define BOARD_CONNECTED_ITEM_H
#include <class_board_item.h> #include <class_board_item.h>
#include <class_netinfo.h>
class NETINFO_ITEM;
class NETCLASS; class NETCLASS;
class TRACK; class TRACK;
class D_PAD; class D_PAD;
...@@ -77,7 +77,10 @@ public: ...@@ -77,7 +77,10 @@ public:
* Function GetNetCode * Function GetNetCode
* @return int - the net code. * @return int - the net code.
*/ */
int GetNetCode() const; int GetNetCode() const
{
return m_netinfo->GetNet();
}
/** /**
* Function SetNetCode * Function SetNetCode
...@@ -119,13 +122,19 @@ public: ...@@ -119,13 +122,19 @@ public:
* Function GetNetname * Function GetNetname
* @return wxString - the full netname * @return wxString - the full netname
*/ */
const wxString& GetNetname() const; const wxString& GetNetname() const
{
return m_netinfo->GetNetname();
}
/** /**
* Function GetShortNetname * Function GetShortNetname
* @return wxString - the short netname * @return wxString - the short netname
*/ */
const wxString& GetShortNetname() const; const wxString& GetShortNetname() const
{
return m_netinfo->GetShortNetname();
}
/** /**
* Function GetClearance * Function GetClearance
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment