23#ifndef __PNS_MEANDER_PLACER_H
24#define __PNS_MEANDER_PLACER_H
26#include <math/vector2d.h>
28#include <geometry/shape_line_chain.h>
32#include "pns_placement_algo.h"
33#include "pns_meander.h"
34#include "pns_meander_placer_base.h"
45class MEANDER_PLACER :
public MEANDER_PLACER_BASE
49 MEANDER_PLACER(
ROUTER* aRouter );
50 virtual ~MEANDER_PLACER();
53 virtual bool Start(
const VECTOR2I& aP,
ITEM* aStartItem )
override;
56 virtual bool Move(
const VECTOR2I& aP,
ITEM* aEndItem )
override;
59 virtual bool FixRoute(
const VECTOR2I& aP,
ITEM* aEndItem,
bool aForceFinish =
false )
override;
82 return std::vector<int> (1, m_originLine.Net() );
98 bool doMove(
const VECTOR2I& aP,
ITEM* aEndItem,
long long int aTargetLength );
100 void setWorld(
NODE* aWorld );
118 long long int m_lastLength;
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
TUNING_STATUS
< Result of the length tuning operation
Definition pns_meander_placer_base.h:50
virtual const wxString TuningInfo(EDA_UNITS aUnits) const override
Return a string describing the status and length of the tuned traces.
Definition pns_meander_placer.cpp:270
virtual bool FixRoute(const VECTOR2I &aP, ITEM *aEndItem, bool aForceFinish=false) override
Function FixRoute().
Definition pns_meander_placer.cpp:202
virtual bool Move(const VECTOR2I &aP, ITEM *aEndItem) override
Function Move().
Definition pns_meander_placer.cpp:104
virtual long long int origPathLength() const
current routing start point (end of tail, beginning of head)
Definition pns_meander_placer.cpp:98
int CurrentLayer() const override
Function CurrentLayer().
Definition pns_meander_placer.cpp:264
const VECTOR2I & CurrentEnd() const override
Function CurrentEnd().
Definition pns_meander_placer.cpp:259
bool AbortPlacement() override
Definition pns_meander_placer.cpp:215
bool HasPlacedAnything() const override
Definition pns_meander_placer.cpp:222
NODE * CurrentNode(bool aLoopsRemoved=false) const override
Function CurrentNode().
Definition pns_meander_placer.cpp:51
const ITEM_SET Traces() override
Function Traces().
Definition pns_meander_placer.cpp:252
bool CheckFit(MEANDER_SHAPE *aShape) override
Checks if it's OK to place the shape aShape (i.e.
Definition pns_meander_placer.cpp:238
VECTOR2I m_currentStart
Current world state.
Definition pns_meander_placer.h:105
virtual TUNING_STATUS TuningStatus() const override
Return the tuning status (too short, too long, etc.) of the trace(s) being tuned.
Definition pns_meander_placer.cpp:297
virtual bool Start(const VECTOR2I &aP, ITEM *aStartItem) override
Function Start().
Definition pns_meander_placer.cpp:60
const std::vector< int > CurrentNets() const override
Function CurrentNets().
Definition pns_meander_placer.h:80
bool CommitPlacement() override
Definition pns_meander_placer.cpp:228
The geometry of a single meander.
Definition pns_meander.h:111
Keep the router "world" - i.e.
Definition pns_node.h:148
Perform various optimizations of the lines being routed, attempting to make the lines shorter and les...
Definition pns_optimizer.h:95
Definition pns_router.h:116
The actual Push and Shove algorithm.
Definition pns_shove.h:46
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