LibrePCB Developers Documentation
AirWiresBuilder Class Referencefinal

The AirWiresBuilder class. More...

#include <airwiresbuilder.h>

+ Collaboration diagram for AirWiresBuilder:

Public Types

typedef QPair< Point, PointAirWire
 
typedef QVector< AirWireAirWires
 

Public Member Functions

 AirWiresBuilder () noexcept
 Default constructor. More...
 
 AirWiresBuilder (const AirWiresBuilder &other)=delete
 Copy constructor. More...
 
 ~AirWiresBuilder () noexcept
 
int addPoint (const Point &p) noexcept
 Add a new point. More...
 
void addEdge (int p1, int p2) noexcept
 Add an edge between two points. More...
 
AirWires buildAirWires () noexcept
 Build the air wires. More...
 
AirWiresBuilderoperator= (const AirWiresBuilder &rhs)=delete
 

Private Member Functions

AirWires kruskalMst () noexcept
 

Private Attributes

std::vector< delaunay::Vector2< qreal > > mPoints
 
std::vector< delaunay::Edge< qreal > > mEdges
 

Detailed Description

The AirWiresBuilder class.

Member Typedef Documentation

◆ AirWire

typedef QPair<Point, Point> AirWire

◆ AirWires

typedef QVector<AirWire> AirWires

Constructor & Destructor Documentation

◆ AirWiresBuilder() [1/2]

AirWiresBuilder ( )
noexcept

Default constructor.

◆ AirWiresBuilder() [2/2]

AirWiresBuilder ( const AirWiresBuilder other)
delete

Copy constructor.

Parameters
otherAnother librepcb::AirWiresBuilder object

◆ ~AirWiresBuilder()

~AirWiresBuilder ( )
noexcept

Destructor

Member Function Documentation

◆ addPoint()

int addPoint ( const Point p)
noexcept

Add a new point.

Parameters
pThe point to add
Returns
The ID of the added point
+ Here is the caller graph for this function:

◆ addEdge()

void addEdge ( int  p1,
int  p2 
)
noexcept

Add an edge between two points.

Parameters
p1ID of first point
p2ID of second point
+ Here is the caller graph for this function:

◆ buildAirWires()

AirWiresBuilder::AirWires buildAirWires ( )
noexcept

Build the air wires.

Returns
Coordinates of air wires
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

AirWiresBuilder& operator= ( const AirWiresBuilder rhs)
delete

◆ kruskalMst()

AirWiresBuilder::AirWires kruskalMst ( )
privatenoexcept
+ Here is the caller graph for this function:

Member Data Documentation

◆ mPoints

std::vector<delaunay::Vector2<qreal> > mPoints
private

◆ mEdges

std::vector<delaunay::Edge<qreal> > mEdges
private

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