|
| LINE () |
| Constructor Makes an empty line.
|
|
| LINE (const LINE &aOther) |
|
| LINE (const LINE &aBase, const SHAPE_LINE_CHAIN &aLine) |
| Constructor Copies properties (net, layers, etc.) from a base line and replaces the shape by another.
|
|
virtual LINE * | Clone () const override |
| Function Clone() More...
|
|
LINE & | operator= (const LINE &aOther) |
|
void | SetShape (const SHAPE_LINE_CHAIN &aLine) |
|
Assigns a shape to the line (a polyline/line chain)
|
|
const SHAPE * | Shape () const override |
|
Returns the shape of the line
More...
|
|
SHAPE_LINE_CHAIN & | Line () |
|
Modifiable accessor to the underlying shape
|
|
const SHAPE_LINE_CHAIN & | CLine () const |
|
Const accessor to the underlying shape
|
|
int | SegmentCount () const |
|
Returns the number of segments in the line
|
|
int | PointCount () const |
|
Returns the number of points in the line
|
|
const VECTOR2I & | CPoint (int aIdx) const |
|
Returns the aIdx-th point of the line
|
|
const SEG | CSegment (int aIdx) const |
|
Returns the aIdx-th segment of the line
|
|
void | SetWidth (int aWidth) |
|
Sets line width
|
|
int | Width () const |
|
Returns line width
|
|
bool | CompareGeometry (const LINE &aOther) |
|
Returns true if the line is geometrically identical as line aOther
|
|
void | Reverse () |
|
Reverses the point/vertex order
|
|
void | LinkSegment (SEGMENT *aSeg) |
|
Adds a reference to a segment registered in a NODE that is a part of this line.
|
|
SEGMENT_REFS & | LinkedSegments () |
|
Returns the list of segments from the owning node that constitute this line (or NULL if the line is not linked)
|
|
bool | IsLinked () const |
|
bool | IsLinkedChecked () const |
|
bool | ContainsSegment (SEGMENT *aSeg) const |
|
Checks if the segment aSeg is a part of the line.
|
|
SEGMENT * | GetLink (int aIndex) const |
|
void | ClearSegmentLinks () |
|
Erases the linking information. Used to detach the line from the owning node.
|
|
int | LinkCount () const |
|
Returns the number of segments that were assembled together to form this line.
|
|
const LINE | ClipToNearestObstacle (NODE *aNode) const |
|
Clips the line to the nearest obstacle, traversing from the line's start vertex (0).
More...
|
|
void | ClipVertexRange (int aStart, int aEnd) |
|
Clips the line to a given range of vertices.
|
|
int | CountCorners (int aAngles) const |
|
Returns the number of corners of angles specified by mask aAngles.
|
|
bool | Walkaround (SHAPE_LINE_CHAIN aObstacle, SHAPE_LINE_CHAIN &aPre, SHAPE_LINE_CHAIN &aWalk, SHAPE_LINE_CHAIN &aPost, bool aCw) const |
|
Calculates a line thightly wrapping a convex hull of an obstacle object (aObstacle).
More...
|
|
bool | Walkaround (const SHAPE_LINE_CHAIN &aObstacle, SHAPE_LINE_CHAIN &aPath, bool aCw) const |
|
bool | Is45Degree () const |
|
void | ShowLinks () const |
|
Prints out all linked segments
|
|
bool | EndsWithVia () const |
|
void | AppendVia (const VIA &aVia) |
|
void | RemoveVia () |
|
const VIA & | Via () const |
|
virtual void | Mark (int aMarker) override |
|
virtual void | Unmark (int aMarker=-1) override |
|
virtual int | Marker () const override |
|
void | DragSegment (const VECTOR2I &aP, int aIndex, int aSnappingThreshold=0, bool aFreeAngle=false) |
|
void | DragCorner (const VECTOR2I &aP, int aIndex, int aSnappingThreshold=0, bool aFreeAngle=false) |
|
void | SetRank (int aRank) override |
|
int | Rank () const override |
|
bool | HasLoops () const |
|
bool | HasLockedSegments () const |
|
OPT_BOX2I | ChangedArea (const LINE *aOther) const |
|
| ITEM (PnsKind aKind) |
|
| ITEM (const ITEM &aOther) |
|
virtual ITEM * | Clone () const =0 |
| Function Clone() More...
|
|
virtual const SHAPE_LINE_CHAIN | Hull (int aClearance=0, int aWalkaroundThickness=0) const |
|
PnsKind | Kind () const |
| Function Kind() More...
|
|
bool | OfKind (int aKindMask) const |
| Function OfKind() More...
|
|
const std::string | KindStr () const |
| Function KindStr() More...
|
|
void | SetParent (const PNS_HORIZON_PARENT_ITEM *aParent) |
| Function SetParent() More...
|
|
auto | Parent () const |
| Function Parent() More...
|
|
void | SetNet (int aNet) |
| Function SetNet() More...
|
|
int | Net () const |
| Function Net() More...
|
|
bool | InAnyNet () const |
|
void | SetLayers (const LAYER_RANGE &aLayers) |
| Function SetLayers() More...
|
|
void | SetLayer (int aLayer) |
| Function SetLayer() More...
|
|
const LAYER_RANGE & | Layers () const |
| Function Layers() More...
|
|
virtual int | Layer () const |
| Function Layer() More...
|
|
bool | LayersOverlap (const ITEM *aOther) const |
| Function LayersOverlap() More...
|
|
void | SetOwner (NODE *aOwner) |
| Functon SetOwner() More...
|
|
bool | BelongsTo (NODE *aNode) const |
| Function BelongsTo() More...
|
|
NODE * | Owner () const |
| Function Owner() More...
|
|
virtual bool | Collide (const ITEM *aOther, int aClearance, bool aNeedMTV, VECTOR2I &aMTV, bool aDifferentNetsOnly=true) const |
| Function Collide() More...
|
|
bool | Collide (const ITEM *aOther, int aClearance, bool aDifferentNetsOnly=true) const |
| Function Collide() More...
|
|
virtual const SHAPE * | Shape () const |
| Function Shape() More...
|
|
virtual void | Mark (int aMarker) |
|
virtual void | Unmark (int aMarker=-1) |
|
virtual int | Marker () const |
|
virtual void | SetRank (int aRank) |
|
virtual int | Rank () const |
|
virtual VECTOR2I | Anchor (int n) const |
|
virtual int | AnchorCount () const |
|
bool | IsLocked () const |
|
void | SetRoutable (bool aRoutable) |
|
bool | IsRoutable () const |
|