Horizon
|
Class MEANDERED_LINE. More...
#include <pns_meander.h>
Public Member Functions | |
MEANDERED_LINE (MEANDER_PLACER_BASE *aPlacer, bool aIsDual=false) | |
Constructor. More... | |
void | AddCorner (const VECTOR2I &aA, const VECTOR2I &aB=VECTOR2I(0, 0)) |
Function AddCorner() More... | |
void | AddMeander (MEANDER_SHAPE *aShape) |
Function AddMeander() More... | |
void | Clear () |
Function Clear() More... | |
void | SetWidth (int aWidth) |
Function SetWidth() More... | |
void | MeanderSegment (const SEG &aSeg, int aBaseIndex=0) |
Function MeanderSegment() More... | |
void | SetBaselineOffset (int aOffset) |
Function SetBaselineOffset() More... | |
std::vector< MEANDER_SHAPE * > & | Meanders () |
Function Meanders() More... | |
bool | CheckSelfIntersections (MEANDER_SHAPE *aShape, int aClearance) |
Function CheckSelfIntersections() More... | |
const MEANDER_SETTINGS & | Settings () const |
Function Settings() More... | |
Class MEANDERED_LINE.
Represents a set of meanders fitted over a single or two lines.
|
inline |
Constructor.
aPlacer | the meander placer instance |
aIsDual | when true, the meanders are generated for two coupled lines |
Function AddCorner()
Creates a dummy meander shape representing a line corner. Used to define the starts/ends of meandered segments.
aA | corner point of the 1st line |
aB | corner point of the 2nd line (if m_dual == true) |
void PNS::MEANDERED_LINE::AddMeander | ( | MEANDER_SHAPE * | aShape | ) |
Function AddMeander()
Adds a new meander shape the the meandered line.
aShape | the meander shape to add |
bool PNS::MEANDERED_LINE::CheckSelfIntersections | ( | MEANDER_SHAPE * | aShape, |
int | aClearance | ||
) |
Function CheckSelfIntersections()
Checks if the given shape is intersecting with any other meander in the current line.
aShape | the shape to check |
aClearance | clearance value |
void PNS::MEANDERED_LINE::Clear | ( | ) |
Function Clear()
Clears the line geometry, removing all corners and meanders.
|
inline |
Function Meanders()
void PNS::MEANDERED_LINE::MeanderSegment | ( | const SEG & | aSeg, |
int | aBaseIndex = 0 |
||
) |
Function MeanderSegment()
Fits maximum amplitude meanders on a given segment and adds to the current line.
aSeg | the base segment to meander |
aBaseIndex | index of the base segment in the original line |
|
inline |
Function SetBaselineOffset()
Sets the parallel offset between the base segment and the meandered line. Used for dual menaders (diff pair) only.
aOffset | the offset |
const MEANDER_SETTINGS & PNS::MEANDERED_LINE::Settings | ( | ) | const |
Function Settings()
|
inline |
Function SetWidth()
Sets the line width.