Honour diff-pair dimension changes while routing.

This commit is contained in:
Jeff Young 2018-09-18 20:37:00 +01:00
parent e485cee384
commit ebb74fcc2b
2 changed files with 46 additions and 0 deletions

View File

@ -582,6 +582,48 @@ public:
return m_useCustomDiffPair;
}
/**
* Function GetCurrentDiffPairWidth
* @return the current diff pair track width, according to the selected options
* ( using the default netclass value or a preset/custom value )
* the default netclass is always in m_DiffPairDimensionsList[0]
*/
inline int GetCurrentDiffPairWidth() const
{
if( m_useCustomDiffPair )
return m_customDiffPair.m_Width;
else
return m_DiffPairDimensionsList[m_diffPairIndex].m_Width;
}
/**
* Function GetCurrentDiffPairGap
* @return the current diff pair gap, according to the selected options
* ( using the default netclass value or a preset/custom value )
* the default netclass is always in m_DiffPairDimensionsList[0]
*/
inline int GetCurrentDiffPairGap() const
{
if( m_useCustomDiffPair )
return m_customDiffPair.m_Gap;
else
return m_DiffPairDimensionsList[m_diffPairIndex].m_Gap;
}
/**
* Function GetCurrentDiffPairViaGap
* @return the current diff pair via gap, according to the selected options
* ( using the default netclass value or a preset/custom value )
* the default netclass is always in m_DiffPairDimensionsList[0]
*/
inline int GetCurrentDiffPairViaGap() const
{
if( m_useCustomDiffPair )
return m_customDiffPair.m_ViaGap;
else
return m_DiffPairDimensionsList[m_diffPairIndex].m_ViaGap;
}
/**
* Function SetMinHoleSeparation
* @param aValue The minimum distance between the edges of two holes or 0 to disable

View File

@ -168,6 +168,10 @@ void SIZES_SETTINGS::ImportCurrent( BOARD_DESIGN_SETTINGS& aSettings )
m_trackWidth = aSettings.GetCurrentTrackWidth();
m_viaDiameter = aSettings.GetCurrentViaSize();
m_viaDrill = aSettings.GetCurrentViaDrill();
m_diffPairWidth = aSettings.GetCurrentDiffPairWidth();
m_diffPairGap = aSettings.GetCurrentDiffPairGap();
m_diffPairViaGap = aSettings.GetCurrentDiffPairViaGap();
}