![]() |
LibrePCB Developers Documentation
|
The Layer class provides all supported geometry layers. More...
#include <layer.h>
Collaboration diagram for Layer: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 |
Here is the caller graph for this function:
|
noexcept |
|
privatenoexcept |
|
inlinenoexcept |
Get the identifier used for serialization.
Here is the caller graph for this function:
|
inlinenoexcept |
|
inlinenoexcept |
Get the name of the corresponding theme color.
Here is the caller graph for this function:
|
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.
Here is the caller graph for this function:
|
inlinenoexcept |
Check if this is an inner board layer.
Here is the caller graph for this function:
|
inlinenoexcept |
Check if this is a bottom board layer.
Here is the caller graph for this function:
|
inlinenoexcept |
Check if this is a copper layer.
Here is the caller graph for this function:
|
inlinenoexcept |
Check if this is a stop mask layer.
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:
|
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.
Here is the caller graph for this function:
|
inlinenoexcept |
Get the copper layer number.
Here is the caller graph for this function:
|
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. |
Here is the caller graph for this function:
|
inlinenoexcept |
|
inlinenoexcept |
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticnoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticnoexcept |
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Here is the caller graph for this function:
|
staticnoexcept |
Get a list of all available layers.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Comparison for sorting layers by function.
| a | First layer to compare. |
| b | Second layer to compare. |
a is considered as less than b.
Here is the caller graph for this function:
|
private |
|
private |
|
private |
|
private |