23#ifndef __PNS_DP_MEANDER_PLACER_H
24#define __PNS_DP_MEANDER_PLACER_H
26#include <math/vector2d.h>
28#include <geometry/shape.h>
29#include <geometry/shape_line_chain.h>
34#include "pns_placement_algo.h"
35#include "pns_meander.h"
36#include "pns_meander_placer_base.h"
37#include "pns_diff_pair.h"
38#include "pns_debug_decorator.h"
85 const LINE Trace()
const;
97 const std::vector<int>
CurrentNets()
const override;
101 long long int totalLength();
112 void meanderSegment(
const SEG& aBase );
120 void setWorld(
NODE* aWorld );
123 long long int origPathLength()
const;
132 DIFF_PAIR::COUPLED_SEGMENTS_VEC m_coupledSegments;
134 LINE m_currentTraceN, m_currentTraceP;
135 ITEM_SET m_tunedPath, m_tunedPathP, m_tunedPathN;
141 long long int m_lastLength;
Basic class for a differential pair.
Definition pns_diff_pair.h:235
Differential Pair length-matching/meandering tool.
Definition pns_dp_meander_placer.h:49
bool Start(const VECTOR2I &aP, ITEM *aStartItem) override
Start routing a single track at point aP, taking item aStartItem as anchor (unless NULL).
Definition pns_dp_meander_placer.cpp:72
bool CheckFit(MEANDER_SHAPE *aShape) override
Checks if it's OK to place the shape aShape (i.e.
Definition pns_dp_meander_placer.cpp:387
const ITEM_SET Traces() override
Function Traces()
Definition pns_dp_meander_placer.cpp:405
bool AbortPlacement() override
Definition pns_dp_meander_placer.cpp:364
const std::vector< int > CurrentNets() const override
Function CurrentNets()
Definition pns_dp_meander_placer.cpp:466
bool FixRoute(const VECTOR2I &aP, ITEM *aEndItem, bool aForceFinish=false) override
Commit the currently routed track to the parent node, taking aP as the final end point and aEndItem a...
Definition pns_dp_meander_placer.cpp:350
int CurrentLayer() const override
Function CurrentLayer()
Definition pns_dp_meander_placer.cpp:425
TUNING_STATUS TuningStatus() const override
Return the tuning status (too short, too long, etc.) of the trace(s) being tuned.
Definition pns_dp_meander_placer.cpp:461
const wxString TuningInfo(EDA_UNITS aUnits) const override
Return a string describing the status and length of the tuned traces.
Definition pns_dp_meander_placer.cpp:431
bool HasPlacedAnything() const override
Definition pns_dp_meander_placer.cpp:371
bool CommitPlacement() override
Definition pns_dp_meander_placer.cpp:377
bool Move(const VECTOR2I &aP, ITEM *aEndItem) override
Move the end of the currently routed trace to the point aP, taking aEndItem as anchor (if not NULL).
Definition pns_dp_meander_placer.cpp:169
const VECTOR2I & CurrentEnd() const override
Function CurrentEnd()
Definition pns_dp_meander_placer.cpp:419
NODE * CurrentNode(bool aLoopsRemoved=false) const override
Return the most recent world state.
Definition pns_dp_meander_placer.cpp:63
Definition pns_itemset.h:37
Base class for PNS router board items.
Definition pns_item.h:57
Represents a track on a PCB, connecting two non-trivial joints (that is, vias, pads,...
Definition pns_line.h:61
Definition pns_linked_item.h:30
Represent a set of meanders fitted over a single or two lines.
Definition pns_meander.h:386
Base class for Single trace & Differential pair meandering tools, as both of them share a lot of code...
Definition pns_meander_placer_base.h:47
TUNING_STATUS
< Result of the length tuning operation
Definition pns_meander_placer_base.h:50
The geometry of a single meander.
Definition pns_meander.h:111
Keep the router "world" - i.e.
Definition pns_node.h:148
Definition pns_router.h:116
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
Definition shape_line_chain.h:81
Definition wx_compat.h:13
Definition pns_diff_pair.h:238