KiCad PCB EDA Suite
Loading...
Searching...
No Matches
teardrop_parameters.cpp File Reference

Go to the source code of this file.

Macros

#define TARGET_NAME_ROUND   "td_round_shape"
 
#define TARGET_NAME_RECT   "td_rect_shape"
 
#define TARGET_NAME_TRACK   "td_track_end"
 

Functions

std::string GetTeardropTargetCanonicalName (TARGET_TD aTdType)
 
TARGET_TD GetTeardropTargetTypeFromCanonicalName (const std::string &aTargetName)
 

Macro Definition Documentation

◆ TARGET_NAME_RECT

#define TARGET_NAME_RECT   "td_rect_shape"

Definition at line 28 of file teardrop_parameters.cpp.

◆ TARGET_NAME_ROUND

#define TARGET_NAME_ROUND   "td_round_shape"

Definition at line 27 of file teardrop_parameters.cpp.

◆ TARGET_NAME_TRACK

#define TARGET_NAME_TRACK   "td_track_end"

Definition at line 29 of file teardrop_parameters.cpp.

Function Documentation

◆ GetTeardropTargetCanonicalName()

std::string GetTeardropTargetCanonicalName ( TARGET_TD  aTdType)
Returns
the canonical name of a target type of a TEARDROP_PARAMETERS
Parameters
aTdTypeis the target type

Definition at line 31 of file teardrop_parameters.cpp.

References name, TARGET_NAME_RECT, TARGET_NAME_ROUND, TARGET_NAME_TRACK, TARGET_RECT, TARGET_ROUND, and TARGET_TRACK.

Referenced by BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS().

◆ GetTeardropTargetTypeFromCanonicalName()

TARGET_TD GetTeardropTargetTypeFromCanonicalName ( const std::string &  aTargetName)
Returns
the target type from a canonical name of a TEARDROP_PARAMETERS
Parameters
aTargetNameis the canonical name

Definition at line 48 of file teardrop_parameters.cpp.

References TARGET_NAME_RECT, TARGET_NAME_ROUND, TARGET_NAME_TRACK, TARGET_RECT, TARGET_ROUND, TARGET_TRACK, and TARGET_UNKNOWN.

Referenced by BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS().