![]() |
KiCad PCB EDA Suite
|
EDIT_CONSTRAINT for a EDIT_LINE, that constrains the line to move perpendicular to the line itself. More...
#include <edit_constraints.h>
Public Member Functions | |
EC_PERPLINE (EDIT_LINE &aLine) | |
virtual | ~EC_PERPLINE () |
Correct coordinates of the constrained edit handle. More... | |
virtual void | Apply (EDIT_LINE &aHandle) override |
Correct coordinates of the constrained edit handle. More... | |
void | Apply () |
Correct coordinates of the constrained edit handle. More... | |
Protected Attributes | |
EDIT_LINE & | m_constrained |
Point that is constrained by rules implemented by Apply(). More... | |
Private Attributes | |
VECTOR2I | m_mid |
VECTOR2I | m_line |
EDIT_CONSTRAINT for a EDIT_LINE, that constrains the line to move perpendicular to the line itself.
Definition at line 255 of file edit_constraints.h.
EC_PERPLINE::EC_PERPLINE | ( | EDIT_LINE & | aLine | ) |
Definition at line 199 of file edit_constraints.cpp.
References EDIT_LINE::GetEnd(), EDIT_LINE::GetOrigin(), EDIT_POINT::GetPosition(), EDIT_LINE::GetPosition(), m_line, and m_mid.
|
inlinevirtual |
Correct coordinates of the constrained edit handle.
Definition at line 261 of file edit_constraints.h.
|
inlineinherited |
Correct coordinates of the constrained edit handle.
Definition at line 71 of file edit_constraints.h.
|
overridevirtual |
Correct coordinates of the constrained edit handle.
Implements EDIT_CONSTRAINT< EDIT_LINE >.
Definition at line 207 of file edit_constraints.cpp.
References delta, EDIT_LINE::GetEnd(), EDIT_LINE::GetOrigin(), EDIT_POINT::GetPosition(), EDIT_LINE::GetPosition(), intersect(), m_line, m_mid, main(), VECTOR2< T >::Perpendicular(), EDIT_POINT::SetPosition(), and EDIT_LINE::SetPosition().
|
protectedinherited |
Point that is constrained by rules implemented by Apply().
Definition at line 77 of file edit_constraints.h.
|
private |
Definition at line 269 of file edit_constraints.h.
Referenced by Apply(), and EC_PERPLINE().
|
private |
Definition at line 268 of file edit_constraints.h.
Referenced by Apply(), and EC_PERPLINE().