KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PNS::MOUSE_TRAIL_TRACER Class Reference

#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
 

Detailed Description

Definition at line 31 of file pns_mouse_trail_tracer.h.

Constructor & Destructor Documentation

◆ MOUSE_TRAIL_TRACER()

PNS::MOUSE_TRAIL_TRACER::MOUSE_TRAIL_TRACER ( )

Definition at line 27 of file pns_mouse_trail_tracer.cpp.

References Clear(), m_disableMouse, and m_tolerance.

◆ ~MOUSE_TRAIL_TRACER()

PNS::MOUSE_TRAIL_TRACER::~MOUSE_TRAIL_TRACER ( )

Definition at line 35 of file pns_mouse_trail_tracer.cpp.

Member Function Documentation

◆ AddTrailPoint()

◆ Clear()

◆ FlipPosture()

void PNS::MOUSE_TRAIL_TRACER::FlipPosture ( )

◆ GetPosture()

◆ GetTrailLeadVector()

VECTOR2I PNS::MOUSE_TRAIL_TRACER::GetTrailLeadVector ( ) const

◆ IsManuallyForced()

bool PNS::MOUSE_TRAIL_TRACER::IsManuallyForced ( ) const
inline

◆ SetDefaultDirections()

void PNS::MOUSE_TRAIL_TRACER::SetDefaultDirections ( DIRECTION_45  aInitDirection,
DIRECTION_45  aLastSegDir 
)
inline

◆ SetMouseDisabled()

void PNS::MOUSE_TRAIL_TRACER::SetMouseDisabled ( bool  aDisabled = true)
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 57 of file pns_mouse_trail_tracer.h.

References m_disableMouse.

Referenced by PNS::LINE_PLACER::Start().

◆ SetTolerance()

void PNS::MOUSE_TRAIL_TRACER::SetTolerance ( int  toll)
inline

Definition at line 41 of file pns_mouse_trail_tracer.h.

References m_tolerance.

Referenced by PNS::LINE_PLACER::FixRoute(), and PNS::LINE_PLACER::Start().

Member Data Documentation

◆ m_direction

DIRECTION_45 PNS::MOUSE_TRAIL_TRACER::m_direction
private

Definition at line 65 of file pns_mouse_trail_tracer.h.

Referenced by FlipPosture(), GetPosture(), and SetDefaultDirections().

◆ m_disableMouse

bool PNS::MOUSE_TRAIL_TRACER::m_disableMouse
private

Definition at line 68 of file pns_mouse_trail_tracer.h.

Referenced by GetPosture(), MOUSE_TRAIL_TRACER(), and SetMouseDisabled().

◆ m_forced

bool PNS::MOUSE_TRAIL_TRACER::m_forced
private

Definition at line 67 of file pns_mouse_trail_tracer.h.

Referenced by Clear(), FlipPosture(), and GetPosture().

◆ m_lastSegDirection

DIRECTION_45 PNS::MOUSE_TRAIL_TRACER::m_lastSegDirection
private

Definition at line 66 of file pns_mouse_trail_tracer.h.

Referenced by GetPosture(), and SetDefaultDirections().

◆ m_manuallyForced

bool PNS::MOUSE_TRAIL_TRACER::m_manuallyForced
private

Definition at line 69 of file pns_mouse_trail_tracer.h.

Referenced by Clear(), FlipPosture(), GetPosture(), and IsManuallyForced().

◆ m_tolerance

int PNS::MOUSE_TRAIL_TRACER::m_tolerance
private

◆ m_trail

SHAPE_LINE_CHAIN PNS::MOUSE_TRAIL_TRACER::m_trail
private

Definition at line 63 of file pns_mouse_trail_tracer.h.

Referenced by AddTrailPoint(), Clear(), GetPosture(), and GetTrailLeadVector().


The documentation for this class was generated from the following files: