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 params for teardrop using curved shape note: if aCurveSegCount is < 3, the shape uses a straight line.
 
bool IsCurved () const
 
bool operator== (const TEARDROP_PARAMETERS &aOther) const
 
bool operator!= (const TEARDROP_PARAMETERS &aOther) const
 

Public Attributes

bool m_Enabled
 
bool m_AllowUseTwoTracks
 True to create teardrops using 2 track segments if the first in too small.
 
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.
 
int m_CurveSegCount
 number of segments to build the curved sides of a teardrop area must be > 2.
 
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.
 
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 108 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 params for teardrop using curved shape note: if aCurveSegCount is < 3, the shape uses a straight line.

Definition at line 88 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: