KiCad PCB EDA Suite
Loading...
Searching...
No Matches
teardrop_parameters.h File Reference
#include <string>
#include <vector>
#include <base_units.h>

Go to the source code of this file.

Classes

class  TEARDROP_PARAMETERS
 TEARDROP_PARAMETARS is a helper class to handle parameters needed to build teardrops for a board these parameters are sizes and filters. More...
 
class  TEARDROP_PARAMETERS_LIST
 TEARDROP_PARAMETERS_LIST is a helper class to handle the list of TEARDROP_PARAMETERS needed to build teardrops of different shapes (round, rect, tracks) More...
 

Enumerations

enum  TARGET_TD {
  TARGET_UNKNOWN = -1 , TARGET_ROUND = 0 , TARGET_RECT = 1 , TARGET_TRACK = 2 ,
  TARGET_COUNT = 3
}
 

Functions

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

Enumeration Type Documentation

◆ TARGET_TD

enum TARGET_TD
Enumerator
TARGET_UNKNOWN 
TARGET_ROUND 
TARGET_RECT 
TARGET_TRACK 
TARGET_COUNT 

Definition at line 33 of file teardrop_parameters.h.

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().