LibrePCB Developers Documentation
|
The Layer class provides all supported geometry layers. More...
#include <layer.h>
Public Types | |
enum class | Flag : quint32 |
Public Member Functions | |
Layer ()=delete | |
Layer (const Layer &other) noexcept | |
~Layer () noexcept | |
const QString & | getId () const noexcept |
Get the identifier used for serialization. | |
const QString & | getNameTr () const noexcept |
Get the name of the Layer (human readable and translated) | |
const QString & | getThemeColor () const noexcept |
Get the name of the corresponding theme color. | |
bool | isSchematic () const noexcept |
Check if this is a schematic layer. | |
bool | isBoard () const noexcept |
Check if this is a board layer. | |
bool | isTop () const noexcept |
Check if this is a top board layer. | |
bool | isInner () const noexcept |
Check if this is an inner board layer. | |
bool | isBottom () const noexcept |
Check if this is a bottom board layer. | |
bool | isCopper () const noexcept |
Check if this is a copper layer. | |
bool | isStopMask () const noexcept |
Check if this is a stop mask layer. | |
bool | isSolderPaste () const noexcept |
Check if this is a solder paste layer. | |
bool | isBoardEdge () const noexcept |
Check if this is a layer defining the board edge. | |
bool | isPackageOutline () const noexcept |
Check if this is a package outline layer. | |
bool | isPackageCourtyard () const noexcept |
Check if this is a package courtyard layer. | |
bool | getPolygonsRepresentAreas () const noexcept |
Check if polygons on this layers always represent areas. | |
int | getCopperNumber () const noexcept |
Get the copper layer number. | |
const Layer & | mirrored (int innerLayers=-1) const noexcept |
Mirror this layer to the other board side. | |
Layer & | operator= (const Layer &rhs) noexcept=delete |
bool | operator== (const Layer &rhs) const noexcept |
bool | operator!= (const Layer &rhs) const noexcept |
Static Public Member Functions | |
static const Layer & | schematicSheetFrames () noexcept |
static const Layer & | schematicDocumentation () noexcept |
static const Layer & | schematicComments () noexcept |
static const Layer & | schematicGuide () noexcept |
static const Layer & | symbolOutlines () noexcept |
static const Layer & | symbolHiddenGrabAreas () noexcept |
static const Layer & | symbolNames () noexcept |
static const Layer & | symbolValues () noexcept |
static const Layer & | symbolPinNames () noexcept |
static const Layer & | boardSheetFrames () noexcept |
static const Layer & | boardOutlines () noexcept |
static const Layer & | boardCutouts () noexcept |
static const Layer & | boardPlatedCutouts () noexcept |
static const Layer & | boardMeasures () noexcept |
static const Layer & | boardAlignment () noexcept |
static const Layer & | boardDocumentation () noexcept |
static const Layer & | boardComments () noexcept |
static const Layer & | boardGuide () noexcept |
static const Layer & | topNames () noexcept |
static const Layer & | botNames () noexcept |
static const Layer & | topValues () noexcept |
static const Layer & | botValues () noexcept |
static const Layer & | topLegend () noexcept |
static const Layer & | botLegend () noexcept |
static const Layer & | topDocumentation () noexcept |
static const Layer & | botDocumentation () noexcept |
static const Layer & | topPackageOutlines () noexcept |
static const Layer & | botPackageOutlines () noexcept |
static const Layer & | topCourtyard () noexcept |
static const Layer & | botCourtyard () noexcept |
static const Layer & | topHiddenGrabAreas () noexcept |
static const Layer & | botHiddenGrabAreas () noexcept |
static const Layer & | topStopMask () noexcept |
static const Layer & | botStopMask () noexcept |
static const Layer & | topSolderPaste () noexcept |
static const Layer & | botSolderPaste () noexcept |
static const Layer & | topFinish () noexcept |
static const Layer & | botFinish () noexcept |
static const Layer & | topGlue () noexcept |
static const Layer & | botGlue () noexcept |
static const Layer & | topCopper () noexcept |
static const Layer & | botCopper () noexcept |
static const QVector< const Layer * > & | innerCopper () noexcept |
static const Layer * | innerCopper (int number) noexcept |
static int | innerCopperCount () noexcept |
static const Layer * | copper (int number) noexcept |
static const QVector< const Layer * > & | all () noexcept |
Get a list of all available layers. | |
static const Layer & | get (const QString &id) |
Get a layer by its identifier. | |
static bool | lessThan (const Layer *a, const Layer *b) noexcept |
Comparison for sorting layers by function. | |
Private Member Functions | |
Layer (const QString &id, const QString &nameTr, const QString &themeColor, Flags flags) noexcept | |
Private Attributes | |
const QString | mId |
const QString | mNameTr |
const QString | mThemeColor |
const Flags | mFlags |
The Layer class provides all supported geometry layers.
|
strong |
|
delete |
|
noexcept |
|
privatenoexcept |
|
inlinenoexcept |
Get the identifier used for serialization.
|
inlinenoexcept |
|
inlinenoexcept |
Get the name of the corresponding theme color.
|
inlinenoexcept |
Check if this is a schematic layer.
|
inlinenoexcept |
Check if this is a board layer.
|
inlinenoexcept |
Check if this is a top board layer.
|
inlinenoexcept |
Check if this is an inner board layer.
|
inlinenoexcept |
Check if this is a bottom board layer.
|
inlinenoexcept |
Check if this is a copper layer.
|
inlinenoexcept |
Check if this is a stop mask layer.
|
inlinenoexcept |
Check if this is a solder paste layer.
|
inlinenoexcept |
Check if this is a layer defining the board edge.
This is true for boardOutlines(), boardCutouts() and boardPlatedCutouts().
|
inlinenoexcept |
Check if this is a package outline layer.
|
inlinenoexcept |
Check if this is a package courtyard layer.
|
inlinenoexcept |
Check if polygons on this layers always represent areas.
|
inlinenoexcept |
Get the copper layer number.
|
noexcept |
Mirror this layer to the other board side.
innerLayers | If specified, inner copper layers will be mirrored within this layer count as well. Otherwise, inner layers are not mirrored. |
|
inlinenoexcept |
|
inlinenoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
Get a list of all available layers.
|
static |
Comparison for sorting layers by function.
a | First layer to compare. |
b | Second layer to compare. |
a
is considered as less than b
.
|
private |
|
private |
|
private |
|
private |