|
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 73 of file edit_constraints.h.
|
inline |
| aConstrained | is EDIT_POINT to which the constraint is applied. |
Definition at line 79 of file edit_constraints.h.
References m_constrained.
|
inlinevirtual |
Definition at line 83 of file edit_constraints.h.
|
inline |
Correct coordinates of the constrained edit handle.
Definition at line 93 of file edit_constraints.h.
References Apply(), and m_constrained.
|
pure virtual |
Correct coordinates of the constrained edit handle.
Implemented in EC_45DEGREE, EC_90DEGREE, EC_CIRCLE, EC_CONVERGING, EC_HORIZONTAL, EC_LINE, EC_PERPLINE, and EC_VERTICAL.
Referenced by Apply().
|
protected |
Point that is constrained by rules implemented by Apply().
Definition at line 99 of file edit_constraints.h.
Referenced by Apply(), and EDIT_CONSTRAINT().