25#ifndef TEARDROP_PARAMS_H
26#define TEARDROP_PARAMS_H
109 return !( *
this == aOther );
constexpr EDA_IU_SCALE pcbIUScale
TEARDROP_PARAMETERS_LIST is a helper class to handle the list of TEARDROP_PARAMETERS needed to build ...
TEARDROP_PARAMETERS_LIST()
std::vector< TEARDROP_PARAMETERS > m_params_list
bool m_UseRoundShapesOnly
True to create teardrops for round shapes only.
bool m_TargetVias
True to create teardrops for vias.
bool m_TargetPTHPads
True to create teardrops for pads with holes.
bool m_TargetTrack2Track
True to create teardrops at the end of a track connected to the end of another track having a differe...
TEARDROP_PARAMETERS * GetParameters(TARGET_TD aTdType)
size_t GetParametersCount()
bool m_TargetSMDPads
True to create teardrops for pads SMD, edge connectors,.
TEARDROP_PARAMETARS is a helper class to handle parameters needed to build teardrops for a board thes...
int m_CurveSegCount
True if the teardrop should be curved.
double m_BestWidthRatio
The height of a teardrop as ratio between height and size of pad/via.
void SetTeardropMaxSize(int aMaxLen, int aMaxHeight)
Set max allowed length and height for teardrops in IU.
int m_TdMaxLen
max allowed length for teardrops in IU. <= 0 to disable
bool operator==(const TEARDROP_PARAMETERS &aOther) const
bool m_AllowUseTwoTracks
True to create teardrops using 2 track segments if the first in too small.
int m_TdMaxWidth
max allowed height for teardrops in IU. <= 0 to disable
bool operator!=(const TEARDROP_PARAMETERS &aOther) const
void SetTeardropCurvedPrm(int aCurveSegCount=0)
Set the teardrop curved or straight.
double m_BestLengthRatio
The length of a teardrop as ratio between length and size of pad/via.
double m_WidthtoSizeFilterRatio
The ratio (H/D) between the via/pad size and the track width max value to create a teardrop 1....
bool m_TdOnPadsInZones
A filter to exclude pads inside zone fills.
bool m_Enabled
Flag to enable teardrops.
void SetTeardropSizeRatio(double aLenghtRatio=0.5, double aHeightRatio=1.0)
Set prefered length and height ratio for teardrops the prefered length and height are VIAPAD width * ...
std::string GetTeardropTargetCanonicalName(TARGET_TD aTdType)
TARGET_TD GetTeardropTargetTypeFromCanonicalName(const std::string &aTargetName)