LibrePCB Developers Documentation
BoardSpecctraExport Class Referencefinal

Specctra DSN Export. More...

#include <boardspecctraexport.h>

Inherits QObject.

+ Collaboration diagram for BoardSpecctraExport:

Public Member Functions

 BoardSpecctraExport ()=delete
 
 BoardSpecctraExport (const BoardSpecctraExport &other)=delete
 
 BoardSpecctraExport (const Board &board) noexcept
 
 ~BoardSpecctraExport () noexcept
 
QByteArray generate () const
 
BoardSpecctraExportoperator= (const BoardSpecctraExport &rhs)=delete
 

Private Member Functions

std::unique_ptr< SExpressiongenParser () const
 
std::unique_ptr< SExpressiongenResolution () const
 
std::unique_ptr< SExpressiongenStructure (std::vector< std::unique_ptr< SExpression > > &viaPadStacks) const
 
std::unique_ptr< SExpressiongenStructureRule () const
 
std::unique_ptr< SExpressiongenPlacement () const
 
std::unique_ptr< SExpressiongenLibrary (std::vector< std::unique_ptr< SExpression > > &fptPadStacks, std::vector< std::unique_ptr< SExpression > > &viaPadStacks) const
 
std::unique_ptr< SExpressiongenLibraryImage (const BI_Device &dev, std::vector< std::unique_ptr< SExpression > > &fptPadStacks) const
 
std::unique_ptr< SExpressiongenLibraryPadStack (const BI_FootprintPad &pad) const
 
std::unique_ptr< SExpressiongenNetwork () const
 
std::unique_ptr< SExpressiongenWiring () const
 
std::unique_ptr< SExpressiongenWiringPadStack (const BI_Via &via) const
 
QString getWiringPadStackId (const BI_Via &via) const
 
template<typename THole >
std::unique_ptr< SExpressiontoKeepout (const QString &id, const THole &hole) const
 
std::unique_ptr< SExpressiontoKeepout (const QString &id, const Path &path, const QSet< const Layer * > &layers) const
 
std::unique_ptr< SExpressiontoPolygon (const QString &layer, const UnsignedLength &width, const Path &path, bool multiline) const
 
std::unique_ptr< SExpressiontoPath (const QString &layer, const UnsignedLength &width, const Path &path, bool multiline) const
 
std::unique_ptr< SExpressiontoCircle (const QString &layer, const PositiveLength &diameter, const Point &pos=Point()) const
 
std::unique_ptr< SExpressiontoToken (const Length &length) const
 

Static Private Member Functions

static QString getNetName (const BI_NetSegment &ns) noexcept
 
static std::size_t addToPadStacks (std::vector< std::unique_ptr< SExpression > > &padStacks, std::unique_ptr< SExpression > padStack)
 
static PositiveLength maxArcTolerance () noexcept
 

Private Attributes

const BoardmBoard
 

Detailed Description

Specctra DSN Export.

Constructor & Destructor Documentation

◆ BoardSpecctraExport() [1/3]

BoardSpecctraExport ( )
delete

◆ BoardSpecctraExport() [2/3]

BoardSpecctraExport ( const BoardSpecctraExport other)
delete

◆ BoardSpecctraExport() [3/3]

BoardSpecctraExport ( const Board board)
explicitnoexcept

◆ ~BoardSpecctraExport()

~BoardSpecctraExport ( )
noexcept

Member Function Documentation

◆ generate()

QByteArray generate ( ) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

BoardSpecctraExport & operator= ( const BoardSpecctraExport rhs)
delete

◆ genParser()

std::unique_ptr< SExpression > genParser ( ) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ genResolution()

std::unique_ptr< SExpression > genResolution ( ) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ genStructure()

std::unique_ptr< SExpression > genStructure ( std::vector< std::unique_ptr< SExpression > > &  viaPadStacks) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ genStructureRule()

std::unique_ptr< SExpression > genStructureRule ( ) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ genPlacement()

std::unique_ptr< SExpression > genPlacement ( ) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ genLibrary()

std::unique_ptr< SExpression > genLibrary ( std::vector< std::unique_ptr< SExpression > > &  fptPadStacks,
std::vector< std::unique_ptr< SExpression > > &  viaPadStacks 
) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ genLibraryImage()

std::unique_ptr< SExpression > genLibraryImage ( const BI_Device dev,
std::vector< std::unique_ptr< SExpression > > &  fptPadStacks 
) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ genLibraryPadStack()

std::unique_ptr< SExpression > genLibraryPadStack ( const BI_FootprintPad pad) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ genNetwork()

std::unique_ptr< SExpression > genNetwork ( ) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ genWiring()

std::unique_ptr< SExpression > genWiring ( ) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ genWiringPadStack()

std::unique_ptr< SExpression > genWiringPadStack ( const BI_Via via) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getWiringPadStackId()

QString getWiringPadStackId ( const BI_Via via) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toKeepout() [1/2]

std::unique_ptr< SExpression > toKeepout ( const QString &  id,
const THole &  hole 
) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toKeepout() [2/2]

std::unique_ptr< SExpression > toKeepout ( const QString &  id,
const Path path,
const QSet< const Layer * > &  layers 
) const
private
+ Here is the call graph for this function:

◆ toPolygon()

std::unique_ptr< SExpression > toPolygon ( const QString &  layer,
const UnsignedLength width,
const Path path,
bool  multiline 
) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toPath()

std::unique_ptr< SExpression > toPath ( const QString &  layer,
const UnsignedLength width,
const Path path,
bool  multiline 
) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toCircle()

std::unique_ptr< SExpression > toCircle ( const QString &  layer,
const PositiveLength diameter,
const Point pos = Point() 
) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toToken()

std::unique_ptr< SExpression > toToken ( const Length length) const
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getNetName()

QString getNetName ( const BI_NetSegment ns)
staticprivatenoexcept
+ Here is the caller graph for this function:

◆ addToPadStacks()

std::size_t addToPadStacks ( std::vector< std::unique_ptr< SExpression > > &  padStacks,
std::unique_ptr< SExpression padStack 
)
staticprivate
+ Here is the caller graph for this function:

◆ maxArcTolerance()

static PositiveLength maxArcTolerance ( )
inlinestaticprivatenoexcept

Returns the maximum allowed arc tolerance when flattening arcs.

+ Here is the caller graph for this function:

Member Data Documentation

◆ mBoard

const Board& mBoard
private

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