25#ifndef TEARDROP_PARAMS_H
26#define TEARDROP_PARAMS_H
constexpr EDA_IU_SCALE pcbIUScale
TEARDROP_PARAMETERS_LIST is a helper class to handle the list of TEARDROP_PARAMETERS needed to build ...
bool m_TargetPadsWithNoHole
True to create teardrops for pads without holes (SMD and others.
TEARDROP_PARAMETERS_LIST()
bool m_TargetViasPads
True to create teardrops for vias and pads with holes.
std::vector< TEARDROP_PARAMETERS > m_params_list
bool m_UseRoundShapesOnly
True to create teardrops for round shapes only.
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()
TEARDROP_PARAMETARS is a helper class to handle parameters needed to build teardrops for a board thes...
int m_CurveSegCount
number of segments to build the curved sides of a teardrop area must be > 2.
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 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
void SetTeardropCurvedPrm(int aCurveSegCount=0)
Set the params for teardrop using curved shape note: if aCurveSegCount is < 3, the shape uses a strai...
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.
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)