| 
    KiCad PCB EDA Suite
    
   | 
 
EDIT_CONSTRAINT that imposes a constraint that two points have to have the same Y coordinate. More...
#include <edit_constraints.h>
  
Public Member Functions | |
| EC_HORIZONTAL (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 Y coordinate.
Definition at line 118 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. | 
Definition at line 125 of file edit_constraints.h.
References EDIT_CONSTRAINT< EDIT_POINT >::EDIT_CONSTRAINT(), and m_constrainer.
      
  | 
  overridevirtual | 
Correct coordinates of the constrained edit handle.
Implements EDIT_CONSTRAINT< EDIT_POINT >.
Definition at line 49 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 >::y.
      
  | 
  inlineinherited | 
Correct coordinates of the constrained edit handle.
Definition at line 82 of file edit_constraints.h.
      
  | 
  protectedinherited | 
Point that is constrained by rules implemented by Apply().
Definition at line 88 of file edit_constraints.h.
Referenced by EC_LINE::EC_LINE().
      
  | 
  private | 
Point that imposes the constraint.
Definition at line 134 of file edit_constraints.h.
Referenced by Apply(), and EC_HORIZONTAL().