![]() |
LibrePCB Developers Documentation
|
Zip file reader. More...
#include <interactivehtmlbom.h>
Classes | |
struct | Pad |
Public Types | |
enum class | ViewMode |
enum class | HighlightPin1Mode |
enum class | Layer |
enum class | Sides |
enum class | DrawingKind |
enum class | DrawingLayer |
Public Member Functions | |
InteractiveHtmlBom ()=delete | |
InteractiveHtmlBom (const InteractiveHtmlBom &other)=delete | |
InteractiveHtmlBom & | operator= (const InteractiveHtmlBom &rhs)=delete |
InteractiveHtmlBom (const QString &title, const QString &company, const QString &revision, const QString &date, const Point &topLeft, const Point &bottomRight) | |
Constructor. | |
void | setViewConfig (ViewMode mode, HighlightPin1Mode highlightPin1, bool dark) noexcept |
Set view configuration. | |
void | setBoardRotation (const Angle &angle, bool offsetBack) noexcept |
Set board rotation. | |
void | setShowSilkscreen (bool show) noexcept |
Set silkscreen visibility. | |
void | setShowFabrication (bool show) noexcept |
Set fabrication visibility. | |
void | setShowPads (bool show) noexcept |
Set pads visibility. | |
void | setCheckBoxes (const QStringList &names) noexcept |
Set the BOM checkbox columns. | |
void | setFields (const QStringList &fields) noexcept |
Set the fields of BOM lines. | |
void | addDrawing (DrawingKind kind, DrawingLayer layer, const Path &path, const UnsignedLength &width, bool filled) noexcept |
Add a PCB drawing. | |
void | addTrack (Layer layer, const Point &start, const Point &end, const PositiveLength &width, const std::optional< QString > &netName) noexcept |
Add a track. | |
void | addVia (QSet< Layer > layers, const Point &pos, const PositiveLength &diameter, const PositiveLength &drillDiameter, const std::optional< QString > &netName) noexcept |
Add via. | |
void | addPlaneFragment (Layer layer, const Path &outline, const std::optional< QString > &netName) noexcept |
Add plane fragment. | |
std::size_t | addFootprint (Layer layer, const Point &pos, const Angle &rot, const Point &topLeft, const Point &bottomRight, bool mount, const QStringList &fields, const QList< Pad > &pads) noexcept |
Add footprint. | |
void | addBomRow (Sides sides, const QList< std::pair< QString, std::size_t > > &parts) noexcept |
Add a BOM row. | |
QString | generateHtml () const |
Generate the HTML. | |
Private Attributes | |
RustHandle< rs::InteractiveHtmlBom > | mHandle |
Zip file reader.
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
delete |
|
delete |
InteractiveHtmlBom | ( | const QString & | title, |
const QString & | company, | ||
const QString & | revision, | ||
const QString & | date, | ||
const Point & | topLeft, | ||
const Point & | bottomRight | ||
) |
|
delete |
|
noexcept |
Set view configuration.
mode | View mode |
highlightPin1 | Highlight pin-1 mode |
dark | Dark or not |
|
noexcept |
Set board rotation.
angle | Rotation angle |
offsetBack | Offset back side or not |
|
noexcept |
Set silkscreen visibility.
show | Show or not |
|
noexcept |
Set fabrication visibility.
show | Show or not |
|
noexcept |
Set pads visibility.
show | Show or not |
|
noexcept |
Set the BOM checkbox columns.
names | Checkbox names |
|
noexcept |
Set the fields of BOM lines.
fields | Field names |
|
noexcept |
Add a PCB drawing.
kind | Drawing kind |
layer | Drawing layer |
path | Drawing path |
width | Line width |
filled | Fill or not the shape |
|
noexcept |
Add a track.
layer | Layer |
start | Start position |
end | End position |
width | Width |
netName | Net name (if any) |
|
noexcept |
Add via.
layers | Layers this via exists on |
pos | Position |
diameter | Outer diameter |
drillDiameter | Drill diameter |
netName | net name (if any) |
|
noexcept |
Add plane fragment.
layer | Layer |
outline | Outline |
netName | Net name (if any) |
|
noexcept |
Add footprint.
layer | Mount layer |
pos | Position |
rot | Rotation |
topLeft | Top left of bounding box |
bottomRight | Bottom right of bounding box |
mount | Whether it will be mounted or not |
fields | Field values |
pads | Pads |
|
noexcept |
Add a BOM row.
sides | BOM sides |
parts | Parts (designators & footprint IDs) |
QString generateHtml | ( | ) | const |
Generate the HTML.
If | some of the data is invalid |
|
private |