KiCad PCB EDA Suite
|
Describe constraints between two edit handles. More...
#include <edit_constraints.h>
Public Member Functions | |
EDIT_CONSTRAINT (EDIT_TYPE &aConstrained) | |
virtual | ~EDIT_CONSTRAINT () |
virtual void | Apply (EDIT_TYPE &aHandle, const GRID_HELPER &aGrid)=0 |
Correct coordinates of the constrained edit handle. | |
void | Apply (const GRID_HELPER &aGrid) |
Correct coordinates of the constrained edit handle. | |
Protected Attributes | |
EDIT_TYPE & | m_constrained |
Point that is constrained by rules implemented by Apply(). | |
Describe constraints between two edit handles.
After the constrained handle is changed, Apply() has to be called to fix its coordinates according to the implemented constraint.
Definition at line 62 of file edit_constraints.h.
|
inline |
aConstrained | is EDIT_POINT to which the constraint is applied. |
Definition at line 68 of file edit_constraints.h.
|
inlinevirtual |
Definition at line 72 of file edit_constraints.h.
|
inline |
Correct coordinates of the constrained edit handle.
Definition at line 82 of file edit_constraints.h.
References EDIT_CONSTRAINT< EDIT_TYPE >::Apply(), and EDIT_CONSTRAINT< EDIT_TYPE >::m_constrained.
|
pure virtual |
Correct coordinates of the constrained edit handle.
Implemented in EC_CONVERGING, EC_PERPLINE, EC_VERTICAL, EC_HORIZONTAL, EC_45DEGREE, EC_LINE, and EC_CIRCLE.
Referenced by EDIT_CONSTRAINT< EDIT_TYPE >::Apply(), and EC_CONVERGING::Apply().
|
protected |
Point that is constrained by rules implemented by Apply().
Definition at line 88 of file edit_constraints.h.
Referenced by EDIT_CONSTRAINT< EDIT_TYPE >::Apply().