KiCad PCB EDA Suite
Loading...
Searching...
No Matches
EC_HORIZONTAL Class Reference

EDIT_CONSTRAINT that imposes a constraint that two points have to have the same Y coordinate. More...

#include <edit_constraints.h>

Inheritance diagram for EC_HORIZONTAL:
EDIT_CONSTRAINT< EDIT_POINT >

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. More...
 
void Apply (const GRID_HELPER &aGrid)
 Correct coordinates of the constrained edit handle. More...
 

Protected Attributes

EDIT_POINTm_constrained
 Point that is constrained by rules implemented by Apply(). More...
 

Private Attributes

const EDIT_POINTm_constrainer
 Point that imposes the constraint. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ EC_HORIZONTAL()

EC_HORIZONTAL::EC_HORIZONTAL ( EDIT_POINT aConstrained,
const EDIT_POINT aConstrainer 
)
inline
Parameters
aConstrainedis the point that is put under constrain.
aConstraineris the point that is the source of the constrain. Correct coordinates of the constrained edit handle.

Definition at line 125 of file edit_constraints.h.

Member Function Documentation

◆ Apply() [1/2]

void EDIT_CONSTRAINT< EDIT_POINT >::Apply ( const GRID_HELPER aGrid)
inlineinherited

Correct coordinates of the constrained edit handle.

Definition at line 82 of file edit_constraints.h.

◆ Apply() [2/2]

void EC_HORIZONTAL::Apply ( EDIT_POINT aHandle,
const GRID_HELPER aGrid 
)
overridevirtual

Member Data Documentation

◆ m_constrained

EDIT_POINT & EDIT_CONSTRAINT< EDIT_POINT >::m_constrained
protectedinherited

Point that is constrained by rules implemented by Apply().

Definition at line 88 of file edit_constraints.h.

◆ m_constrainer

const EDIT_POINT& EC_HORIZONTAL::m_constrainer
private

Point that imposes the constraint.

Definition at line 134 of file edit_constraints.h.

Referenced by Apply().


The documentation for this class was generated from the following files: