KiCad PCB EDA Suite
Loading...
Searching...
No Matches
TEARDROP_PARAMETERS Class Reference

TEARDROP_PARAMETARS is a helper class to handle parameters needed to build teardrops for a board these parameters are sizes and filters. More...

#include <teardrop_parameters.h>

Public Member Functions

 TEARDROP_PARAMETERS ()
 
void SetTeardropMaxSize (int aMaxLen, int aMaxHeight)
 Set max allowed length and height for teardrops in IU.
 
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 * aLenghtRatio and VIAPAD width * aHeightRatio.
 
void SetTeardropCurvedPrm (int aCurveSegCount=0)
 Set the teardrop curved or straight.
 
bool IsCurved () const
 
bool operator== (const TEARDROP_PARAMETERS &aOther) const
 
bool operator!= (const TEARDROP_PARAMETERS &aOther) const
 

Public Attributes

int m_TdMaxLen
 max allowed length for teardrops in IU. <= 0 to disable
 
int m_TdMaxWidth
 max allowed height for teardrops in IU. <= 0 to disable
 
double m_BestLengthRatio
 The length of a teardrop as ratio between length and size of pad/via.
 
double m_BestWidthRatio
 The height of a teardrop as ratio between height 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.0 (100 %) always creates a teardrop, 0.0 (0%) never create a teardrop.
 
int m_CurveSegCount
 True if the teardrop should be curved.
 
bool m_Enabled
 Flag to enable teardrops.
 
bool m_AllowUseTwoTracks
 True to create teardrops using 2 track segments if the first in too small.
 
bool m_TdOnPadsInZones
 A filter to exclude pads inside zone fills.
 

Detailed Description

TEARDROP_PARAMETARS is a helper class to handle parameters needed to build teardrops for a board these parameters are sizes and filters.

Definition at line 47 of file teardrop_parameters.h.

Constructor & Destructor Documentation

◆ TEARDROP_PARAMETERS()

TEARDROP_PARAMETERS::TEARDROP_PARAMETERS ( )
inline

Definition at line 50 of file teardrop_parameters.h.

Member Function Documentation

◆ IsCurved()

◆ operator!=()

bool TEARDROP_PARAMETERS::operator!= ( const TEARDROP_PARAMETERS aOther) const
inline

Definition at line 107 of file teardrop_parameters.h.

◆ operator==()

bool TEARDROP_PARAMETERS::operator== ( const TEARDROP_PARAMETERS aOther) const
inline

◆ SetTeardropCurvedPrm()

void TEARDROP_PARAMETERS::SetTeardropCurvedPrm ( int  aCurveSegCount = 0)
inline

Set the teardrop curved or straight.

Definition at line 87 of file teardrop_parameters.h.

References m_CurveSegCount.

◆ SetTeardropMaxSize()

void TEARDROP_PARAMETERS::SetTeardropMaxSize ( int  aMaxLen,
int  aMaxHeight 
)
inline

Set max allowed length and height for teardrops in IU.

a value <= 0 disable the constraint

Definition at line 67 of file teardrop_parameters.h.

References m_TdMaxLen, and m_TdMaxWidth.

◆ SetTeardropSizeRatio()

void TEARDROP_PARAMETERS::SetTeardropSizeRatio ( double  aLenghtRatio = 0.5,
double  aHeightRatio = 1.0 
)
inline

Set prefered length and height ratio for teardrops the prefered length and height are VIAPAD width * aLenghtRatio and VIAPAD width * aHeightRatio.

Definition at line 78 of file teardrop_parameters.h.

References m_BestLengthRatio, and m_BestWidthRatio.

Member Data Documentation

◆ m_AllowUseTwoTracks

◆ m_BestLengthRatio

◆ m_BestWidthRatio

◆ m_CurveSegCount

◆ m_Enabled

◆ m_TdMaxLen

◆ m_TdMaxWidth

◆ m_TdOnPadsInZones

◆ m_WidthtoSizeFilterRatio


The documentation for this class was generated from the following file: