![]() |
LibrePCB Developers Documentation
|
The GerberGenerator class. More...
#include <gerbergenerator.h>
Public Types | |
using | Polarity = GerberAttribute::Polarity |
using | BoardSide = GerberAttribute::BoardSide |
using | CopperSide = GerberAttribute::CopperSide |
using | Function = GerberApertureList::Function |
Public Member Functions | |
GerberGenerator ()=delete | |
GerberGenerator (const GerberGenerator &other)=delete | |
GerberGenerator (const QDateTime &creationDate, const QString &projName, const Uuid &projUuid, const QString &projRevision) noexcept | |
~GerberGenerator () noexcept | |
const QString & | toStr () const noexcept |
void | setFileFunctionOutlines (bool plated) noexcept |
void | setFileFunctionCopper (int layer, CopperSide side, Polarity polarity) noexcept |
void | setFileFunctionSolderMask (BoardSide side, Polarity polarity) noexcept |
void | setFileFunctionLegend (BoardSide side, Polarity polarity) noexcept |
void | setFileFunctionPaste (BoardSide side, Polarity polarity) noexcept |
void | setLayerPolarity (Polarity p) noexcept |
void | drawLine (const Point &start, const Point &end, const UnsignedLength &width, Function function, const tl::optional< QString > &net, const QString &component) noexcept |
void | drawPathOutline (const Path &path, const UnsignedLength &lineWidth, Function function, const tl::optional< QString > &net, const QString &component) noexcept |
void | drawPathArea (const Path &path, Function function, const tl::optional< QString > &net, const QString &component) noexcept |
void | flashCircle (const Point &pos, const PositiveLength &dia, Function function, const tl::optional< QString > &net, const QString &component, const QString &pin, const QString &signal) noexcept |
void | flashRect (const Point &pos, const PositiveLength &w, const PositiveLength &h, const Angle &rot, Function function, const tl::optional< QString > &net, const QString &component, const QString &pin, const QString &signal) noexcept |
void | flashObround (const Point &pos, const PositiveLength &w, const PositiveLength &h, const Angle &rot, Function function, const tl::optional< QString > &net, const QString &component, const QString &pin, const QString &signal) noexcept |
void | flashOctagon (const Point &pos, const PositiveLength &w, const PositiveLength &h, const Angle &rot, Function function, const tl::optional< QString > &net, const QString &component, const QString &pin, const QString &signal) noexcept |
void | generate () |
void | saveToFile (const FilePath &filepath) const |
GerberGenerator & | operator= (const GerberGenerator &rhs)=delete |
Private Member Functions | |
void | setCurrentAttributes (Function apertureFunction, const tl::optional< QString > &netName, const QString &componentDesignator, const QString &pinName, const QString &pinSignal) noexcept |
void | setCurrentAperture (int number) noexcept |
void | setRegionModeOn () noexcept |
void | setRegionModeOff () noexcept |
void | switchToLinearInterpolationModeG01 () noexcept |
void | switchToCircularCwInterpolationModeG02 () noexcept |
void | switchToCircularCcwInterpolationModeG03 () noexcept |
void | moveToPosition (const Point &pos) noexcept |
void | linearInterpolateToPosition (const Point &pos) noexcept |
void | circularInterpolateToPosition (const Point &start, const Point ¢er, const Point &end) noexcept |
void | interpolateBetween (const Vertex &from, const Vertex &to) noexcept |
void | flashAtPosition (const Point &pos) noexcept |
void | printHeader () noexcept |
void | printApertureList () noexcept |
void | printContent () noexcept |
void | printFooter () noexcept |
QString | calcOutputMd5Checksum () const noexcept |
Private Attributes | |
QVector< GerberAttribute > | mFileAttributes |
QString | mOutput |
QString | mContent |
QScopedPointer< GerberAttributeWriter > | mAttributeWriter |
QScopedPointer< GerberApertureList > | mApertureList |
int | mCurrentApertureNumber |
The GerberGenerator class.
using Polarity = GerberAttribute::Polarity |
using BoardSide = GerberAttribute::BoardSide |
using Function = GerberApertureList::Function |
|
delete |
|
delete |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
void generate | ( | ) |
void saveToFile | ( | const FilePath & | filepath | ) | const |
|
delete |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |