LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
 
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 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
 

Private Attributes

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

Detailed Description

The GerberApertureList class.

Author
ubruhin
Date
2016-03-31

Constructor & Destructor Documentation

GerberApertureList ( const GerberApertureList other)
delete
GerberApertureList ( )
noexcept
~GerberApertureList ( )
noexcept

Member Function Documentation

QString generateString ( ) const
noexcept
int setCircle ( const UnsignedLength dia,
const UnsignedLength hole 
)

+ Here is the call graph for this function:

int setRect ( const UnsignedLength w,
const UnsignedLength h,
const Angle rot,
const UnsignedLength hole 
)
noexcept

+ Here is the call graph for this function:

int setObround ( const UnsignedLength w,
const UnsignedLength h,
const Angle rot,
const UnsignedLength hole 
)
noexcept

+ Here is the call graph for this function:

int setRegularPolygon ( const UnsignedLength dia,
int  n,
const Angle rot,
const UnsignedLength hole 
)
noexcept

+ Here is the call graph for this function:

void reset ( )
noexcept
GerberApertureList& operator= ( const GerberApertureList rhs)
delete
int setCurrentAperture ( const QString &  aperture)
privatenoexcept

+ Here is the caller graph for this function:

void addMacro ( const QString &  macro)
privatenoexcept
QString generateCircle ( const UnsignedLength dia,
const UnsignedLength hole 
)
staticprivatenoexcept

+ Here is the caller graph for this function:

QString generateRect ( const UnsignedLength w,
const UnsignedLength h,
const UnsignedLength hole 
)
staticprivatenoexcept
QString generateObround ( const UnsignedLength w,
const UnsignedLength h,
const UnsignedLength hole 
)
staticprivatenoexcept
QString generateRegularPolygon ( const UnsignedLength dia,
int  n,
const Angle rot,
const UnsignedLength hole 
)
staticprivatenoexcept
QString generateRotatedRectMacro ( )
staticprivate
QString generateRotatedRectMacroWithHole ( )
staticprivate
QString generateRotatedObroundMacro ( )
staticprivate
QString generateRotatedObroundMacroWithHole ( )
staticprivate
QString generateRotatedRect ( const UnsignedLength w,
const UnsignedLength h,
const Angle rot,
const UnsignedLength hole 
)
staticprivatenoexcept
QString generateRotatedObround ( const UnsignedLength w,
const UnsignedLength h,
const Angle rot,
const UnsignedLength hole 
)
staticprivatenoexcept

+ Here is the call graph for this function:

Member Data Documentation

QList<QString> mApertureMacros
private
QMap<int, QString> mApertures
private

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


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