Predefined colors relevant for PCB fabrication.
More...
#include <pcbcolor.h>
|
enum class | Flag : quint32 |
|
|
| PcbColor (const QString &id, const QString &nameTr, Flags flags, const QColor &solderResistColor, const QColor &silkscreenColor) noexcept |
|
Predefined colors relevant for PCB fabrication.
◆ Flag
enum class Flag : quint32 |
|
strong |
Enumerator |
---|
SolderResist | Color available for solder resist.
|
Silkscreen | Color available for silkscreen.
|
◆ PcbColor() [1/3]
◆ PcbColor() [2/3]
◆ ~PcbColor()
◆ PcbColor() [3/3]
PcbColor |
( |
const QString & |
id, |
|
|
const QString & |
nameTr, |
|
|
Flags |
flags, |
|
|
const QColor & |
solderResistColor, |
|
|
const QColor & |
silkscreenColor |
|
) |
| |
|
privatenoexcept |
◆ getId()
const QString & getId |
( |
| ) |
const |
|
inlinenoexcept |
Get the identifier used for serialization.
- Returns
- Identifier string (lower_snake_case)
◆ getNameTr()
const QString & getNameTr |
( |
| ) |
const |
|
inlinenoexcept |
Get the name of the color (human readable and translated)
- Returns
- The name of the color
◆ toSolderResistColor()
const QColor & toSolderResistColor |
( |
| ) |
const |
|
noexcept |
Get the actual color for solder resist rendering.
- Returns
- A QColor object representing this color, or a default color if this color does not represent a valid solder resist color
◆ toSilkscreenColor()
const QColor & toSilkscreenColor |
( |
| ) |
const |
|
noexcept |
Get the actual color for silkscreen rendering.
- Returns
- A QColor object representing this color, or a default color if this color does not represent a valid silkscreen color
◆ isAvailableForSolderResist()
bool isAvailableForSolderResist |
( |
| ) |
const |
|
inlinenoexcept |
Check if this color is available for solder resist.
- Returns
- Whether this color is available or not
◆ isAvailableForSilkscreen()
bool isAvailableForSilkscreen |
( |
| ) |
const |
|
inlinenoexcept |
Check if this color is available for silkscreen.
- Returns
- Whether this color is available or not
◆ operator=()
◆ operator==()
bool operator== |
( |
const PcbColor & |
rhs | ) |
const |
|
inlinenoexcept |
◆ operator!=()
bool operator!= |
( |
const PcbColor & |
rhs | ) |
const |
|
inlinenoexcept |
◆ black()
◆ blackMatte()
◆ blue()
◆ clear()
◆ green()
◆ greenMatte()
◆ purple()
◆ red()
◆ white()
◆ yellow()
◆ other()
◆ all()
const QVector< const PcbColor * > & all |
( |
| ) |
|
|
staticnoexcept |
Get a list of all available colors.
- Returns
- A list of all colors
◆ get()
const PcbColor & get |
( |
const QString & |
id | ) |
|
|
static |
Get a color by its identifier.
- Parameters
-
- Returns
- PcbColor object.
- Exceptions
-
◆ mId
◆ mNameTr
◆ mFlags
◆ mSolderResistColor
const QColor mSolderResistColor |
|
private |
◆ mSilkscreenColor
const QColor mSilkscreenColor |
|
private |
The documentation for this class was generated from the following files: