KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PADSTACK::SHAPE_PROPS Struct Reference

! The set of properties that define a pad's shape on a given layer More...

#include <padstack.h>

Public Member Functions

 SHAPE_PROPS ()
 
bool operator== (const SHAPE_PROPS &aOther) const
 

Public Attributes

PAD_SHAPE shape
 Shape of the pad.
 
PAD_SHAPE anchor_shape
 Shape of the anchor when shape == PAD_SHAPE::CUSTOM.
 
VECTOR2I size
 Size of the shape, or of the anchor pad for custom shape pads.
 
VECTOR2I offset
 Offset of the shape center from the pad center.
 
double round_rect_corner_radius
 
double round_rect_radius_ratio
 
double chamfered_rect_ratio
 Size of chamfer: ratio of smallest of X,Y size.
 
int chamfered_rect_positions
 
VECTOR2I trapezoid_delta_size
 Delta for PAD_SHAPE::TRAPEZOID; half the delta squeezes one end and half expands the other.
 

Detailed Description

! The set of properties that define a pad's shape on a given layer

Definition at line 150 of file padstack.h.

Constructor & Destructor Documentation

◆ SHAPE_PROPS()

PADSTACK::SHAPE_PROPS::SHAPE_PROPS ( )

Definition at line 213 of file padstack.cpp.

Member Function Documentation

◆ operator==()

bool PADSTACK::SHAPE_PROPS::operator== ( const SHAPE_PROPS aOther) const

Member Data Documentation

◆ anchor_shape

PAD_SHAPE PADSTACK::SHAPE_PROPS::anchor_shape

Shape of the anchor when shape == PAD_SHAPE::CUSTOM.

Definition at line 153 of file padstack.h.

Referenced by PADSTACK::AnchorShape(), PADSTACK::SetAnchorShape(), and PADSTACK::ThermalSpokeAngle().

◆ chamfered_rect_positions

int PADSTACK::SHAPE_PROPS::chamfered_rect_positions

◆ chamfered_rect_ratio

double PADSTACK::SHAPE_PROPS::chamfered_rect_ratio

Size of chamfer: ratio of smallest of X,Y size.

Definition at line 167 of file padstack.h.

Referenced by PADSTACK::ChamferRatio(), PADSTACK::Deserialize(), operator==(), and PADSTACK::SetChamferRatio().

◆ offset

VECTOR2I PADSTACK::SHAPE_PROPS::offset

Offset of the shape center from the pad center.

Definition at line 163 of file padstack.h.

Referenced by PADSTACK::Offset(), and operator==().

◆ round_rect_corner_radius

double PADSTACK::SHAPE_PROPS::round_rect_corner_radius

Definition at line 165 of file padstack.h.

Referenced by operator==().

◆ round_rect_radius_ratio

double PADSTACK::SHAPE_PROPS::round_rect_radius_ratio

◆ shape

PAD_SHAPE PADSTACK::SHAPE_PROPS::shape

Shape of the pad.

Definition at line 152 of file padstack.h.

Referenced by operator==(), PADSTACK::SetShape(), PADSTACK::Shape(), and PADSTACK::ThermalSpokeAngle().

◆ size

VECTOR2I PADSTACK::SHAPE_PROPS::size

Size of the shape, or of the anchor pad for custom shape pads.

Definition at line 154 of file padstack.h.

Referenced by PADSTACK::Size().

◆ trapezoid_delta_size

VECTOR2I PADSTACK::SHAPE_PROPS::trapezoid_delta_size

Delta for PAD_SHAPE::TRAPEZOID; half the delta squeezes one end and half expands the other.

It is only valid to have a single axis be non-zero.

Definition at line 174 of file padstack.h.

Referenced by PADSTACK::TrapezoidDeltaSize().


The documentation for this struct was generated from the following files: