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. | |
virtual void | Apply (EDIT_LINE &aHandle, const GRID_HELPER &aGrid) override |
Correct coordinates of the constrained edit handle. | |
void | Apply (const GRID_HELPER &aGrid) |
Correct coordinates of the constrained edit handle. | |
Protected Attributes | |
EDIT_LINE & | m_constrained |
Point that is constrained by rules implemented by Apply(). | |
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 250 of file edit_constraints.h.
EC_PERPLINE::EC_PERPLINE | ( | EDIT_LINE & | aLine | ) |
Definition at line 226 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 256 of file edit_constraints.h.
|
inlineinherited |
Correct coordinates of the constrained edit handle.
Definition at line 82 of file edit_constraints.h.
|
overridevirtual |
Correct coordinates of the constrained edit handle.
Implements EDIT_CONSTRAINT< EDIT_LINE >.
Definition at line 234 of file edit_constraints.cpp.
References delta, EDIT_LINE::GetEnd(), EDIT_LINE::GetOrigin(), EDIT_POINT::GetPosition(), EDIT_LINE::GetPosition(), intersect(), SEG::IntersectLines(), 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 88 of file edit_constraints.h.
|
private |
Definition at line 264 of file edit_constraints.h.
Referenced by Apply(), and EC_PERPLINE().
|
private |
Definition at line 263 of file edit_constraints.h.
Referenced by Apply(), and EC_PERPLINE().