KiCad PCB EDA Suite
Loading...
Searching...
No Matches
edit_constraints.h File Reference
#include <math/vector2d.h>
#include <tool/grid_helper.h>
#include <functional>

Go to the source code of this file.

Classes

class  EDIT_CONSTRAINT< EDIT_TYPE >
 Describe constraints between two edit handles. More...
 
class  EC_VERTICAL
 EDIT_CONSTRAINT that imposes a constraint that two points have to have the same X coordinate. More...
 
class  EC_HORIZONTAL
 EDIT_CONSTRAINT that imposes a constraint that two points have to have the same Y coordinate. More...
 
class  EC_45DEGREE
 EDIT_CONSTRAINT that imposes a constraint that two points have to be located at angle of 45 degree multiplicity. More...
 
class  EC_90DEGREE
 EDIT_CONSTRAINT that imposes a constraint that a point has to be located at angle of 90 degree multiplicity (i.e. More...
 
class  EC_LINE
 EDIT_CONSTRAINT that imposes a constraint that a point has to lie on a line (determined by 2 points). More...
 
class  EC_CIRCLE
 EDIT_CONSTRAINT that imposes a constraint that a point has to lie on a circle. More...
 
class  EC_CONVERGING
 EDIT_CONSTRAINT for polygon line dragging. More...
 
class  EC_PERPLINE
 EDIT_CONSTRAINT for a EDIT_LINE, that constrains the line to move perpendicular to the line itself. More...
 

Enumerations

enum class  POLYGON_LINE_MODE { CONVERGING , FIXED_LENGTH }
 Mode for polygon line edge constraints. More...
 
enum  GRID_CONSTRAINT_TYPE { IGNORE_GRID , SNAP_TO_GRID , SNAP_BY_GRID }
 
enum  SNAP_CONSTRAINT_TYPE { IGNORE_SNAPS , OBJECT_LAYERS , ALL_LAYERS }
 

Enumeration Type Documentation

◆ GRID_CONSTRAINT_TYPE

Enumerator
IGNORE_GRID 
SNAP_TO_GRID 
SNAP_BY_GRID 

Definition at line 50 of file edit_constraints.h.

◆ POLYGON_LINE_MODE

enum class POLYGON_LINE_MODE
strong

Mode for polygon line edge constraints.

Determines what happens to the dragged line's length when moving perpendicular to the line.

Enumerator
CONVERGING 

Adjacent lines converge/diverge, dragged line length changes.

FIXED_LENGTH 

Dragged line maintains its length, adjacent lines adjust angles.

Definition at line 43 of file edit_constraints.h.

◆ SNAP_CONSTRAINT_TYPE

Enumerator
IGNORE_SNAPS 
OBJECT_LAYERS 
ALL_LAYERS 

Definition at line 58 of file edit_constraints.h.