Base class for Single trace & Differential pair meandering tools, as both of them share a lot of code.
More...
#include <pns_meander_placer_base.h>
|
| enum | TUNING_STATUS { TOO_SHORT = 0
, TOO_LONG
, TUNED
} |
| | < Result of the length tuning operation
|
|
| void | cutTunedLine (const SHAPE_LINE_CHAIN &aOrigin, const VECTOR2I &aTuneStart, const VECTOR2I &aCursorPos, SHAPE_LINE_CHAIN &aPre, SHAPE_LINE_CHAIN &aTuned, SHAPE_LINE_CHAIN &aPost) |
| | Extract the part of a track to be meandered, depending on the starting point and the cursor position.
|
|
void | tuneLineLength (MEANDERED_LINE &aTuned, long long int aElongation) |
| | Take a set of meanders in aTuned and tunes their length to extend the original line length by aElongation.
|
|
int | compareWithTolerance (long long int aValue, long long int aExpected, long long int aTolerance=0) const |
| | Compare aValue against aExpected with given tolerance.
|
|
VECTOR2I | getSnappedStartPoint (LINKED_ITEM *aStartItem, VECTOR2I aStartPoint) |
| long long int | lineLength (const ITEM_SET &aLine) const |
| | Calculate the total length of the line represented by an item set (tracks and vias).
|
|
|
NODE * | m_world |
| | Total length added by pad to die size.
|
|
int | m_padToDieLength |
| | Width of the meandered trace(s).
|
|
int | m_currentWidth |
| | Meander settings.
|
|
MEANDER_SETTINGS | m_settings |
| | The current end point.
|
|
VECTOR2I | m_currentEnd |
|
DEBUG_DECORATOR * | m_debugDecorator |
|
ROUTER * | m_router |
|
LOGGER * | m_logger |
Base class for Single trace & Differential pair meandering tools, as both of them share a lot of code.
◆ AmplitudeStep()
| void PNS::MEANDER_PLACER_BASE::AmplitudeStep |
( |
int | aSign | ) |
|
|
virtual |
Increase/decreases the current meandering amplitude by one step.
- Parameters
-
| aSign | direction (negative = decrease, positive = increase). |
◆ CheckFit()
| virtual bool PNS::MEANDER_PLACER_BASE::CheckFit |
( |
MEANDER_SHAPE * | aShape | ) |
|
|
inlinevirtual |
Checks if it's OK to place the shape aShape (i.e.
if it doesn't cause DRC violations or collide with other meanders).
- Parameters
-
| aShape | the shape to check. |
- Returns
- true if the shape fits.
Reimplemented in PNS::DP_MEANDER_PLACER, and PNS::MEANDER_PLACER.
◆ Clearance()
| int PNS::MEANDER_PLACER_BASE::Clearance |
( |
| ) |
|
|
virtual |
Return the clearance of the track(s) being length tuned.
- Returns
- clearance value in internal units
◆ cutTunedLine()
Extract the part of a track to be meandered, depending on the starting point and the cursor position.
- Parameters
-
| aOrigin | the original line. |
| aTuneStart | point where we start meandering (start click coordinates). |
| aCursorPos | current cursor position. |
| aPre | part before the beginning of meanders. |
| aTuned | part to be meandered. |
| aPost | part after the end of meanders. |
◆ lineLength()
| long long int PNS::MEANDER_PLACER_BASE::lineLength |
( |
const ITEM_SET & | aLine | ) |
const |
|
protected |
Calculate the total length of the line represented by an item set (tracks and vias).
- Parameters
-
- Returns
- Pointer to world to search colliding items.
◆ MeanderSettings()
Return the current meandering configuration.
- Returns
- the settings
◆ SpacingStep()
| void PNS::MEANDER_PLACER_BASE::SpacingStep |
( |
int | aSign | ) |
|
|
virtual |
Increase/decrease the current meandering spacing by one step.
- Parameters
-
| aSign | direction (negative = decrease, positive = increase). |
◆ TuningInfo()
| virtual const wxString PNS::MEANDER_PLACER_BASE::TuningInfo |
( |
EDA_UNITS | aUnits | ) |
const |
|
pure virtual |
◆ TuningStatus()
| virtual TUNING_STATUS PNS::MEANDER_PLACER_BASE::TuningStatus |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following files: