KiCad PCB EDA Suite
|
EDIT_CONSTRAINT that imposes a constraint that two points have to be located at angle of 45 degree multiplicity. More...
#include <edit_constraints.h>
Public Member Functions | |
EC_45DEGREE (EDIT_POINT &aConstrained, const EDIT_POINT &aConstrainer) | |
virtual void | Apply (EDIT_POINT &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_POINT & | m_constrained |
Point that is constrained by rules implemented by Apply(). | |
Private Attributes | |
const EDIT_POINT & | m_constrainer |
Point that imposes the constraint. | |
EDIT_CONSTRAINT that imposes a constraint that two points have to be located at angle of 45 degree multiplicity.
Definition at line 142 of file edit_constraints.h.
|
inline |
aConstrained | is the point that is put under constrain. |
aConstrainer | is the point that is the source of the constrain. Correct coordinates of the constrained edit handle. |
Definition at line 149 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_POINT >.
Definition at line 59 of file edit_constraints.cpp.
References GRID_HELPER::AlignGrid(), EDIT_POINT::GetGridConstraint(), EDIT_POINT::GetPosition(), GetVectorSnapped45(), m_constrainer, EDIT_POINT::SetPosition(), SNAP_TO_GRID, VECTOR2< T >::x, and VECTOR2< T >::y.
|
protectedinherited |
Point that is constrained by rules implemented by Apply().
Definition at line 88 of file edit_constraints.h.
|
private |
Point that imposes the constraint.
Definition at line 158 of file edit_constraints.h.
Referenced by Apply().