LibrePCB Developers Documentation
GerberApertureList Class Referencefinal

The GerberApertureList class. More...

#include <gerberaperturelist.h>

+ Collaboration diagram for GerberApertureList:

Public Member Functions

 GerberApertureList (const GerberApertureList &other)=delete
 
 GerberApertureList () noexcept
 
 ~GerberApertureList () noexcept
 
QString generateString () const noexcept
 
int setCircle (const UnsignedLength &dia, const UnsignedLength &hole)
 
int setRect (const UnsignedLength &w, const UnsignedLength &h, const Angle &rot, const UnsignedLength &hole) noexcept
 
int setObround (const UnsignedLength &w, const UnsignedLength &h, const Angle &rot, const UnsignedLength &hole) noexcept
 
int setRegularPolygon (const UnsignedLength &dia, int n, const Angle &rot, const UnsignedLength &hole) noexcept
 
int setOctagon (const UnsignedLength &w, const UnsignedLength &h, const UnsignedLength &edge, const Angle &rot, const UnsignedLength &hole) noexcept
 
void reset () noexcept
 
GerberApertureListoperator= (const GerberApertureList &rhs)=delete
 

Private Member Functions

int setCurrentAperture (const QString &aperture) noexcept
 
void addMacro (const QString &macro) noexcept
 

Static Private Member Functions

static QString generateCircle (const UnsignedLength &dia, const UnsignedLength &hole) noexcept
 
static QString generateRect (const UnsignedLength &w, const UnsignedLength &h, const UnsignedLength &hole) noexcept
 
static QString generateObround (const UnsignedLength &w, const UnsignedLength &h, const UnsignedLength &hole) noexcept
 
static QString generateRegularPolygon (const UnsignedLength &dia, int n, const Angle &rot, const UnsignedLength &hole) noexcept
 
static QString generateRotatedRectMacro ()
 
static QString generateRotatedRectMacroWithHole ()
 
static QString generateRotatedObroundMacro ()
 
static QString generateRotatedObroundMacroWithHole ()
 
static QString generateRotatedOctagonMacro ()
 
static QString generateRotatedOctagonMacroWithHole ()
 
static QString generateRotatedRect (const UnsignedLength &w, const UnsignedLength &h, const Angle &rot, const UnsignedLength &hole) noexcept
 
static QString generateRotatedObround (const UnsignedLength &w, const UnsignedLength &h, const Angle &rot, const UnsignedLength &hole) noexcept
 
static QString generateRotatedOctagon (const UnsignedLength &w, const UnsignedLength &h, const UnsignedLength &edge, const Angle &rot, const UnsignedLength &hole) noexcept
 

Private Attributes

QList< QString > mApertureMacros
 
QMap< int, QString > mApertures
 key: aperture number (>= 10); value: aperture definition More...
 

Detailed Description

The GerberApertureList class.

Constructor & Destructor Documentation

◆ GerberApertureList() [1/2]

GerberApertureList ( const GerberApertureList other)
delete

◆ GerberApertureList() [2/2]

GerberApertureList ( )
noexcept

◆ ~GerberApertureList()

~GerberApertureList ( )
noexcept

Member Function Documentation

◆ generateString()

QString generateString ( ) const
noexcept

◆ setCircle()

int setCircle ( const UnsignedLength dia,
const UnsignedLength hole 
)
+ Here is the call graph for this function:

◆ setRect()

int setRect ( const UnsignedLength w,
const UnsignedLength h,
const Angle rot,
const UnsignedLength hole 
)
noexcept
+ Here is the call graph for this function:

◆ setObround()

int setObround ( const UnsignedLength w,
const UnsignedLength h,
const Angle rot,
const UnsignedLength hole 
)
noexcept
+ Here is the call graph for this function:

◆ setRegularPolygon()

int setRegularPolygon ( const UnsignedLength dia,
int  n,
const Angle rot,
const UnsignedLength hole 
)
noexcept
+ Here is the call graph for this function:

◆ setOctagon()

int setOctagon ( const UnsignedLength w,
const UnsignedLength h,
const UnsignedLength edge,
const Angle rot,
const UnsignedLength hole 
)
noexcept
+ Here is the call graph for this function:

◆ reset()

void reset ( )
noexcept

◆ operator=()

GerberApertureList& operator= ( const GerberApertureList rhs)
delete

◆ setCurrentAperture()

int setCurrentAperture ( const QString &  aperture)
privatenoexcept
+ Here is the caller graph for this function:

◆ addMacro()

void addMacro ( const QString &  macro)
privatenoexcept
+ Here is the caller graph for this function:

◆ generateCircle()

QString generateCircle ( const UnsignedLength dia,
const UnsignedLength hole 
)
staticprivatenoexcept
+ Here is the caller graph for this function:

◆ generateRect()

QString generateRect ( const UnsignedLength w,
const UnsignedLength h,
const UnsignedLength hole 
)
staticprivatenoexcept
+ Here is the caller graph for this function:

◆ generateObround()

QString generateObround ( const UnsignedLength w,
const UnsignedLength h,
const UnsignedLength hole 
)
staticprivatenoexcept
+ Here is the caller graph for this function:

◆ generateRegularPolygon()

QString generateRegularPolygon ( const UnsignedLength dia,
int  n,
const Angle rot,
const UnsignedLength hole 
)
staticprivatenoexcept
+ Here is the caller graph for this function:

◆ generateRotatedRectMacro()

QString generateRotatedRectMacro ( )
staticprivate
+ Here is the caller graph for this function:

◆ generateRotatedRectMacroWithHole()

QString generateRotatedRectMacroWithHole ( )
staticprivate
+ Here is the caller graph for this function:

◆ generateRotatedObroundMacro()

QString generateRotatedObroundMacro ( )
staticprivate
+ Here is the caller graph for this function:

◆ generateRotatedObroundMacroWithHole()

QString generateRotatedObroundMacroWithHole ( )
staticprivate
+ Here is the caller graph for this function:

◆ generateRotatedOctagonMacro()

QString generateRotatedOctagonMacro ( )
staticprivate
+ Here is the caller graph for this function:

◆ generateRotatedOctagonMacroWithHole()

QString generateRotatedOctagonMacroWithHole ( )
staticprivate
+ Here is the caller graph for this function:

◆ generateRotatedRect()

QString generateRotatedRect ( const UnsignedLength w,
const UnsignedLength h,
const Angle rot,
const UnsignedLength hole 
)
staticprivatenoexcept
+ Here is the caller graph for this function:

◆ generateRotatedObround()

QString generateRotatedObround ( const UnsignedLength w,
const UnsignedLength h,
const Angle rot,
const UnsignedLength hole 
)
staticprivatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ generateRotatedOctagon()

QString generateRotatedOctagon ( const UnsignedLength w,
const UnsignedLength h,
const UnsignedLength edge,
const Angle rot,
const UnsignedLength hole 
)
staticprivatenoexcept
+ Here is the caller graph for this function:

Member Data Documentation

◆ mApertureMacros

QList<QString> mApertureMacros
private

◆ mApertures

QMap<int, QString> mApertures
private

key: aperture number (>= 10); value: aperture definition


The documentation for this class was generated from the following files: