2013-09-18 17:55:16 +00:00
|
|
|
/*
|
|
|
|
* KiRouter - a push-and-(sometimes-)shove PCB router
|
|
|
|
*
|
2017-01-19 12:55:22 +00:00
|
|
|
* Copyright (C) 2013-2017 CERN
|
2021-01-01 01:02:06 +00:00
|
|
|
* Copyright (C) 2016-2021 KiCad Developers, see AUTHORS.txt for contributors.
|
2021-01-27 22:15:38 +00:00
|
|
|
*
|
|
|
|
* @author Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
|
2013-09-26 21:53:54 +00:00
|
|
|
*
|
2013-09-18 17:55:16 +00:00
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
* option) any later version.
|
2013-09-26 21:53:54 +00:00
|
|
|
*
|
2013-09-18 17:55:16 +00:00
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
2013-09-26 21:53:54 +00:00
|
|
|
*
|
2013-09-18 17:55:16 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
2014-05-14 13:53:54 +00:00
|
|
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
2013-09-18 17:55:16 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PNS_LINE_PLACER_H
|
|
|
|
#define __PNS_LINE_PLACER_H
|
|
|
|
|
|
|
|
#include <math/vector2d.h>
|
|
|
|
|
|
|
|
#include <geometry/shape.h>
|
|
|
|
#include <geometry/shape_line_chain.h>
|
|
|
|
|
2014-11-14 18:15:58 +00:00
|
|
|
#include "pns_sizes_settings.h"
|
2013-09-18 17:55:16 +00:00
|
|
|
#include "pns_node.h"
|
|
|
|
#include "pns_via.h"
|
|
|
|
#include "pns_line.h"
|
2015-02-18 00:29:54 +00:00
|
|
|
#include "pns_placement_algo.h"
|
2020-10-19 19:42:06 +00:00
|
|
|
#include "pns_mouse_trail_tracer.h"
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2016-08-29 14:38:11 +00:00
|
|
|
namespace PNS {
|
|
|
|
|
2016-08-29 17:31:13 +00:00
|
|
|
class ROUTER;
|
|
|
|
class SHOVE;
|
|
|
|
class OPTIMIZER;
|
|
|
|
class VIA;
|
|
|
|
class SIZES_SETTINGS;
|
2020-02-07 19:57:24 +00:00
|
|
|
class NODE;
|
2014-11-14 18:15:58 +00:00
|
|
|
|
2021-01-01 01:02:06 +00:00
|
|
|
class FIXED_TAIL
|
|
|
|
{
|
2020-02-07 19:57:24 +00:00
|
|
|
public:
|
2021-01-01 01:02:06 +00:00
|
|
|
FIXED_TAIL( int aLineCount = 1);
|
2020-02-07 19:57:24 +00:00
|
|
|
~FIXED_TAIL();
|
|
|
|
|
|
|
|
struct FIX_POINT
|
|
|
|
{
|
2021-01-01 01:02:06 +00:00
|
|
|
int layer;
|
|
|
|
bool placingVias;
|
|
|
|
VECTOR2I p;
|
2020-02-07 19:57:24 +00:00
|
|
|
DIRECTION_45 direction;
|
|
|
|
};
|
|
|
|
|
2021-01-01 01:02:06 +00:00
|
|
|
struct STAGE
|
|
|
|
{
|
|
|
|
NODE* commit;
|
2020-02-07 19:57:24 +00:00
|
|
|
std::vector<FIX_POINT> pts;
|
|
|
|
};
|
|
|
|
|
|
|
|
void Clear();
|
2021-01-01 01:02:06 +00:00
|
|
|
void AddStage( VECTOR2I aStart, int aLayer, bool placingVias, DIRECTION_45 direction,
|
|
|
|
NODE *aNode );
|
2020-02-07 19:57:24 +00:00
|
|
|
bool PopStage( STAGE& aStage );
|
|
|
|
int StageCount() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::vector<STAGE> m_stages;
|
|
|
|
};
|
2013-09-18 17:55:16 +00:00
|
|
|
|
2020-04-16 21:54:09 +00:00
|
|
|
|
|
|
|
|
2013-09-18 17:55:16 +00:00
|
|
|
/**
|
2020-10-19 19:42:06 +00:00
|
|
|
* Single track placement algorithm. Interactively routes a track.
|
|
|
|
* Applies shove and walkaround algorithms when needed.
|
2013-09-18 17:55:16 +00:00
|
|
|
*/
|
|
|
|
|
2016-08-29 17:31:13 +00:00
|
|
|
class LINE_PLACER : public PLACEMENT_ALGO
|
2013-09-18 17:55:16 +00:00
|
|
|
{
|
2013-09-26 21:53:54 +00:00
|
|
|
public:
|
2016-08-29 17:31:13 +00:00
|
|
|
LINE_PLACER( ROUTER* aRouter );
|
|
|
|
~LINE_PLACER();
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2014-05-14 13:53:54 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Start routing a single track at point aP, taking item aStartItem as anchor (unless NULL).
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
bool Start( const VECTOR2I& aP, ITEM* aStartItem ) override;
|
2014-05-16 11:37:31 +00:00
|
|
|
|
2014-05-14 13:53:54 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Move the end of the currently routed trace to the point \a aP, taking \a aEndItem as
|
|
|
|
* anchor (if not NULL).
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
bool Move( const VECTOR2I& aP, ITEM* aEndItem ) override;
|
2014-05-14 13:53:54 +00:00
|
|
|
|
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Commit the currently routed track to the parent node taking \a aP as the final end point
|
|
|
|
* and \a aEndItem as the final anchor (if provided).
|
2014-11-14 19:19:00 +00:00
|
|
|
*
|
2021-01-27 22:15:38 +00:00
|
|
|
* @return true if route has been committed. May return false if the routing result is
|
|
|
|
* violating design rules. In such cases, the track is only committed if
|
|
|
|
* CanViolateDRC() is on.
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
2018-06-19 17:29:36 +00:00
|
|
|
bool FixRoute( const VECTOR2I& aP, ITEM* aEndItem, bool aForceFinish ) override;
|
2014-11-14 19:19:00 +00:00
|
|
|
|
2020-02-07 19:57:24 +00:00
|
|
|
bool UnfixRoute() override;
|
|
|
|
|
|
|
|
bool CommitPlacement() override;
|
|
|
|
|
|
|
|
bool AbortPlacement() override;
|
|
|
|
|
|
|
|
bool HasPlacedAnything() const override;
|
|
|
|
|
2014-05-14 13:53:54 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Enable/disable a via at the end of currently routed trace.
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
bool ToggleVia( bool aEnabled ) override;
|
2014-05-14 13:53:54 +00:00
|
|
|
|
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Set the current routing layer.
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
bool SetLayer( int aLayer ) override;
|
2014-05-14 13:53:54 +00:00
|
|
|
|
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Return the "head" of the line being placed, that is the volatile part that has not been
|
2021-01-01 01:02:06 +00:00
|
|
|
* "fixed" yet.
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
2016-08-29 17:31:13 +00:00
|
|
|
const LINE& Head() const { return m_head; }
|
2014-11-14 19:19:00 +00:00
|
|
|
|
2014-05-14 13:53:54 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Return the "tail" of the line being placed, the part which has already wrapped around
|
2014-05-14 13:53:54 +00:00
|
|
|
* and shoved some obstacles.
|
|
|
|
*/
|
2016-08-29 17:31:13 +00:00
|
|
|
const LINE& Tail() const { return m_tail; }
|
2014-05-14 13:53:54 +00:00
|
|
|
|
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Return the complete routed line.
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
2016-08-29 17:31:13 +00:00
|
|
|
const LINE Trace() const;
|
2014-05-14 13:53:54 +00:00
|
|
|
|
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Return the complete routed line, as a single-member ITEM_SET.
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
const ITEM_SET Traces() override;
|
2014-05-14 13:53:54 +00:00
|
|
|
|
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Return the current end of the line being placed. It may not be equal to the cursor
|
|
|
|
* position due to collisions.
|
2014-11-14 19:19:00 +00:00
|
|
|
*/
|
2016-09-25 17:06:49 +00:00
|
|
|
const VECTOR2I& CurrentEnd() const override
|
2013-09-26 21:53:54 +00:00
|
|
|
{
|
2014-05-14 13:53:54 +00:00
|
|
|
return m_currentEnd;
|
2013-09-26 21:53:54 +00:00
|
|
|
}
|
|
|
|
|
2014-05-14 13:53:54 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Return the net code of currently routed track.
|
2014-11-14 19:19:00 +00:00
|
|
|
*/
|
2016-09-25 17:06:49 +00:00
|
|
|
const std::vector<int> CurrentNets() const override
|
2014-05-14 13:53:54 +00:00
|
|
|
{
|
2015-08-21 14:35:34 +00:00
|
|
|
return std::vector<int>( 1, m_currentNet );
|
2014-05-14 13:53:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Return the layer of currently routed track.
|
2014-11-14 19:19:00 +00:00
|
|
|
*/
|
2016-09-25 17:06:49 +00:00
|
|
|
int CurrentLayer() const override
|
2014-05-14 13:53:54 +00:00
|
|
|
{
|
|
|
|
return m_currentLayer;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Return the most recent world state.
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
NODE* CurrentNode( bool aLoopsRemoved = false ) const override;
|
2014-11-14 19:19:00 +00:00
|
|
|
|
2014-05-14 13:53:54 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Toggle the current posture (straight/diagonal) of the trace head.
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
void FlipPosture() override;
|
2014-11-14 19:19:00 +00:00
|
|
|
|
2014-05-14 13:53:54 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Perform on-the-fly update of the width, via diameter & drill size from a settings class.
|
2014-05-14 13:53:54 +00:00
|
|
|
*
|
2020-10-19 19:42:06 +00:00
|
|
|
* Performs on-the-fly update of the width, via diameter & drill size from a settings class.
|
2021-01-01 01:02:06 +00:00
|
|
|
* Used to dynamically change these parameters as the track is routed.
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
void UpdateSizes( const SIZES_SETTINGS& aSizes ) override;
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2016-09-24 18:53:15 +00:00
|
|
|
void SetOrthoMode( bool aOrthoMode ) override;
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2016-09-25 17:06:49 +00:00
|
|
|
bool IsPlacingVia() const override { return m_placingVia; }
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2016-09-24 18:53:15 +00:00
|
|
|
void GetModifiedNets( std::vector<int>& aNets ) const override;
|
2015-08-19 16:07:16 +00:00
|
|
|
|
2017-08-03 15:53:07 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Check if point \a aP lies on segment \a aSeg. If so, splits the segment in two, forming a
|
|
|
|
* joint at \a aP and stores updated topology in node \a aNode.
|
2017-08-03 15:53:07 +00:00
|
|
|
*/
|
|
|
|
bool SplitAdjacentSegments( NODE* aNode, ITEM* aSeg, const VECTOR2I& aP );
|
|
|
|
|
2015-08-19 16:07:16 +00:00
|
|
|
|
2014-05-14 13:53:54 +00:00
|
|
|
private:
|
2013-09-26 21:53:54 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Re-route the current track to point aP. Returns true, when routing has completed
|
|
|
|
* successfully (i.e. the trace end has reached point \a aP), and false if the trace was
|
2021-01-01 01:02:06 +00:00
|
|
|
* stuck somewhere on the way. May call routeStep() repetitively due to mouse smoothing.
|
2021-01-27 22:15:38 +00:00
|
|
|
*
|
2013-09-26 21:53:54 +00:00
|
|
|
* @param aP ending point of current route.
|
|
|
|
* @return true, if the routing is complete.
|
|
|
|
*/
|
2014-05-14 13:53:54 +00:00
|
|
|
bool route( const VECTOR2I& aP );
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2014-05-14 13:53:54 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Draw the "leading" rats nest line, which connects the end of currently routed track and
|
2021-01-01 01:02:06 +00:00
|
|
|
* the nearest yet unrouted item. If the routing for current net is complete, draws nothing.
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
|
|
|
void updateLeadingRatLine();
|
2014-11-14 19:19:00 +00:00
|
|
|
|
2014-05-14 13:53:54 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Set the board to route.
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
2016-08-29 17:31:13 +00:00
|
|
|
void setWorld( NODE* aWorld );
|
2014-11-14 19:19:00 +00:00
|
|
|
|
2014-05-14 13:53:54 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Initialize placement of a new line with given parameters.
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
2016-08-15 15:16:53 +00:00
|
|
|
void initPlacement();
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2014-05-14 13:53:54 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Set preferred direction of the very first track segment to be laid.
|
2014-05-14 13:53:54 +00:00
|
|
|
* Used by posture switching mechanism.
|
|
|
|
*/
|
|
|
|
void setInitialDirection( const DIRECTION_45& aDirection );
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2014-05-14 13:53:54 +00:00
|
|
|
/**
|
|
|
|
* Searches aNode for traces concurrent to aLatest and removes them. Updated
|
|
|
|
* topology is stored in aNode.
|
|
|
|
*/
|
2016-08-29 17:31:13 +00:00
|
|
|
void removeLoops( NODE* aNode, LINE& aLatest );
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2014-05-14 13:53:54 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Assemble a line starting from segment or arc aLatest, removes collinear segments
|
2021-06-09 19:32:58 +00:00
|
|
|
* and redundant vertices. If a simplification has been found, replaces the old line
|
2021-01-27 22:15:38 +00:00
|
|
|
* with the simplified one in \a aNode.
|
2014-05-14 13:53:54 +00:00
|
|
|
*/
|
2021-01-04 03:36:42 +00:00
|
|
|
void simplifyNewLine( NODE* aNode, LINKED_ITEM* aLatest );
|
2013-09-26 21:53:54 +00:00
|
|
|
|
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Check if the head of the track intersects its tail. If so, cuts the tail up to the
|
|
|
|
* intersecting segment and fixes the head direction to match the last segment before
|
|
|
|
* the cut.
|
2013-09-26 21:53:54 +00:00
|
|
|
*
|
|
|
|
* @return true if the line has been changed.
|
|
|
|
*/
|
|
|
|
bool handleSelfIntersections();
|
2013-10-14 11:43:57 +00:00
|
|
|
|
2013-09-26 21:53:54 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Deal with pull-back: reduces the tail if head trace is moved backwards wrs to the
|
|
|
|
* current tail direction.
|
2013-09-26 21:53:54 +00:00
|
|
|
*
|
|
|
|
* @return true if the line has been changed.
|
|
|
|
*/
|
|
|
|
bool handlePullback();
|
|
|
|
|
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Moves "established" segments from the head to the tail if certain conditions are met.
|
2013-09-26 21:53:54 +00:00
|
|
|
*
|
|
|
|
* @return true, if the line has been changed.
|
|
|
|
*/
|
|
|
|
bool mergeHead();
|
|
|
|
|
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Attempt to reduce the number of segments in the tail by trying to replace a certain
|
|
|
|
* number of latest tail segments with a direct trace leading to \a aEnd that does not
|
|
|
|
* collide with anything.
|
2013-09-26 21:53:54 +00:00
|
|
|
*
|
2021-01-27 22:15:38 +00:00
|
|
|
* @param aEnd is the current routing destination point.
|
2013-09-26 21:53:54 +00:00
|
|
|
* @return true if the line has been changed.
|
|
|
|
*/
|
|
|
|
bool reduceTail( const VECTOR2I& aEnd );
|
2013-10-14 11:43:57 +00:00
|
|
|
|
2013-09-26 21:53:54 +00:00
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Try to reduce the corner count of the most recent part of tail/head by merging
|
|
|
|
* obtuse/collinear segments.
|
2013-09-26 21:53:54 +00:00
|
|
|
*
|
2021-01-27 22:15:38 +00:00
|
|
|
* @return true if the line has been changed.
|
2013-09-26 21:53:54 +00:00
|
|
|
*/
|
|
|
|
bool optimizeTailHeadTransition();
|
|
|
|
|
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Compute the head trace between the current start point (m_p_start) and point \a aP,
|
|
|
|
* starting with direction defined in m_direction. The trace walks around all
|
|
|
|
* colliding solid or non-movable items. Movable segments are ignored, as they'll be
|
|
|
|
* handled later by the shove algorithm.
|
2013-09-26 21:53:54 +00:00
|
|
|
*/
|
2021-02-25 16:18:13 +00:00
|
|
|
bool routeHead( const VECTOR2I& aP, LINE& aNewHead );
|
2013-09-26 21:53:54 +00:00
|
|
|
|
|
|
|
/**
|
2021-01-27 22:15:38 +00:00
|
|
|
* Perform a single routing algorithm step, for the end point \a aP.
|
2013-09-26 21:53:54 +00:00
|
|
|
*
|
2021-01-27 22:15:38 +00:00
|
|
|
* @param aP is the ending point of current route.
|
|
|
|
* @return true if the line has been changed.
|
2013-09-26 21:53:54 +00:00
|
|
|
*/
|
|
|
|
void routeStep( const VECTOR2I& aP );
|
|
|
|
|
2021-01-27 22:15:38 +00:00
|
|
|
///< Route step walk around mode.
|
2021-02-25 16:18:13 +00:00
|
|
|
bool rhWalkOnly( const VECTOR2I& aP, LINE& aNewHead );
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2021-01-27 22:15:38 +00:00
|
|
|
///< Route step shove mode.
|
2021-02-25 16:18:13 +00:00
|
|
|
bool rhShoveOnly( const VECTOR2I& aP, LINE& aNewHead );
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2021-01-27 22:15:38 +00:00
|
|
|
///< Route step mark obstacles mode.
|
2016-08-29 17:31:13 +00:00
|
|
|
bool rhMarkObstacles( const VECTOR2I& aP, LINE& aNewHead );
|
2014-11-14 18:15:58 +00:00
|
|
|
|
2016-08-29 17:31:13 +00:00
|
|
|
const VIA makeVia( const VECTOR2I& aP );
|
2015-02-18 16:53:46 +00:00
|
|
|
|
2021-05-27 22:08:31 +00:00
|
|
|
bool buildInitialLine( const VECTOR2I& aP, LINE& aHead, bool aForceNoVia = false );
|
2015-02-18 16:53:46 +00:00
|
|
|
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2021-01-27 22:15:38 +00:00
|
|
|
DIRECTION_45 m_direction; ///< current routing direction
|
|
|
|
DIRECTION_45 m_initial_direction; ///< routing direction for new traces
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2021-01-27 22:15:38 +00:00
|
|
|
LINE m_head; ///< the volatile part of the track from the previously
|
|
|
|
///< analyzed point to the current routing destination
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2021-06-06 22:56:33 +00:00
|
|
|
LINE m_last_head; ///< Most recent successful (non-colliding) head
|
|
|
|
|
2021-01-27 22:15:38 +00:00
|
|
|
LINE m_tail; ///< routing "tail": part of the track that has been already
|
|
|
|
///< fixed due to collisions with obstacles
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2021-01-27 22:15:38 +00:00
|
|
|
NODE* m_world; ///< pointer to world to search colliding items
|
|
|
|
VECTOR2I m_p_start; ///< current routing start (end of tail, beginning of head)
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2021-01-27 22:15:38 +00:00
|
|
|
std::unique_ptr<SHOVE> m_shove; ///< The shove engine
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2021-01-27 22:15:38 +00:00
|
|
|
NODE* m_currentNode; ///< Current world state
|
|
|
|
NODE* m_lastNode; ///< Postprocessed world state (including marked collisions &
|
|
|
|
///< removed loops)
|
2014-05-14 13:53:54 +00:00
|
|
|
|
2016-08-29 17:31:13 +00:00
|
|
|
SIZES_SETTINGS m_sizes;
|
2014-11-14 18:15:58 +00:00
|
|
|
|
2021-01-01 01:02:06 +00:00
|
|
|
bool m_placingVia;
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2021-01-01 01:02:06 +00:00
|
|
|
int m_currentNet;
|
|
|
|
int m_currentLayer;
|
2014-05-14 13:53:54 +00:00
|
|
|
|
2021-01-01 01:02:06 +00:00
|
|
|
VECTOR2I m_currentEnd;
|
|
|
|
VECTOR2I m_currentStart;
|
|
|
|
LINE m_currentTrace;
|
2014-05-14 13:53:54 +00:00
|
|
|
|
2021-01-01 01:02:06 +00:00
|
|
|
PNS_MODE m_currentMode;
|
|
|
|
ITEM* m_startItem;
|
2014-11-14 18:15:58 +00:00
|
|
|
|
2021-01-01 01:02:06 +00:00
|
|
|
bool m_idle;
|
|
|
|
bool m_chainedPlacement;
|
|
|
|
bool m_orthoMode;
|
|
|
|
bool m_placementCorrect;
|
2020-02-07 19:57:24 +00:00
|
|
|
|
2021-01-01 01:02:06 +00:00
|
|
|
FIXED_TAIL m_fixedTail;
|
2020-10-19 19:42:06 +00:00
|
|
|
MOUSE_TRAIL_TRACER m_mouseTrailTracer;
|
2013-09-18 17:55:16 +00:00
|
|
|
};
|
2013-09-26 21:53:54 +00:00
|
|
|
|
2016-08-29 14:38:11 +00:00
|
|
|
}
|
|
|
|
|
2013-09-26 21:53:54 +00:00
|
|
|
#endif // __PNS_LINE_PLACER_H
|