KiCad PCB EDA Suite
|
! 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. | |
! The set of properties that define a pad's shape on a given layer
Definition at line 164 of file padstack.h.
PADSTACK::SHAPE_PROPS::SHAPE_PROPS | ( | ) |
Definition at line 748 of file padstack.cpp.
bool PADSTACK::SHAPE_PROPS::operator== | ( | const SHAPE_PROPS & | aOther | ) | const |
Definition at line 759 of file padstack.cpp.
References chamfered_rect_positions, chamfered_rect_ratio, offset, round_rect_corner_radius, round_rect_radius_ratio, and shape.
PAD_SHAPE PADSTACK::SHAPE_PROPS::anchor_shape |
Shape of the anchor when shape == PAD_SHAPE::CUSTOM.
Definition at line 167 of file padstack.h.
Referenced by PADSTACK::AnchorShape(), PADSTACK::DefaultThermalSpokeAngleForShape(), and PADSTACK::SetAnchorShape().
int PADSTACK::SHAPE_PROPS::chamfered_rect_positions |
Definition at line 182 of file padstack.h.
Referenced by PADSTACK::ChamferPositions(), operator==(), PADSTACK::packCopperLayer(), PADSTACK::SetChamferPositions(), and PADSTACK::unpackCopperLayer().
double PADSTACK::SHAPE_PROPS::chamfered_rect_ratio |
Size of chamfer: ratio of smallest of X,Y size.
Definition at line 181 of file padstack.h.
Referenced by PADSTACK::ChamferRatio(), operator==(), PADSTACK::SetChamferRatio(), and PADSTACK::unpackCopperLayer().
VECTOR2I PADSTACK::SHAPE_PROPS::offset |
Offset of the shape center from the pad center.
Definition at line 177 of file padstack.h.
Referenced by PADSTACK::Offset(), and operator==().
double PADSTACK::SHAPE_PROPS::round_rect_corner_radius |
Definition at line 179 of file padstack.h.
Referenced by operator==().
double PADSTACK::SHAPE_PROPS::round_rect_radius_ratio |
Definition at line 180 of file padstack.h.
Referenced by operator==(), PADSTACK::RoundRectRadiusRatio(), PADSTACK::SetRoundRectRadiusRatio(), and PADSTACK::unpackCopperLayer().
PAD_SHAPE PADSTACK::SHAPE_PROPS::shape |
Shape of the pad.
Definition at line 166 of file padstack.h.
Referenced by PADSTACK::DefaultThermalSpokeAngleForShape(), operator==(), PADSTACK::SetShape(), and PADSTACK::Shape().
VECTOR2I PADSTACK::SHAPE_PROPS::size |
Size of the shape, or of the anchor pad for custom shape pads.
Definition at line 168 of file padstack.h.
Referenced by PADSTACK::SetSize(), and PADSTACK::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 188 of file padstack.h.
Referenced by PADSTACK::TrapezoidDeltaSize().