Honour diff-pair dimension changes while routing.
This commit is contained in:
parent
e485cee384
commit
ebb74fcc2b
|
@ -582,6 +582,48 @@ public:
|
||||||
return m_useCustomDiffPair;
|
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
|
* Function SetMinHoleSeparation
|
||||||
* @param aValue The minimum distance between the edges of two holes or 0 to disable
|
* @param aValue The minimum distance between the edges of two holes or 0 to disable
|
||||||
|
|
|
@ -168,6 +168,10 @@ void SIZES_SETTINGS::ImportCurrent( BOARD_DESIGN_SETTINGS& aSettings )
|
||||||
m_trackWidth = aSettings.GetCurrentTrackWidth();
|
m_trackWidth = aSettings.GetCurrentTrackWidth();
|
||||||
m_viaDiameter = aSettings.GetCurrentViaSize();
|
m_viaDiameter = aSettings.GetCurrentViaSize();
|
||||||
m_viaDrill = aSettings.GetCurrentViaDrill();
|
m_viaDrill = aSettings.GetCurrentViaDrill();
|
||||||
|
|
||||||
|
m_diffPairWidth = aSettings.GetCurrentDiffPairWidth();
|
||||||
|
m_diffPairGap = aSettings.GetCurrentDiffPairGap();
|
||||||
|
m_diffPairViaGap = aSettings.GetCurrentDiffPairViaGap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue