KiCad PCB EDA Suite
|
EDIT_CONSTRAINT that imposes a constraint that two points have to have the same X coordinate. More...
#include <edit_constraints.h>
Public Member Functions | |
EC_VERTICAL (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 have the same X coordinate.
Definition at line 95 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 102 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 35 of file edit_constraints.cpp.
References GRID_HELPER::AlignGrid(), EDIT_POINT::GetGridConstraint(), EDIT_POINT::GetPosition(), m_constrainer, EDIT_POINT::SetPosition(), SNAP_TO_GRID, and VECTOR2< T >::x.
|
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 111 of file edit_constraints.h.
Referenced by Apply().