Formatting.

This commit is contained in:
Jeff Young 2021-01-04 23:47:23 +00:00
parent b40e3a39f5
commit 93bd2171ab
1 changed files with 23 additions and 32 deletions

View File

@ -34,18 +34,19 @@ namespace PNS {
class ITEM; class ITEM;
class SIZES_SETTINGS { class SIZES_SETTINGS
{
public: public:
SIZES_SETTINGS() SIZES_SETTINGS() :
: m_trackWidth( 155000 ), m_trackWidth( 155000 ),
m_diffPairWidth( 125000 ), m_diffPairWidth( 125000 ),
m_diffPairGap( 180000 ), m_diffPairGap( 180000 ),
m_diffPairViaGap( 180000 ), m_diffPairViaGap( 180000 ),
m_viaDiameter( 600000 ), m_viaDiameter( 600000 ),
m_viaDrill( 250000 ), m_viaDrill( 250000 ),
m_diffPairViaGapSameAsTraceGap( true ), m_diffPairViaGapSameAsTraceGap( true ),
m_viaType( VIATYPE::THROUGH ){}; m_viaType( VIATYPE::THROUGH )
{};
~SIZES_SETTINGS() {}; ~SIZES_SETTINGS() {};
@ -58,7 +59,8 @@ public:
int DiffPairWidth() const { return m_diffPairWidth; } int DiffPairWidth() const { return m_diffPairWidth; }
int DiffPairGap() const { return m_diffPairGap; } int DiffPairGap() const { return m_diffPairGap; }
int DiffPairViaGap() const { int DiffPairViaGap() const
{
if( m_diffPairViaGapSameAsTraceGap ) if( m_diffPairViaGapSameAsTraceGap )
return m_diffPairGap; return m_diffPairGap;
else else
@ -89,28 +91,17 @@ public:
int GetLayerTop() const; int GetLayerTop() const;
int GetLayerBottom() const; int GetLayerBottom() const;
void SetViaType( VIATYPE aViaType ) void SetViaType( VIATYPE aViaType ) { m_viaType = aViaType; }
{ VIATYPE ViaType() const { return m_viaType; }
m_viaType = aViaType;
}
VIATYPE ViaType() const
{
return m_viaType;
}
private: private:
int m_trackWidth;
bool inheritTrackWidth( ITEM* aItem, int* aInheritedWidth ); int m_diffPairWidth;
int m_diffPairGap;
int m_trackWidth; int m_diffPairViaGap;
int m_diffPairWidth; int m_viaDiameter;
int m_diffPairGap; int m_viaDrill;
int m_diffPairViaGap; bool m_diffPairViaGapSameAsTraceGap;
int m_viaDiameter;
int m_viaDrill;
bool m_diffPairViaGapSameAsTraceGap;
VIATYPE m_viaType; VIATYPE m_viaType;