KiCad PCB EDA Suite
Loading...
Searching...
No Matches
arc_draw_mode.h File Reference

Go to the source code of this file.

Enumerations

enum class  ARC_DRAW_MODE {
  CENTER_START_END = 0 , START_END_MID , START_END_CENTER , TANGENT ,
  START_DIR_END
}
 Construction sequence used when interactively drawing a circular arc. More...
 

Functions

ARC_DRAW_MODE IncrementArcDrawMode (ARC_DRAW_MODE aMode)
 Return the next mode in the cycle order used by the cycle-mode action.
 

Enumeration Type Documentation

◆ ARC_DRAW_MODE

enum class ARC_DRAW_MODE
strong

Construction sequence used when interactively drawing a circular arc.

Values are persisted in the application settings, so new modes must be appended.

Enumerator
CENTER_START_END 

Center, then start (sets radius), then sweep to the end.

START_END_MID 

Start, end, then the arc midpoint dragged along the chord bisector.

START_END_CENTER 

Start, end, then the center dragged along the chord bisector.

TANGENT 

End only; start and departure direction come from a tangent seed.

START_DIR_END 

Start, a point giving the departure direction, then the end.

Definition at line 27 of file arc_draw_mode.h.

Function Documentation

◆ IncrementArcDrawMode()

ARC_DRAW_MODE IncrementArcDrawMode ( ARC_DRAW_MODE aMode)
inline

Return the next mode in the cycle order used by the cycle-mode action.

Definition at line 38 of file arc_draw_mode.h.

References CENTER_START_END, START_DIR_END, START_END_CENTER, START_END_MID, and TANGENT.

Referenced by ARC_MODE_SESSION::HandleModeEvent(), and EDA_DRAW_FRAME::setArcModeConditions().