KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pns_mouse_trail_tracer.h
Go to the documentation of this file.
1/*
2 * KiRouter - a push-and-(sometimes-)shove PCB router
3 *
4 * Copyright (C) 2013-2020 CERN
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 * Author: Tomasz Wlostowski <[email protected]>
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation, either version 3 of the License, or (at your
11 * option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#ifndef __PNS_MOUSE_TRAIL_TRACER_H
23#define __PNS_MOUSE_TRAIL_TRACER_H
24
25#include <math/vector2d.h>
26
29
30namespace PNS {
31
33{
34public:
37
38 void Clear();
39
40 void AddTrailPoint( const VECTOR2I& aP );
41
42 void SetTolerance( int toll ) { m_tolerance = toll; }
43
44 void SetDefaultDirections( DIRECTION_45 aInitDirection, DIRECTION_45 aLastSegDir )
45 {
46 m_direction = aInitDirection;
47 m_lastSegDirection = aLastSegDir;
48 }
49
50 DIRECTION_45 GetPosture( const VECTOR2I& aP );
51
52 void FlipPosture();
53
58 void SetMouseDisabled( bool aDisabled = true ) { m_disableMouse = aDisabled; }
59
60 bool IsManuallyForced() const { return m_manuallyForced; }
61
63private:
71};
72
73} // namespace PNS
74
75#endif
Represent route directions & corner angles in a 45-degree metric.
Definition: direction45.h:37
void SetDefaultDirections(DIRECTION_45 aInitDirection, DIRECTION_45 aLastSegDir)
void SetMouseDisabled(bool aDisabled=true)
Disables the mouse-trail portion of the posture solver; leaving only the manual posture switch and th...
void AddTrailPoint(const VECTOR2I &aP)
DIRECTION_45 GetPosture(const VECTOR2I &aP)
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
Push and Shove diff pair dimensions (gap) settings dialog.