| 
    KiCad PCB EDA Suite
    
   | 
 
#include <pns_mouse_trail_tracer.h>
Public Member Functions | |
| MOUSE_TRAIL_TRACER () | |
| ~MOUSE_TRAIL_TRACER () | |
| void | Clear () | 
| void | AddTrailPoint (const VECTOR2I &aP) | 
| void | SetTolerance (int toll) | 
| void | SetDefaultDirections (DIRECTION_45 aInitDirection, DIRECTION_45 aLastSegDir) | 
| DIRECTION_45 | GetPosture (const VECTOR2I &aP) | 
| void | FlipPosture () | 
| void | SetMouseDisabled (bool aDisabled=true) | 
| Disables the mouse-trail portion of the posture solver; leaving only the manual posture switch and the previous-segment posture algorithm.   | |
| bool | IsManuallyForced () const | 
| VECTOR2I | GetTrailLeadVector () const | 
Private Attributes | |
| SHAPE_LINE_CHAIN | m_trail | 
| int | m_tolerance | 
| DIRECTION_45 | m_direction | 
| DIRECTION_45 | m_lastSegDirection | 
| bool | m_forced | 
| bool | m_disableMouse | 
| bool | m_manuallyForced | 
Definition at line 32 of file pns_mouse_trail_tracer.h.
| PNS::MOUSE_TRAIL_TRACER::MOUSE_TRAIL_TRACER | ( | ) | 
Definition at line 28 of file pns_mouse_trail_tracer.cpp.
References Clear(), m_disableMouse, and m_tolerance.
| PNS::MOUSE_TRAIL_TRACER::~MOUSE_TRAIL_TRACER | ( | ) | 
Definition at line 36 of file pns_mouse_trail_tracer.cpp.
| void PNS::MOUSE_TRAIL_TRACER::AddTrailPoint | ( | const VECTOR2I & | aP | ) | 
Definition at line 47 of file pns_mouse_trail_tracer.cpp.
References CYAN, PNS::ROUTER_IFACE::GetDebugDecorator(), PNS::ROUTER::GetInstance(), PNS::ROUTER::GetInterface(), m_tolerance, m_trail, PNS_DBG, and SEG::SquaredDistance().
| void PNS::MOUSE_TRAIL_TRACER::Clear | ( | ) | 
Definition at line 39 of file pns_mouse_trail_tracer.cpp.
References m_forced, m_manuallyForced, and m_trail.
Referenced by MOUSE_TRAIL_TRACER().
| void PNS::MOUSE_TRAIL_TRACER::FlipPosture | ( | ) | 
Definition at line 271 of file pns_mouse_trail_tracer.cpp.
References m_direction, m_forced, and m_manuallyForced.
| DIRECTION_45 PNS::MOUSE_TRAIL_TRACER::GetPosture | ( | const VECTOR2I & | aP | ) | 
Definition at line 84 of file pns_mouse_trail_tracer.cpp.
References DIRECTION_45::ANG_ACUTE, DIRECTION_45::ANG_HALF_FULL, DIRECTION_45::ANG_OBTUSE, DIRECTION_45::ANG_RIGHT, DIRECTION_45::Angle(), SHAPE_LINE_CHAIN::Append(), SHAPE_LINE_CHAIN::Area(), BLUE, SHAPE_LINE_CHAIN::CSegment(), DIRECTION_45::Format(), PNS::ROUTER_IFACE::GetDebugDecorator(), PNS::ROUTER::GetInstance(), PNS::ROUTER::GetInterface(), GREEN, SEG::Length(), m_direction, m_disableMouse, m_forced, m_lastSegDirection, m_manuallyForced, m_tolerance, m_trail, PNS_DBG, SHAPE_LINE_CHAIN::SetClosed(), SHAPE_LINE_CHAIN::Simplify(), DIRECTION_45::UNDEFINED, and YELLOW.
| VECTOR2I PNS::MOUSE_TRAIL_TRACER::GetTrailLeadVector | ( | ) | const | 
Definition at line 279 of file pns_mouse_trail_tracer.cpp.
References m_trail.
      
  | 
  inline | 
Definition at line 60 of file pns_mouse_trail_tracer.h.
References m_manuallyForced.
      
  | 
  inline | 
Definition at line 44 of file pns_mouse_trail_tracer.h.
References m_direction, and m_lastSegDirection.
      
  | 
  inline | 
Disables the mouse-trail portion of the posture solver; leaving only the manual posture switch and the previous-segment posture algorithm.
Definition at line 58 of file pns_mouse_trail_tracer.h.
References m_disableMouse.
      
  | 
  inline | 
Definition at line 42 of file pns_mouse_trail_tracer.h.
References m_tolerance.
      
  | 
  private | 
Definition at line 66 of file pns_mouse_trail_tracer.h.
Referenced by FlipPosture(), GetPosture(), and SetDefaultDirections().
      
  | 
  private | 
Definition at line 69 of file pns_mouse_trail_tracer.h.
Referenced by GetPosture(), MOUSE_TRAIL_TRACER(), and SetMouseDisabled().
      
  | 
  private | 
Definition at line 68 of file pns_mouse_trail_tracer.h.
Referenced by Clear(), FlipPosture(), and GetPosture().
      
  | 
  private | 
Definition at line 67 of file pns_mouse_trail_tracer.h.
Referenced by GetPosture(), and SetDefaultDirections().
      
  | 
  private | 
Definition at line 70 of file pns_mouse_trail_tracer.h.
Referenced by Clear(), FlipPosture(), GetPosture(), and IsManuallyForced().
      
  | 
  private | 
Definition at line 65 of file pns_mouse_trail_tracer.h.
Referenced by AddTrailPoint(), GetPosture(), MOUSE_TRAIL_TRACER(), and SetTolerance().
      
  | 
  private | 
Definition at line 64 of file pns_mouse_trail_tracer.h.
Referenced by AddTrailPoint(), Clear(), GetPosture(), and GetTrailLeadVector().