LibrePCB Developers Documentation
|
The PadGeometry class describes the shape of a pad. More...
#include <padgeometry.h>
Public Types | |
enum class | Shape |
Public Member Functions | |
PadGeometry ()=delete | |
PadGeometry (const PadGeometry &other) noexcept | |
~PadGeometry () noexcept | |
Shape | getShape () const noexcept |
Length | getWidth () const noexcept |
Length | getHeight () const noexcept |
UnsignedLength | getCornerRadius () const noexcept |
const Path & | getPath () const noexcept |
const PadHoleList & | getHoles () const noexcept |
QVector< Path > | toOutlines () const |
QPainterPath | toQPainterPathPx () const noexcept |
QPainterPath | toFilledQPainterPathPx () const noexcept |
QPainterPath | toHolesQPainterPathPx () const noexcept |
PadGeometry | withOffset (const Length &offset) const noexcept |
PadGeometry | withoutHoles () const noexcept |
bool | operator== (const PadGeometry &rhs) const noexcept |
bool | operator!= (const PadGeometry &rhs) const noexcept |
PadGeometry & | operator= (const PadGeometry &rhs) noexcept |
Static Public Member Functions | |
static PadGeometry | roundedRect (const PositiveLength &width, const PositiveLength &height, const UnsignedLimitedRatio &radius, const PadHoleList &holes) noexcept |
static PadGeometry | roundedOctagon (const PositiveLength &width, const PositiveLength &height, const UnsignedLimitedRatio &radius, const PadHoleList &holes) noexcept |
static PadGeometry | stroke (const PositiveLength &diameter, const NonEmptyPath &path, const PadHoleList &holes) noexcept |
static PadGeometry | custom (const Path &outline, const PadHoleList &holes) |
static bool | isValidCustomOutline (const Path &path) noexcept |
Private Member Functions | |
PadGeometry (Shape shape, const Length &width, const Length &height, const UnsignedLimitedRatio &radius, const Path &path, const Length &offset, const PadHoleList &holes) noexcept | |
Static Private Member Functions | |
static PositiveLength | maxArcTolerance () noexcept |
Private Attributes | |
Shape | mShape |
Length | mBaseWidth |
Length | mBaseHeight |
UnsignedLimitedRatio | mRadius |
Path | mPath |
Length | mOffset |
PadHoleList | mHoles |
The PadGeometry class describes the shape of a pad.
|
strong |
|
delete |
|
noexcept |
|
noexcept |
|
privatenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
QVector< Path > toOutlines | ( | ) | const |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
static |
|
staticnoexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinestaticprivatenoexcept |
Returns the maximum allowed arc tolerance when flattening arcs. Do not change this if you don't know exactly what you're doing (it might affect planes in existing boards)!
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |