![]() |
KiCad PCB EDA Suite
|
EDIT_CONSTRAINT that imposes a constraint that a point has to lie on a line (determined by 2 points). More...
#include <edit_constraints.h>
Public Member Functions | |
EC_LINE (EDIT_POINT &aConstrained, const EDIT_POINT &aConstrainer) | |
Correct coordinates of the constrained edit handle. More... | |
virtual void | Apply (EDIT_POINT &aHandle) override |
Correct coordinates of the constrained edit handle. More... | |
void | Apply () |
Correct coordinates of the constrained edit handle. More... | |
Protected Attributes | |
EDIT_POINT & | m_constrained |
Point that is constrained by rules implemented by Apply(). More... | |
Private Attributes | |
const EDIT_POINT & | m_constrainer |
Point that imposes the constraint. More... | |
VECTOR2I | m_line |
Vector representing the constraining line. More... | |
EDIT_CONSTRAINT that imposes a constraint that a point has to lie on a line (determined by 2 points).
Definition at line 152 of file edit_constraints.h.
EC_LINE::EC_LINE | ( | EDIT_POINT & | aConstrained, |
const EDIT_POINT & | aConstrainer | ||
) |
Correct coordinates of the constrained edit handle.
Definition at line 63 of file edit_constraints.cpp.
References EDIT_POINT::GetPosition(), EDIT_CONSTRAINT< EDIT_POINT >::m_constrained, m_constrainer, and m_line.
|
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_POINT >.
Definition at line 70 of file edit_constraints.cpp.
References EDIT_POINT::GetPosition(), intersect(), m_constrainer, m_line, main(), VECTOR2< T >::Perpendicular(), and EDIT_POINT::SetPosition().
|
protectedinherited |
Point that is constrained by rules implemented by Apply().
Definition at line 77 of file edit_constraints.h.
|
private |
Point that imposes the constraint.
Definition at line 161 of file edit_constraints.h.
|
private |
Vector representing the constraining line.
Definition at line 162 of file edit_constraints.h.